当我使用cloud66部署时,我得到了这个:
第一次发生这种情况:
我们很抱歉,但出了点问题。
我们已经收到有关此问题的通知,我们很快就会对其进行审核。
Phusion Passenger应用程序服务器在启动Web应用程序时遇到错误。由于您是在暂存或生产模式下运行此Web应用程序,出于安全原因,此网页已省略错误的详细信息。
请阅读Web服务器错误日志以查找错误的详细信息。如果您不知道Web服务器错误日志的位置,请阅读下面的故障排除文档。
或者,您可以打开"友好错误页面"功能(见下文),这将使Phusion Passenger在浏览器中显示有关错误的许多细节。
Phusion Passenger故障排除文档:
Nginx集成模式 Apache集成模式 独立模式 要打开友好错误页面:
Nginx集成模式 Apache集成模式 独立模式:将--friendly-error-pages参数传递给乘客命令。
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.
有关错误的详细信息,请参阅前面的日志。
答案 0 :(得分:2)
我查看了您的错误日志,由于您的应用程序出现问题,您的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)
请你看一下那些线,并确保条件关闭?
萨瓦什