0
我想事先感謝您幫助我解決這個問題。 我在這裏試圖弄清楚phusion乘客或我的rails應用程序出了什麼問題。Phusion Passenger preloader error nginx
我做了大量的谷歌搜索以及在https://github.com/phusion/passenger/wiki/Debugging-application-startup-problems上看到的所有內容,但我仍然無法找出問題所在。
我已經包括了我認爲問題在哪裏,但完整的錯誤可以在www.malikhandaan.com上找到。
非常感謝您的幫助,提前。
(我在軌新手,這是我的第一個應用程序nginx的部署)
-- Ruby level backtrace information ----------------------------------------
/usr/share/passenger/helper-scripts/rack-preloader.rb:28:in `<main>'
/usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'
/usr/share/passenger/helper-scripts/rack-preloader.rb:153:in `<module:App>'
/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
`<main>' 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
<main>' config.ru:3:in `require'
/usr/share/nginx/www/malikhandaan/config/environment.rb:2:in `<top (required)>'
/usr/share/nginx/www/malikhandaan/config/environment.rb:2:in `require'
/usr/share/nginx/www/malikhandaan/config/application.rb:3:in `<top (required)>'
/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 `<top
(required)>' /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 `<top (required)>'
/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
`<top (required)>' /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 `<top (required)>'
/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 `<top (required)>' /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 `<top (required)>' /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 `<top (required)>'
/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
`<top (required)>' /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 `<top
(required)>' /home/ubuntu/.rvm/gems/ruby-2.0.0-p353/gems/json-1.8.1/lib/json.rb:58:in
`<module:JSON>' /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
`<top (required)>' /home/ubuntu/.rvm/gems/ruby-2.0.0-p353/gems/json-
1.8.1/lib/json/ext.rb:12:in `<module:JSON>' /home/ubuntu/.rvm/gems/ruby-2.0.0-
p353/gems/json-1.8.1/lib/json/ext.rb:17:in `<module:Ext>' /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
-----------------------------------------------------------------------
所以我再看一遍,我看到這個 /home/ubuntu/.rvm/gems/ruby-2.0.0-p353/gems/json-1.8.1/lib/json/common.rb:67: [BUG]分割錯誤 ruby 1.9.3p0(2011-10-30修訂版33570)[x86_64-linux] –
這是Ruby中的問題,而不是Passenger中的問題。查看最後幾行消息。 – Hongli
謝謝Hongli我感謝你的迴應......是的,我正在研究這個權利......我認爲json寶石已經搞砸了 –