我最近上傳了一些新文件到我的生產服務器(並覆蓋舊的),現在我得到500內部服務器錯誤。服務器正在運行phusion乘客(即使我不再收到該錯誤消息),並且在我的本地測試環境中,一切似乎都正常工作。500內部服務器錯誤與導軌生產
這裏是網站:http://www.pandonews.com/
當我在Apache日誌看我看到這個錯誤:
[ pid=3106 thr=140057117177664 file=ext/apache2/Hooks.cpp:884 time=2013-09-01 17:37:24.84 ]: Unexpected error in mod_passenger: Cannot spawn application '/var/www/feedme': The spawn server died unexpectedly, and restarting it failed.
Backtrace:
in 'virtual Passenger::SessionPtr Passenger::ApplicationPool::Client::get(const Passenger::PoolOptions&)' (Client.h:742)
in 'Passenger::SessionPtr Hooks::getSession(const Passenger::PoolOptions&)' (Hooks.cpp:312)
in 'int Hooks::handleRequest(request_rec*)' (Hooks.cpp:585)
我不知道是什麼問題。到目前爲止它一直運行良好。爲了解決這個問題,我不知道從哪裏開始。我試着再次運行gem乘客安裝,但沒有發生任何事情。
近期活動:
- 安裝PG寶石(但是從寶石文件中刪除它現在決定留在sqlite3的爲後)的YML文件應該沒問題...
- 試圖在服務器上運行包更新並在本地但它一直掛
- 改變了一些JavaScript和CSS文件...
- 試圖與RAILS_ENV =生產耙重置服務器:DB復位 - 沒有任何變化!
編輯: 運行軌道的生產時,我得到以下錯誤:
/home/otto/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.7/lib/active_support/dependencies.rb:251:in `require': cannot load such file -- rack/handler/production (LoadError)
from /home/otto/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.7/lib/active_support/dependencies.rb:251:in `block in require'
from /home/otto/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.7/lib/active_support/dependencies.rb:236:in `load_dependency'
from /home/otto/.rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.7/lib/active_support/dependencies.rb:251:in `require'
from /home/otto/.rvm/gems/ruby-1.9.3-p392/gems/rack-1.4.5/lib/rack/handler.rb:63:in `try_require'
from /home/otto/.rvm/gems/ruby-1.9.3-p392/gems/rack-1.4.5/lib/rack/handler.rb:16:in `get'
from /home/otto/.rvm/gems/ruby-1.9.3-p392/gems/rack-1.4.5/lib/rack/server.rb:272:in `server'
from /home/otto/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.7/lib/rails/commands/server.rb:59:in `start'
from /home/otto/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.7/lib/rails/commands.rb:55:in `block in <top (required)>'
from /home/otto/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.7/lib/rails/commands.rb:50:in `tap'
from /home/otto/.rvm/gems/ruby-1.9.3-p392/gems/railties-3.2.7/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
EDIT2:
$ passenger-status
ERROR: Phusion Passenger doesn't seem to be running.
EDIT3: 好像它正在運行,仍然是內部服務器錯誤:
passenger start -a 0.0.0.0 -p 3000 -d -e production
=============== Phusion Passenger Standalone web server started ===============
PID file: /var/www/feedme/tmp/pids/passenger.3000.pid
Log file: /var/www/feedme/log/passenger.3000.log
Environment: production
Accessible via: http://0.0.0.0:3000/
Serving in the background as a daemon.
===============================================================================
[email protected]:/var/www/feedme$ passenger status
Phusion Passenger Standalone is running on PID 18788, according to PID file /var/www/feedme/tmp/pids/passenger.3000.pid
[email protected]:/var/www/feedme$
和您的生產日誌中會出現什麼?如果您嘗試手動中斷應用程序(如「rails s production」),通常會運行rails進程的用戶登錄,會發生什麼情況? – fotanus
3.2.7上的所有軌道寶石?似乎它可能是一個版本不兼容。 – Kyle