markbates / markbates/cover_me

cover_me breaks passenger standalone

Open
#31 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
203
Forks
17
PR merge metrics
No merged PRs in 30d

Description

I'm not really sure what's going on here, but I can run my app just fine with webrick. However, when I try to run it using passenger standalone (my preferred server), I get the following stacktrace which appears to be a conflict between passenger and configatron. I'm happy to assist with any further debugging of this issue if you can point me in the right direction. Here's the stacktrace:

[ pid=38526 thr=2151955260 file=utils.rb:176 time=2011-02-21 17:26:27.396 ]: **\* Exception PhusionPassenger::UnknownError in PhusionPassenger::Rack::ApplicationSpawner (at_exit (Configatron::ProtectedParameter)) (process 38526, thread #Thread:0x00000100887678):
from /Users/jeff/.rvm/gems/ruby-1.9.2-p136@homeschool/gems/configatron-2.6.4/lib/configatron/store.rb:136:in `method_missing'
from /Users/jeff/.rvm/gems/ruby-1.9.2-p136@homeschool/gems/configatron-2.6.4/lib/configatron/store.rb:129:in`set_default'
from /Users/jeff/.rvm/gems/ruby-1.9.2-p136@homeschool/gems/cover_me-1.0.0.rc5/lib/cover_me/config.rb:33:in `block in set_defaults'
from /Users/jeff/.rvm/gems/ruby-1.9.2-p136@homeschool/gems/cover_me-1.0.0.rc5/lib/cover_me/config.rb:16:in`config'
from /Users/jeff/.rvm/gems/ruby-1.9.2-p136@homeschool/gems/cover_me-1.0.0.rc5/lib/cover_me/config.rb:21:in `set_defaults'
from /Users/jeff/.rvm/gems/ruby-1.9.2-p136@homeschool/gems/cover_me-1.0.0.rc5/lib/cover_me.rb:34:in`'
from /Users/jeff/.rvm/gems/ruby-1.9.2-p136@homeschool/gems/bundler-1.0.10/lib/bundler/runtime.rb:68:in `require'
from /Users/jeff/.rvm/gems/ruby-1.9.2-p136@homeschool/gems/bundler-1.0.10/lib/bundler/runtime.rb:68:in`block (2 levels) in require'
from /Users/jeff/.rvm/gems/ruby-1.9.2-p136@homeschool/gems/bundler-1.0.10/lib/bundler/runtime.rb:66:in `each'
from /Users/jeff/.rvm/gems/ruby-1.9.2-p136@homeschool/gems/bundler-1.0.10/lib/bundler/runtime.rb:66:in`block in require'
from /Users/jeff/.rvm/gems/ruby-1.9.2-p136@homeschool/gems/bundler-1.0.10/lib/bundler/runtime.rb:55:in `each'
from /Users/jeff/.rvm/gems/ruby-1.9.2-p136@homeschool/gems/bundler-1.0.10/lib/bundler/runtime.rb:55:in`require'
from /Users/jeff/.rvm/gems/ruby-1.9.2-p136@homeschool/gems/bundler-1.0.10/lib/bundler.rb:120:in `require'
from /Users/jeff/homeschool/homeschool/config/application.rb:7:in`'
from /Users/jeff/homeschool/homeschool/config/environment.rb:2:in `require'
from /Users/jeff/homeschool/homeschool/config/environment.rb:2:in`'
from config.ru:3:in `require'
from config.ru:3:in`block in '
from /Users/jeff/.rvm/gems/ruby-1.9.2-p136@homeschool/gems/rack-1.2.1/lib/rack/builder.rb:46:in `instance_eval'
from /Users/jeff/.rvm/gems/ruby-1.9.2-p136@homeschool/gems/rack-1.2.1/lib/rack/builder.rb:46:in`initialize
from config.ru:1:in `new'
from config.ru:1:in`'
from /Users/jeff/.passenger/standalone/3.0.2-x86_64-ruby1.9.2-macosx-10.6/support/lib/phusion_passenger/rack/application_spawner.rb:221:in `eval'
from /Users/jeff/.passenger/standalone/3.0.2-x86_64-ruby1.9.2-macosx-10.6/support/lib/phusion_passenger/rack/application_spawner.rb:221:in`load_rack_app'
from /Users/jeff/.passenger/standalone/3.0.2-x86_64-ruby1.9.2-macosx-10.6/support/lib/phusion_passenger/rack/application_spawner.rb:156:in `block in initialize_server'
from /Users/jeff/.passenger/standalone/3.0.2-x86_64-ruby1.9.2-macosx-10.6/support/lib/phusion_passenger/utils.rb:564:in`report_app_init_status'
from /Users/jeff/.passenger/standalone/3.0.2-x86_64-ruby1.9.2-macosx-10.6/support/lib/phusion_passenger/rack/application_spawner.rb:153:in `initialize_server'
from /Users/jeff/.passenger/standalone/3.0.2-x86_64-ruby1.9.2-macosx-10.6/support/lib/phusion_passenger/abstract_server.rb:204:in`start_synchronously'
from /Users/jeff/.passenger/standalone/3.0.2-x86_64-ruby1.9.2-macosx-10.6/support/lib/phusion_passenger/abstract_server.rb:180:in `start'
from /Users/jeff/.passenger/standalone/3.0.2-x86_64-ruby1.9.2-macosx-10.6/support/lib/phusion_passenger/rack/application_spawner.rb:128:in`start'
from /Users/jeff/.passenger/standalone/3.0.2-x86_64-ruby1.9.2-macosx-10.6/support/lib/phusion_passenger/spawn_manager.rb:253:in `block (2 levels) in spawn_rack_application'
from /Users/jeff/.passenger/standalone/3.0.2-x86_64-ruby1.9.2-macosx-10.6/support/lib/phusion_passenger/abstract_server_collection.rb:132:in`lookup_or_add'
from /Users/jeff/.passenger/standalone/3.0.2-x86_64-ruby1.9.2-macosx-10.6/support/lib/phusion_passenger/spawn_manager.rb:246:in `block in spawn_rack_application'
from /Users/jeff/.passenger/standalone/3.0.2-x86_64-ruby1.9.2-macosx-10.6/support/lib/phusion_passenger/abstract_server_collection.rb:82:in`block in synchronize'
from internal:prelude:10:in `synchronize'
from /Users/jeff/.passenger/standalone/3.0.2-x86_64-ruby1.9.2-macosx-10.6/support/lib/phusion_passenger/abstract_server_collection.rb:79:in`synchronize'
from /Users/jeff/.passenger/standalone/3.0.2-x86_64-ruby1.9.2-macosx-10.6/support/lib/phusion_passenger/spawn_manager.rb:244:in `spawn_rack_application'
from /Users/jeff/.passenger/standalone/3.0.2-x86_64-ruby1.9.2-macosx-10.6/support/lib/phusion_passenger/spawn_manager.rb:137:in`spawn_application'
from /Users/jeff/.passenger/standalone/3.0.2-x86_64-ruby1.9.2-macosx-10.6/support/lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
from /Users/jeff/.passenger/standalone/3.0.2-x86_64-ruby1.9.2-macosx-10.6/support/lib/phusion_passenger/abstract_server.rb:357:in`server_main_loop'
from /Users/jeff/.passenger/standalone/3.0.2-x86_64-ruby1.9.2-macosx-10.6/support/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
from /Users/jeff/.passenger/standalone/3.0.2-x86_64-ruby1.9.2-macosx-10.6/support/helper-scripts/passenger-spawn-server:99:in`'

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the difference between WEBrick and Passenger standalone, then trace loading from config.ru through config/application.rb into cover_me.rb and cover_me/config.rb. Inspect the set_defaults path around the reported Configatron error. Done means the application starts under Passenger standalone without this exception while cover_me remains loaded.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.