Test of webapp server on new deploy. mod-passenger failure
tried to assess webapp server https://my-webapp.server.foo/
got error (500):
Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
apache2 error.log:
[ pid=21570 thr=10623080 file=utils.rb:176 time=2013-11-06 15:24:32.839 ]: *** Exception PhusionPassenger::UnknownError in PhusionPassenger::Rack::ApplicationSpawner (503 Service Unavailable (RestClient::ServiceUnavailable)) (process 21570, thread #Thread:0x000000014430d0):
from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/rest-client-1.6.7/lib/restclient/abstract_response.rb:48:in return!' from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/rest-client-1.6.7/lib/restclient/request.rb:230:in
process_result'
from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/rest-client-1.6.7/lib/restclient/request.rb:178:in block in transmit' from /usr/lib/ruby/1.9.1/net/http.rb:745:in
start'
from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/rest-client-1.6.7/lib/restclient/request.rb:172:in transmit' from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in
execute'
from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/rest-client-1.6.7/lib/restclient/request.rb:33:in execute' from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/couchrest-1.1.3/lib/couchrest/rest_api.rb:94:in
execute'
from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/couchrest-1.1.3/lib/couchrest/rest_api.rb:74:in head' from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/couchrest-1.1.3/lib/couchrest/server.rb:58:in
database!'
from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/couchrest_model-2.0.0/lib/couchrest/model/connection.rb:32:in prepare_database' from /srv/leap/webapp/core/lib/extensions/couchrest.rb:35:in
use_database'
from /srv/leap/webapp/users/app/models/user.rb:4:in <class:User>' from /srv/leap/webapp/users/app/models/user.rb:1:in
<top (required)>'
from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.15/lib/active_support/dependencies.rb:251:in require' from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.15/lib/active_support/dependencies.rb:251:in
block in require'
from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.15/lib/active_support/dependencies.rb:236:in load_dependency' from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.15/lib/active_support/dependencies.rb:251:in
require'
from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.15/lib/active_support/dependencies.rb:359:in require_or_load' from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.15/lib/active_support/dependencies.rb:502:in
load_missing_constant'
from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.15/lib/active_support/dependencies.rb:192:in block in const_missing' from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.15/lib/active_support/dependencies.rb:190:in
each'
from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.15/lib/active_support/dependencies.rb:190:in const_missing' from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.15/lib/active_support/inflector/methods.rb:230:in
block in constantize'
from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.15/lib/active_support/inflector/methods.rb:229:in each' from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.15/lib/active_support/inflector/methods.rb:229:in
constantize'
from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.15/lib/active_support/inflector/methods.rb:260:in safe_constantize' from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.15/lib/active_support/core_ext/string/inflections.rb:66:in
safe_constantize'
from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.15/lib/action_controller/metal/params_wrapper.rb:152:in _default_wrap_model' from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.15/lib/action_controller/metal/params_wrapper.rb:169:in
_set_wrapper_defaults'
from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.15/lib/action_controller/metal/params_wrapper.rb:133:in inherited' from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.15/lib/abstract_controller/railties/routes_helpers.rb:7:in
block (2 levels) in with'
from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.15/lib/action_controller/railties/paths.rb:7:in block (2 levels) in with' from /srv/leap/webapp/users/app/controllers/users_controller.rb:5:in
<top (required)>'
from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.15/lib/active_support/dependencies.rb:251:in require' from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.15/lib/active_support/dependencies.rb:251:in
block in require'
from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.15/lib/active_support/dependencies.rb:236:in load_dependency' from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.15/lib/active_support/dependencies.rb:251:in
require'
from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.15/lib/active_support/dependencies.rb:359:in require_or_load' from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.15/lib/active_support/dependencies.rb:313:in
depend_on'
from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.15/lib/active_support/dependencies.rb:225:in require_dependency' from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/railties-3.2.15/lib/rails/engine.rb:444:in
block (2 levels) in eager_load!'
from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/railties-3.2.15/lib/rails/engine.rb:443:in each' from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/railties-3.2.15/lib/rails/engine.rb:443:in
block in eager_load!'
from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/railties-3.2.15/lib/rails/engine.rb:441:in each' from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/railties-3.2.15/lib/rails/engine.rb:441:in
eager_load!'
from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/railties-3.2.15/lib/rails/application/railties.rb:8:in each' from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/railties-3.2.15/lib/rails/application/railties.rb:8:in
all'
from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/railties-3.2.15/lib/rails/engine.rb:439:in eager_load!' from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/railties-3.2.15/lib/rails/application/finisher.rb:53:in
block in module:Finisher'
from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/railties-3.2.15/lib/rails/initializable.rb:30:in instance_exec' from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/railties-3.2.15/lib/rails/initializable.rb:30:in
run'
from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/railties-3.2.15/lib/rails/initializable.rb:55:in block in run_initializers' from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/railties-3.2.15/lib/rails/initializable.rb:54:in
each'
from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/railties-3.2.15/lib/rails/initializable.rb:54:in run_initializers' from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/railties-3.2.15/lib/rails/application.rb:136:in
initialize!'
from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/railties-3.2.15/lib/rails/railtie/configurable.rb:30:in method_missing' from /srv/leap/webapp/config/environment.rb:5:in
<top (required)>'
from config.ru:3:in require' from config.ru:3:in
block in '
from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:51:in instance_eval' from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:51:in
initialize'
from config.ru:1:in new' from config.ru:1:in
'
from /usr/lib/ruby/vendor_ruby/phusion_passenger/rack/application_spawner.rb:225:in eval' from /usr/lib/ruby/vendor_ruby/phusion_passenger/rack/application_spawner.rb:225:in
load_rack_app'
from /usr/lib/ruby/vendor_ruby/phusion_passenger/rack/application_spawner.rb:157:in block in initialize_server' from /usr/lib/ruby/vendor_ruby/phusion_passenger/utils.rb:572:in
report_app_init_status'
from /usr/lib/ruby/vendor_ruby/phusion_passenger/rack/application_spawner.rb:154:in initialize_server' from /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb:204:in
start_synchronously'
from /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb:180:in start' from /usr/lib/ruby/vendor_ruby/phusion_passenger/rack/application_spawner.rb:129:in
start'
from /usr/lib/ruby/vendor_ruby/phusion_passenger/spawn_manager.rb:253:in block (2 levels) in spawn_rack_application' from /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server_collection.rb:132:in
lookup_or_add'
from /usr/lib/ruby/vendor_ruby/phusion_passenger/spawn_manager.rb:246:in block in spawn_rack_application' from /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server_collection.rb:82:in
block in synchronize'
from internal:prelude:10:in synchronize' from /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server_collection.rb:79:in
synchronize'
from /usr/lib/ruby/vendor_ruby/phusion_passenger/spawn_manager.rb:244:in spawn_rack_application' from /usr/lib/ruby/vendor_ruby/phusion_passenger/spawn_manager.rb:137:in
spawn_application'
from /usr/lib/ruby/vendor_ruby/phusion_passenger/spawn_manager.rb:275:in handle_spawn_application' from /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb:357:in
server_main_loop'
from /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb:206:in start_synchronously' from /usr/share/phusion-passenger/helper-scripts/passenger-spawn-server:99:in
'
[ pid=21596 thr=140596181612288 file=ext/apache2/Hooks.cpp:862 time=2013-11-06 15:24:33.43 ]: Unexpected error in mod_passenger: Cannot spawn application '/srv/leap/webapp': An error occured while spawning the application.
Backtrace:
(from redmine: created on 2013-11-06, relates #4225 (closed))