cloud66部署的乘客问题
passenger issue with cloud66 deploy
当我使用 cloud66 部署时,我得到了这个:
第一次发生这种情况:
很抱歉,出了点问题。
我们已收到有关此问题的通知,我们会尽快查看。
Phusion Passenger 应用程序服务器在启动您的 Web 应用程序时遇到错误。因为您 运行 此 Web 应用程序处于暂存或生产模式,出于安全原因,此网页中省略了错误的详细信息。
请阅读网络服务器错误日志以查找错误的详细信息。如果您不知道 Web 服务器错误日志在哪里,请阅读下面的故障排除文档。
或者,您可以打开 "friendly error pages" 功能(见下文),这将使 Phusion Passenger 在浏览器中显示有关错误的许多详细信息。
Phusion Passenger 故障排除文档:
Nginx集成模式
Apache 集成模式
独立模式
要打开友好的错误页面:
Nginx集成模式
Apache 集成模式
单机模式:将--friendly-error-pages参数传递给passenger命令。
nginx 的错误日志:
nginx_error.log — inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:232:in `load_dependency'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `require'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:348:in `require_or_load'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:307:in `depend_on'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:225:in `require_dependency'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:468:in `block (2 levels) in eager_load!'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:467:in `each'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:467:in `block in eager_load!'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:465:in `each'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:465:in `eager_load!'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:346:in `eager_load!'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/application/finisher.rb:58:in `each'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/application/finisher.rb:58:in `block in <module:Finisher>'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/initializable.rb:30:in `instance_exec'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/initializable.rb:30:in `run'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/initializable.rb:55:in `block in run_initializers'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:226:in `block in tsort_each'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:427:in `each_strongly_connected_component_from'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:347:in `block in each_strongly_connected_component'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:345:in `each'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:345:in `call'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:345:in `each_strongly_connected_component'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:224:in `tsort_each'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:205:in `tsort_each'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/initializable.rb:54:in `run_initializers'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/application.rb:300:in `initialize!'
nginx_error.log — /var/deploy/inrtracker_production/web_head/releases/20150621153940/config/environment.rb:5:in `<top (required)>'
nginx_error.log — config.ru:3:in `require'
nginx_error.log — config.ru:3:in `block in <main>'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
nginx_error.log — config.ru:1:in `new'
nginx_error.log — config.ru:1:in `<main>'
nginx_error.log — /usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.50/helper-scripts/rack-preloader.rb:112:in `eval'
nginx_error.log — /usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.50/helper-scripts/rack-preloader.rb:112:in `preload_app'
nginx_error.log — /usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.50/helper-scripts/rack-preloader.rb:158:in `<module:App>'
nginx_error.log — /usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.50/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'
nginx_error.log — /usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.50/helper-scripts/rack-preloader.rb:28:in `<main>'
nginx_error.log — [ 2015-06-21 15:40:59.0770 20448/7ffa7a1e4700 agents/HelperAgent/RequestHandler.h:2306 ]: [Client 21] Cannot checkout session because a spawning error occurred. The identifier of the error is ef14968e. Please see earlier logs for details about the error.
nginx_error.log — [ 2015-06-21 15:40:59.0774 20448/7ffa7a1e4700 agents/HelperAgent/RequestHandler.h:2306 ]: [Client 37] Cannot checkout session because a spawning error occurred. The identifier of the error is ef14968e. Please see earlier logs for details about the error.
nginx_error.log — App 24023 stdout:
nginx_error.log — App 24023 stdout:
nginx_error.log — [ 2015-06-21 15:41:05.2655 20448/7ffa7c2ca700 Pool2/Implementation.cpp:287 ]: Could not spawn process for application /var/deploy/inrtracker_production/web_head/current: An error occured while starting up the preloader.
nginx_error.log — Error ID: ec59ece6
nginx_error.log — Error details saved to: /tmp/passenger-error-7YDCgc.html
nginx_error.log — Message from application: /var/deploy/inrtracker_production/web_head/releases/20150621153940/app/controllers/discuss_topics_controller.rb:87: syntax error, unexpected keyword_else, expecting keyword_end
nginx_error.log — /var/deploy/inrtracker_production/web_head/releases/20150621153940/app/controllers/discuss_topics_controller.rb:173: syntax error, unexpected end-of-input, expecting keyword_end (SyntaxError)
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `require'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `block in require'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:232:in `load_dependency'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `require'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:348:in `require_or_load'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:307:in `depend_on'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:225:in `require_dependency'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:468:in `block (2 levels) in eager_load!'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:467:in `each'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:467:in `block in eager_load!'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:465:in `each'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:465:in `eager_load!'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:346:in `eager_load!'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/application/finisher.rb:58:in `each'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/application/finisher.rb:58:in `block in <module:Finisher>'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/initializable.rb:30:in `instance_exec'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/initializable.rb:30:in `run'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/initializable.rb:55:in `block in run_initializers'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:226:in `block in tsort_each'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:427:in `each_strongly_connected_component_from'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:347:in `block in each_strongly_connected_component'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:345:in `each'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:345:in `call'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:345:in `each_strongly_connected_component'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:224:in `tsort_each'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:205:in `tsort_each'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/initializable.rb:54:in `run_initializers'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/application.rb:300:in `initialize!'
nginx_error.log — /var/deploy/inrtracker_production/web_head/releases/20150621153940/config/environment.rb:5:in `<top (required)>'
nginx_error.log — config.ru:3:in `require'
nginx_error.log — config.ru:3:in `block in <main>'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
nginx_error.log — config.ru:1:in `new'
nginx_error.log — config.ru:1:in `<main>'
nginx_error.log — /usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.50/helper-scripts/rack-preloader.rb:112:in `eval'
nginx_error.log — /usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.50/helper-scripts/rack-preloader.rb:112:in `preload_app'
nginx_error.log — /usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.50/helper-scripts/rack-preloader.rb:158:in `<module:App>'
nginx_error.log — /usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.50/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'
nginx_error.log — /usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.50/helper-scripts/rack-preloader.rb:28:in `<main>'
nginx_error.log — [ 2015-06-21 15:41:05.2733 20448/7ffa7a1e4700 agents/HelperAgent/RequestHandler.h:2306 ]: [Client 21] Cannot checkout session because a spawning error occurred. The identifier of the error is ec59ece6. Please see earlier logs for details about the error.
nginx_error.log — App 24047 stdout:
nginx_error.log — App 24047 stdout:
nginx_error.log — [ 2015-06-21 15:41:16.1314 20448/7ffa7c2ca700 Pool2/Implementation.cpp:287 ]: Could not spawn process for application /var/deploy/inrtracker_production/web_head/current: An error occured while starting up the preloader.
nginx_error.log — Error ID: 698a7033
nginx_error.log — Error details saved to: /tmp/passenger-error-jNWPnk.html
nginx_error.log — Message from application: /var/deploy/inrtracker_production/web_head/releases/20150621153940/app/controllers/discuss_topics_controller.rb:87: syntax error, unexpected keyword_else, expecting keyword_end
nginx_error.log — /var/deploy/inrtracker_production/web_head/releases/20150621153940/app/controllers/discuss_topics_controller.rb:173: syntax error, unexpected end-of-input, expecting keyword_end (SyntaxError)
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `require'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `block in require'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:232:in `load_dependency'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `require'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:348:in `require_or_load'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:307:in `depend_on'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:225:in `require_dependency'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:468:in `block (2 levels) in eager_load!'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:467:in `each'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:467:in `block in eager_load!'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:465:in `each'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:465:in `eager_load!'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:346:in `eager_load!'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/application/finisher.rb:58:in `each'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/application/finisher.rb:58:in `block in <module:Finisher>'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/initializable.rb:30:in `instance_exec'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/initializable.rb:30:in `run'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/initializable.rb:55:in `block in run_initializers'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:226:in `block in tsort_each'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:427:in `each_strongly_connected_component_from'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:347:in `block in each_strongly_connected_component'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:345:in `each'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:345:in `call'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:345:in `each_strongly_connected_component'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:224:in `tsort_each'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:205:in `tsort_each'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/initializable.rb:54:in `run_initializers'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/application.rb:300:in `initialize!'
nginx_error.log — /var/deploy/inrtracker_production/web_head/releases/20150621153940/config/environment.rb:5:in `<top (required)>'
nginx_error.log — config.ru:3:in `require'
nginx_error.log — config.ru:3:in `block in <main>'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
nginx_error.log — config.ru:1:in `new'
nginx_error.log — config.ru:1:in `<main>'
nginx_error.log — /usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.50/helper-scripts/rack-preloader.rb:112:in `eval'
nginx_error.log — /usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.50/helper-scripts/rack-preloader.rb:112:in `preload_app'
nginx_error.log — /usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.50/helper-scripts/rack-preloader.rb:158:in `<module:App>'
nginx_error.log — /usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.50/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'
nginx_error.log — /usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.50/helper-scripts/rack-preloader.rb:28:in `<main>'
nginx_error.log — [ 2015-06-21 15:41:16.1387 20448/7ffa7a1e4700 agents/HelperAgent/RequestHandler.h:2306 ]: [Client 21] Cannot checkout session because a spawning error occurred. The identifier of the error is 698a7033. Please see earlier logs for details about the error.
nginx_error.log — [ 2015-06-21 15:41:16.1394 20448/7ffa7a1e4700 agents/HelperAgent/RequestHandler.h:2306 ]: [Client 38] Cannot checkout session because a spawning error occurred. The identifier of the error is 698a7033.
有关错误的详细信息,请参阅之前的日志。
我查看了您的错误日志,您的 Passenger 实例似乎由于应用程序中的问题而无法启动:
nginx_error.log — Message from application: /var/deploy/inrtracker_production/web_head/releases/20150621153940/app/controllers/discuss_topics_controller.rb:87: syntax error, unexpected keyword_else, expecting keyword_end
nginx_error.log — /var/deploy/inrtracker_production/web_head/releases/20150621153940/app/controllers/discuss_topics_controller.rb:173: syntax error, unexpected end-of-input, expecting keyword_end (SyntaxError)
能否请您看一下这些行,并确保条件已关闭?
西亚瓦什
当我使用 cloud66 部署时,我得到了这个:
第一次发生这种情况:
很抱歉,出了点问题。
我们已收到有关此问题的通知,我们会尽快查看。
Phusion Passenger 应用程序服务器在启动您的 Web 应用程序时遇到错误。因为您 运行 此 Web 应用程序处于暂存或生产模式,出于安全原因,此网页中省略了错误的详细信息。
请阅读网络服务器错误日志以查找错误的详细信息。如果您不知道 Web 服务器错误日志在哪里,请阅读下面的故障排除文档。
或者,您可以打开 "friendly error pages" 功能(见下文),这将使 Phusion Passenger 在浏览器中显示有关错误的许多详细信息。
Phusion Passenger 故障排除文档:
Nginx集成模式 Apache 集成模式 独立模式 要打开友好的错误页面:
Nginx集成模式 Apache 集成模式 单机模式:将--friendly-error-pages参数传递给passenger命令。
nginx 的错误日志:
nginx_error.log — inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:232:in `load_dependency'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `require'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:348:in `require_or_load'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:307:in `depend_on'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:225:in `require_dependency'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:468:in `block (2 levels) in eager_load!'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:467:in `each'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:467:in `block in eager_load!'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:465:in `each'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:465:in `eager_load!'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:346:in `eager_load!'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/application/finisher.rb:58:in `each'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/application/finisher.rb:58:in `block in <module:Finisher>'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/initializable.rb:30:in `instance_exec'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/initializable.rb:30:in `run'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/initializable.rb:55:in `block in run_initializers'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:226:in `block in tsort_each'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:427:in `each_strongly_connected_component_from'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:347:in `block in each_strongly_connected_component'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:345:in `each'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:345:in `call'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:345:in `each_strongly_connected_component'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:224:in `tsort_each'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:205:in `tsort_each'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/initializable.rb:54:in `run_initializers'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/application.rb:300:in `initialize!'
nginx_error.log — /var/deploy/inrtracker_production/web_head/releases/20150621153940/config/environment.rb:5:in `<top (required)>'
nginx_error.log — config.ru:3:in `require'
nginx_error.log — config.ru:3:in `block in <main>'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
nginx_error.log — config.ru:1:in `new'
nginx_error.log — config.ru:1:in `<main>'
nginx_error.log — /usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.50/helper-scripts/rack-preloader.rb:112:in `eval'
nginx_error.log — /usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.50/helper-scripts/rack-preloader.rb:112:in `preload_app'
nginx_error.log — /usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.50/helper-scripts/rack-preloader.rb:158:in `<module:App>'
nginx_error.log — /usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.50/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'
nginx_error.log — /usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.50/helper-scripts/rack-preloader.rb:28:in `<main>'
nginx_error.log — [ 2015-06-21 15:40:59.0770 20448/7ffa7a1e4700 agents/HelperAgent/RequestHandler.h:2306 ]: [Client 21] Cannot checkout session because a spawning error occurred. The identifier of the error is ef14968e. Please see earlier logs for details about the error.
nginx_error.log — [ 2015-06-21 15:40:59.0774 20448/7ffa7a1e4700 agents/HelperAgent/RequestHandler.h:2306 ]: [Client 37] Cannot checkout session because a spawning error occurred. The identifier of the error is ef14968e. Please see earlier logs for details about the error.
nginx_error.log — App 24023 stdout:
nginx_error.log — App 24023 stdout:
nginx_error.log — [ 2015-06-21 15:41:05.2655 20448/7ffa7c2ca700 Pool2/Implementation.cpp:287 ]: Could not spawn process for application /var/deploy/inrtracker_production/web_head/current: An error occured while starting up the preloader.
nginx_error.log — Error ID: ec59ece6
nginx_error.log — Error details saved to: /tmp/passenger-error-7YDCgc.html
nginx_error.log — Message from application: /var/deploy/inrtracker_production/web_head/releases/20150621153940/app/controllers/discuss_topics_controller.rb:87: syntax error, unexpected keyword_else, expecting keyword_end
nginx_error.log — /var/deploy/inrtracker_production/web_head/releases/20150621153940/app/controllers/discuss_topics_controller.rb:173: syntax error, unexpected end-of-input, expecting keyword_end (SyntaxError)
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `require'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `block in require'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:232:in `load_dependency'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `require'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:348:in `require_or_load'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:307:in `depend_on'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:225:in `require_dependency'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:468:in `block (2 levels) in eager_load!'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:467:in `each'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:467:in `block in eager_load!'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:465:in `each'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:465:in `eager_load!'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:346:in `eager_load!'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/application/finisher.rb:58:in `each'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/application/finisher.rb:58:in `block in <module:Finisher>'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/initializable.rb:30:in `instance_exec'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/initializable.rb:30:in `run'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/initializable.rb:55:in `block in run_initializers'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:226:in `block in tsort_each'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:427:in `each_strongly_connected_component_from'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:347:in `block in each_strongly_connected_component'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:345:in `each'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:345:in `call'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:345:in `each_strongly_connected_component'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:224:in `tsort_each'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:205:in `tsort_each'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/initializable.rb:54:in `run_initializers'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/application.rb:300:in `initialize!'
nginx_error.log — /var/deploy/inrtracker_production/web_head/releases/20150621153940/config/environment.rb:5:in `<top (required)>'
nginx_error.log — config.ru:3:in `require'
nginx_error.log — config.ru:3:in `block in <main>'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
nginx_error.log — config.ru:1:in `new'
nginx_error.log — config.ru:1:in `<main>'
nginx_error.log — /usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.50/helper-scripts/rack-preloader.rb:112:in `eval'
nginx_error.log — /usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.50/helper-scripts/rack-preloader.rb:112:in `preload_app'
nginx_error.log — /usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.50/helper-scripts/rack-preloader.rb:158:in `<module:App>'
nginx_error.log — /usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.50/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'
nginx_error.log — /usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.50/helper-scripts/rack-preloader.rb:28:in `<main>'
nginx_error.log — [ 2015-06-21 15:41:05.2733 20448/7ffa7a1e4700 agents/HelperAgent/RequestHandler.h:2306 ]: [Client 21] Cannot checkout session because a spawning error occurred. The identifier of the error is ec59ece6. Please see earlier logs for details about the error.
nginx_error.log — App 24047 stdout:
nginx_error.log — App 24047 stdout:
nginx_error.log — [ 2015-06-21 15:41:16.1314 20448/7ffa7c2ca700 Pool2/Implementation.cpp:287 ]: Could not spawn process for application /var/deploy/inrtracker_production/web_head/current: An error occured while starting up the preloader.
nginx_error.log — Error ID: 698a7033
nginx_error.log — Error details saved to: /tmp/passenger-error-jNWPnk.html
nginx_error.log — Message from application: /var/deploy/inrtracker_production/web_head/releases/20150621153940/app/controllers/discuss_topics_controller.rb:87: syntax error, unexpected keyword_else, expecting keyword_end
nginx_error.log — /var/deploy/inrtracker_production/web_head/releases/20150621153940/app/controllers/discuss_topics_controller.rb:173: syntax error, unexpected end-of-input, expecting keyword_end (SyntaxError)
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `require'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `block in require'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:232:in `load_dependency'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `require'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:348:in `require_or_load'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:307:in `depend_on'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:225:in `require_dependency'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:468:in `block (2 levels) in eager_load!'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:467:in `each'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:467:in `block in eager_load!'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:465:in `each'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:465:in `eager_load!'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:346:in `eager_load!'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/application/finisher.rb:58:in `each'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/application/finisher.rb:58:in `block in <module:Finisher>'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/initializable.rb:30:in `instance_exec'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/initializable.rb:30:in `run'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/initializable.rb:55:in `block in run_initializers'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:226:in `block in tsort_each'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:427:in `each_strongly_connected_component_from'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:347:in `block in each_strongly_connected_component'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:345:in `each'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:345:in `call'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:345:in `each_strongly_connected_component'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:224:in `tsort_each'
nginx_error.log — /usr/local/lib/ruby/2.1.0/tsort.rb:205:in `tsort_each'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/initializable.rb:54:in `run_initializers'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/railties-4.1.4/lib/rails/application.rb:300:in `initialize!'
nginx_error.log — /var/deploy/inrtracker_production/web_head/releases/20150621153940/config/environment.rb:5:in `<top (required)>'
nginx_error.log — config.ru:3:in `require'
nginx_error.log — config.ru:3:in `block in <main>'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
nginx_error.log — /var/deploy/inrtracker_production/web_head/shared/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
nginx_error.log — config.ru:1:in `new'
nginx_error.log — config.ru:1:in `<main>'
nginx_error.log — /usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.50/helper-scripts/rack-preloader.rb:112:in `eval'
nginx_error.log — /usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.50/helper-scripts/rack-preloader.rb:112:in `preload_app'
nginx_error.log — /usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.50/helper-scripts/rack-preloader.rb:158:in `<module:App>'
nginx_error.log — /usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.50/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'
nginx_error.log — /usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.50/helper-scripts/rack-preloader.rb:28:in `<main>'
nginx_error.log — [ 2015-06-21 15:41:16.1387 20448/7ffa7a1e4700 agents/HelperAgent/RequestHandler.h:2306 ]: [Client 21] Cannot checkout session because a spawning error occurred. The identifier of the error is 698a7033. Please see earlier logs for details about the error.
nginx_error.log — [ 2015-06-21 15:41:16.1394 20448/7ffa7a1e4700 agents/HelperAgent/RequestHandler.h:2306 ]: [Client 38] Cannot checkout session because a spawning error occurred. The identifier of the error is 698a7033.
有关错误的详细信息,请参阅之前的日志。
我查看了您的错误日志,您的 Passenger 实例似乎由于应用程序中的问题而无法启动:
nginx_error.log — Message from application: /var/deploy/inrtracker_production/web_head/releases/20150621153940/app/controllers/discuss_topics_controller.rb:87: syntax error, unexpected keyword_else, expecting keyword_end
nginx_error.log — /var/deploy/inrtracker_production/web_head/releases/20150621153940/app/controllers/discuss_topics_controller.rb:173: syntax error, unexpected end-of-input, expecting keyword_end (SyntaxError)
能否请您看一下这些行,并确保条件已关闭?
西亚瓦什