title: Phusion Passenger preloader error nginx
body: <p>I'd like to thank you in advance for helping me out with this.
  I am going mad here trying to figure out what is wrong with phusion passenger or my rails app.</p>
  
  <p>I have done a lot of googling as well as read everything on <a href="https://github.com/phusion/passenger/wiki/Debugging-application-startup-problems" rel="nofollow">https://github.com/phusion/passenger/wiki/Debugging-application-startup-problems</a> but i still can not seem to figure out what the problem is. </p>
  
  <p>I have included where i think the problem lies but the full error can be accessed at www.malikhandaan.com.</p>
  
  <p>Thank you so much for helping, in advance.</p>
  
  <p>(I am newbie at rails, this is my first app deploy with nginx)</p>
  
  <pre><code>-- Ruby level backtrace information ----------------------------------------     
  /usr/share/passenger/helper-scripts/rack-preloader.rb:28:in `&lt;main&gt;'  
  /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `&lt;module:PhusionPassenger&gt;' 
  /usr/share/passenger/helper-scripts/rack-preloader.rb:153:in `&lt;module:App&gt;' 
  /usr/share/passenger/helper-scripts/rack-preloader.rb:108:in `preload_app' 
  /usr/share/passenger/helper-scripts/rack-preloader.rb:108:in `eval' config.ru:1:in 
  `&lt;main&gt;' config.ru:1:in `new' /home/ubuntu/.rvm/gems/ruby-2.0.0-p353/gems/rack-
  1.5.2/lib/rack/builder.rb:55:in `initialize' /home/ubuntu/.rvm/gems/ruby-2.0.0-
  p353/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval' config.ru:3:in `block in 
  &lt;main&gt;' config.ru:3:in `require' 
  /usr/share/nginx/www/malikhandaan/config/environment.rb:2:in `&lt;top (required)&gt;' 
  /usr/share/nginx/www/malikhandaan/config/environment.rb:2:in `require' 
  /usr/share/nginx/www/malikhandaan/config/application.rb:3:in `&lt;top (required)&gt;' 
  /usr/share/nginx/www/malikhandaan/config/application.rb:3:in `require' 
  /home/ubuntu/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.2/lib/rails/all.rb:1:in `&lt;top 
  (required)&gt;' /home/ubuntu/.rvm/gems/ruby-2.0.0-p353/gems/railties-
  4.0.2/lib/rails/all.rb:1:in `require' /home/ubuntu/.rvm/gems/ruby-2.0.0-
  p353/gems/railties-4.0.2/lib/rails.rb:9:in `&lt;top (required)&gt;' 
  /home/ubuntu/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.2/lib/rails.rb:9:in `require' 
  /home/ubuntu/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.2/lib/rails/application.rb:4:in 
  `&lt;top (required)&gt;' /home/ubuntu/.rvm/gems/ruby-2.0.0-p353/gems/railties-
  4.0.2/lib/rails/application.rb:4:in `require' /home/ubuntu/.rvm/gems/ruby-2.0.0-
  p353/gems/railties-4.0.2/lib/rails/engine.rb:1:in `&lt;top (required)&gt;' 
  /home/ubuntu/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.2/lib/rails/engine.rb:1:in 
  `require' /home/ubuntu/.rvm/gems/ruby-2.0.0-p353/gems/railties-
  4.0.2/lib/rails/railtie.rb:2:in `&lt;top (required)&gt;' /home/ubuntu/.rvm/gems/ruby-2.0.0-
  p353/gems/railties-4.0.2/lib/rails/railtie.rb:2:in `require' 
  /home/ubuntu/.rvm/gems/ruby-2.0.0-p353/gems/railties-
  4.0.2/lib/rails/configuration.rb:3:in `&lt;top (required)&gt;' /home/ubuntu/.rvm/gems/ruby-
  2.0.0-p353/gems/railties-4.0.2/lib/rails/configuration.rb:3:in `require' 
  /home/ubuntu/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-
  4.0.2/lib/active_support/core_ext/object.rb:11:in `&lt;top (required)&gt;' 
  /home/ubuntu/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-
  4.0.2/lib/active_support/core_ext/object.rb:11:in `require' /home/ubuntu/.rvm/gems/ruby-
  2.0.0-p353/gems/activesupport-4.0.2/lib/active_support/core_ext/object/to_json.rb:3:in 
  `&lt;top (required)&gt;' /home/ubuntu/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-
  4.0.2/lib/active_support/core_ext/object/to_json.rb:3:in `require' 
  /home/ubuntu/.rvm/gems/ruby-2.0.0-p353/gems/json-1.8.1/lib/json.rb:54:in `&lt;top 
  (required)&gt;' /home/ubuntu/.rvm/gems/ruby-2.0.0-p353/gems/json-1.8.1/lib/json.rb:58:in 
  `&lt;module:JSON&gt;' /home/ubuntu/.rvm/gems/ruby-2.0.0-p353/gems/json-1.8.1/lib/json.rb:58:in 
  `require' /home/ubuntu/.rvm/gems/ruby-2.0.0-p353/gems/json-1.8.1/lib/json/ext.rb:9:in 
  `&lt;top (required)&gt;' /home/ubuntu/.rvm/gems/ruby-2.0.0-p353/gems/json-
  1.8.1/lib/json/ext.rb:12:in `&lt;module:JSON&gt;' /home/ubuntu/.rvm/gems/ruby-2.0.0-
  p353/gems/json-1.8.1/lib/json/ext.rb:17:in `&lt;module:Ext&gt;' /home/ubuntu/.rvm/gems/ruby-
  2.0.0-p353/gems/json-1.8.1/lib/json/common.rb:67:in `generator=' 
  /home/ubuntu/.rvm/gems/ruby-2.0.0-p353/gems/json-1.8.1/lib/json/common.rb:67:in `new' 
  /home/ubuntu/.rvm/gems/ruby-2.0.0-p353/gems/json-1.8.1/lib/json/common.rb:67:in 
  `initialize' 
  
  
  [NOTE] You may have encountered a bug in the Ruby interpreter or extension libraries. 
  Bug reports are welcome. For details: http://www.ruby-lang.org/bugreport.html
  
  -----------------------------------------------------------------------
  </code></pre>