Rails Server gets killed without a error message

Hello,

I working on a new project and made all the templates ready.

But as soon as I do rails s I see this output :

Started GET “/” for 82.74.205.109 at 2015-03-13 15:25:30 +0000
Killed

Anyone a idea how to find out what can be the reason behind this ?

Roelof

What do you see in the logs ?

In the development logs nothing wierd :

[1m [35mActiveRecord::SchemaMigration Load (6.7ms) [0m SELECT
schema_migrations.* FROM schema_migrations

Started GET “/” for 82.74.205.109 at 2015-03-13 13:16:32 +0000
[1m [36mActiveRecord::SchemaMigration Load (0.3ms) [0m [1mSELECT
schema_migrations.* FROM schema_migrations [0m
Processing by Rails::WelcomeController#index as HTML
Rendered
/home/action/.gem/ruby/2.1.1/gems/railties-4.1.0/lib/rails/templates/rails/welcome/index.html.erb
(2.3ms)
Completed 200 OK in 28ms (Views: 9.5ms | ActiveRecord: 0.0ms)

Started GET “/products” for 82.74.205.109 at 2015-03-13 13:16:51 +0000
Processing by ProductsController#index as HTML
[1m [35mProduct Load (0.4ms) [0m SELECT products.* FROM products
Rendered products/index.html.erb within layouts/application (2.4ms)
Completed 200 OK in 1134ms (Views: 1130.8ms | ActiveRecord: 0.4ms)

Started GET “/assets/products.css?body=1” for 82.74.205.109 at
2015-03-13
13:16:52 +0000

Started GET “/assets/products.js?body=1” for 82.74.205.109 at 2015-03-13
13:16:52 +0000

Started GET “/assets/scaffolds.css?body=1” for 82.74.205.109 at
2015-03-13
13:16:52 +0000

Started GET “/assets/jquery.js?body=1” for 82.74.205.109 at 2015-03-13
13:16:52 +0000

Started GET “/assets/turbolinks.js?body=1” for 82.74.205.109 at
2015-03-13
13:16:52 +0000

Started GET “/assets/application.css?body=1” for 82.74.205.109 at
2015-03-13 13:16:53 +0000

Started GET “/assets/jquery_ujs.js?body=1” for 82.74.205.109 at
2015-03-13
13:16:53 +0000

Started GET “/assets/application.js?body=1” for 82.74.205.109 at
2015-03-13
13:16:53 +0000

Started GET “/” for 82.74.205.109 at 2015-03-13 15:25:12 +0000

Started GET “/” for 82.74.205.109 at 2015-03-13 15:25:30 +0000

Roelof

Op vrijdag 13 maart 2015 16:54:38 UTC+1 schreef Vivek S.:

On 13 March 2015 at 15:29, Roelof W. [email protected] wrote:

Hello,

I working on a new project and made all the templates ready.

But as soon as I do rails s I see this output :

Started GET “/” for 82.74.205.109 at 2015-03-13 15:25:30 +0000
Killed

You have not said whether this is a random event or whether it happens
every time.
Assuming it is repeatable can you copy/paste the full output from the
server window please. From the start of the server. Obviously
restart the server and then do it so as to keep it short.

Anything in /var/log/syslog (or wherever your equivalent system log
is) at the time it happens?

Colin

How much RAM is available? Sometimes some processes get killed when they
occupy too much of memory.

Do this. Run server. Open another tab and type top. Refresh page and
check
memory consumption.

On 13 March 2015 at 16:44, Roelof W. [email protected] wrote:

Which leads to a file named _form.html who looks like this :

I presume you mean _form.erb.

<%= form_for(@product) do |f| %>
<% if @product.errors.any? %>

Where is the end for this if?

class=“form-horizontal”>
Nested forms are not valid html, though that is not the cause of the
syntax error.

       <label class="control-label" for="inputLastName">Naam speelgoed:
       </div>
   <div class="control-group">
         <input type="text" id="inputFirstAdd">
  </form><!--end form-->

error, unexpected keyword_ensure, expecting keyword_end
/home/action/workspace/finance/app/views/products/_form.html.erb:87: syntax
error, unexpected end-of-input, expecting keyword_end

That means that it expected more code, which almost always means
missing end statements.

Colin

Wierd. I do not see it this time.
Maybe a hickup in a server,

But now I see another wierd error.

I have a page new who looks like this :

New product

<%= render 'form' %> <%= link_to 'Back', products_path %>

Which leads to a file named _form.html who looks like this :

<%= form_for(@product) do |f| %>
<% if @product.errors.any? %>


<%= pluralize(@product.errors.count, “error”) %> prohibited
this
product from being saved:






Voer nieuw speelgoed in




1. Algemene informatie



Nummer
speelgoed: *

       </div>
   </div><!--end control-group-->
   <div class="control-group ">
       <label class="control-label" for="inputLastName">Naam 

speelgoed:






Omschrijving:




   <h4>    2. Koop informatie </h4>
   <div class="control-group">
       <label class="control-label" for="inputCompany">Bedrijf:<span

class=“text-error”>






Bedrag:





Datum
aankoop:
*






Opslaan

  </form><!--end form-->
 </div><!--end register-->
</div><!--end span9-->
<% end %>

But as soon as* I do products/new I see this error message : *

/home/action/workspace/finance/app/views/products/_form.html.erb:85:
syntax
error, unexpected keyword_ensure, expecting keyword_end
/home/action/workspace/finance/app/views/products/_form.html.erb:87:
syntax
error, unexpected end-of-input, expecting keyword_end

Roelof

Op vrijdag 13 maart 2015 17:09:58 UTC+1 schreef Colin L.:

I had these random “killed” messages in the past and it was a memory
issue.
I was using vagrant box, and in my case I just increased the ram
available
to the VM.

Em sexta-feira, 13 de março de 2015 12:44:08 UTC-3, Roelof W.
escreveu: