Open jwhitmire opened 13 years ago
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: at_exit (Configatron::ProtectedParameter)
0 /home/jkl/.rvm/gems/ruby-1.9.2-p180/gems/configatron-2.8.2/lib/configatron/store.rb 147 in method_missing' 1 /home/jkl/.rvm/gems/ruby-1.9.2-p180/gems/configatron-2.8.2/lib/configatron/store.rb 140 in
set_default'
2 /home/jkl/.rvm/gems/ruby-1.9.2-p180/gems/cover_me-1.2.0/lib/cover_me/config.rb 39 in block in set_defaults' 3 /home/jkl/.rvm/gems/ruby-1.9.2-p180/gems/cover_me-1.2.0/lib/cover_me/config.rb 16 in
config'
4 /home/jkl/.rvm/gems/ruby-1.9.2-p180/gems/cover_me-1.2.0/lib/cover_me/config.rb 21 in set_defaults' 5 /home/jkl/.rvm/gems/ruby-1.9.2-p180/gems/cover_me-1.2.0/lib/cover_me.rb 34 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: https://github.com/sporkrb/spork/issues/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' require File.join(FILE, '../../lib/monkeypatches/configatron_store')
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'
from /Users/jeff/.rvm/gems/ruby-1.9.2-p136@homeschool/gems/rack-1.2.1/lib/rack/builder.rb:46: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 '
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:inblock 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:inset_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:inrequire' 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:ineach' 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:ineach' 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:inrequire' from /Users/jeff/homeschool/homeschool/config/application.rb:7:in
<top (required)>' from /Users/jeff/homeschool/homeschool/config/environment.rb:2:inrequire' from /Users/jeff/homeschool/homeschool/config/environment.rb:2:in
<top (required)>' from config.ru:3:inrequire' from config.ru:3:in
block ininstance_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:innew' from config.ru:1: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:inblock 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:ininitialize_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:instart' 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:inblock (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:inblock 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:insynchronize' 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:inspawn_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:inhandle_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:instart_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