-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cover_me breaks passenger standalone #31
Comments
Any update on this? I'm getting the same error with passenger 3.0.7 |
cover_me (1.2.0) gives me this error when starting an app with passenger 3.0.9: Error message: 0 /home/jkl/.rvm/gems/ruby-1.9.2-p180/gems/configatron-2.8.2/lib/configatron/store.rb 147 in |
A two year old issue with no input from the author. This isn't a good sign... especially considering Mr. Bates wrote both configatron and cover_me... and the wide-spread deployment of passenger. There is a monkey patch, also 2 years old, mentioned in an unrelated gem... but same issue: sporkrb/spork#67 |
monkey patch fixed it for me, but I had to put it at the top of config/application.rb. adding to an initializer didn't work (error occurs before initializers are run). require 'configatron' |
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
<top (required)>'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
<top (required)>'from /Users/jeff/homeschool/homeschool/config/environment.rb:2:in
require' from /Users/jeff/homeschool/homeschool/config/environment.rb:2:in
<top (required)>'from config.ru:3:in
require' from config.ru:3:in
block infrom /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
initializefrom 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
'The text was updated successfully, but these errors were encountered: