Skip to content

webapp production: Exception PhusionPassenger::UnknownError in PhusionPassenger::Rack::ApplicationSpawner (500 Internal Server Error (RestClient::InternalServerError))

from /var/log/apache2/error.log (wallaby, production webapp server)

[Sat Aug 03 13:18:06 2013] [notice] caught SIGTERM, shutting down
[Sat Aug 03 13:18:07 2013] [warn] RSA server certificate CommonName (CN) `wallaby.bitmask.net' does NOT match server name!?
[Sat Aug 03 13:18:07 2013] [warn] RSA server certificate CommonName (CN) `wallaby.bitmask.net' does NOT match server name!?
[Sat Aug 03 13:18:08 2013] [warn] RSA server certificate CommonName (CN) `wallaby.bitmask.net' does NOT match server name!?
[Sat Aug 03 13:18:08 2013] [warn] RSA server certificate CommonName (CN) `wallaby.bitmask.net' does NOT match server name!?
[Sat Aug 03 13:18:08 2013] [notice] Apache/2.2.22 (Debian) Phusion_Passenger/3.0.13 PHP/5.4.4-14+deb7u3 mod_ssl/2.2.22 OpenSSL/1.0.1e configured -- resuming normal operations
[ pid=5234 thr=8173660 file=utils.rb:176 time=2013-08-03 13:18:19.789 ]: *** Exception PhusionPassenger::UnknownError in PhusionPassenger::Rack::ApplicationSpawner (500 Internal Server Error (RestClient::InternalServerError)) (process 5234, thread #):
	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.beta2/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/token.rb:3:in `'
	from /srv/leap/webapp/users/app/models/token.rb:1:in `'
	from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
	from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
	from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
	from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
	from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:359:in `require_or_load'
	from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:313:in `depend_on'
	from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:225:in `require_dependency'
	from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/engine.rb:439:in `block (2 levels) in eager_load!'
	from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/engine.rb:438:in `each'
	from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/engine.rb:438:in `block in eager_load!'
	from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/engine.rb:436:in `each'
	from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/engine.rb:436:in `eager_load!'
	from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/application/railties.rb:8:in `each'
	from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/application/railties.rb:8:in `all'
	from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/engine.rb:434:in `eager_load!'
	from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/application/finisher.rb:53:in `block in '
	from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `instance_exec'
	from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `run'
	from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:55:in `block in run_initializers'
	from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `each'
	from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `run_initializers'
	from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/application.rb:136:in `initialize!'
	from /srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in `method_missing'
	from /srv/leap/webapp/config/environment.rb:5:in `'
	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 :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=5260 thr=139763722143552 file=ext/apache2/Hooks.cpp:862 time=2013-08-03 13:18:19.900 ]: Unexpected error in mod_passenger: Cannot spawn application '/srv/leap/webapp': An error occured while spawning the application.
  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:294)
     in 'int Hooks::handleRequest(request_rec*)' (Hooks.cpp:563)

azul, do you have an idea what's going on ?

(from redmine: created on 2013-08-03, closed on 2013-08-05, relates #3394 (closed))