ruby on rails - Heroku "connection limit exceeded for non-superusers" -
i using free heroku plan shared database. cedar stack, rails 3.1.0.rc4.
when launching application error, breaks process , disappears after random push:
2011-07-21t08:36:17+00:00 heroku[web.1]: starting process command:
bundle exec rails server -p 11382 thin2011-07-21t08:36:23+00:00 app[web.1]: => booting thin 2011-07-21t08:36:23+00:00 app[web.1]: => rails 3.1.0.rc4 application starting in production on http://0.0.0.0:11382 2011-07-21t08:36:23+00:00 app[web.1]: => call -d detach 2011-07-21t08:36:23+00:00 app[web.1]: => ctrl-c shutdown server 2011-07-21t08:36:23+00:00 app[web.1]: exiting 2011-07-21t08:36:23+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.1.0.rc4/lib/active_record/connection_adapters/postgresql_adapter.rb:987:ininitialize': fatal: connection limit exceeded non-superusers (pgerror) 2011-07-21t08:36:23+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.1.0.rc4/lib/active_record/connection_adapters/postgresql_adapter.rb:987:innew' 2011-07-21t08:36:23+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.1.0.rc4/lib/active_record/connection_adapters/postgresql_adapter.rb:987:inconnect' 2011-07-21t08:36:23+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.1.0.rc4/lib/active_record/connection_adapters/postgresql_adapter.rb:260:ininitialize' 2011-07-21t08:36:23+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.1.0.rc4/lib/active_record/connection_adapters/postgresql_adapter.rb:27:innew' 2011-07-21t08:36:23+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.1.0.rc4/lib/active_record/connection_adapters/postgresql_adapter.rb:27:inpostgresql_connection' 2011-07-21t08:36:23+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.1.0.rc4/lib/active_record/connection_adapters/abstract/connection_pool.rb:292:innew_connection' 2011-07-21t08:36:23+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.1.0.rc4/lib/active_record/connection_adapters/abstract/connection_pool.rb:302:incheckout_new_connection' 2011-07-21t08:36:23+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.1.0.rc4/lib/active_record/connection_adapters/abstract/connection_pool.rb:254:inblock (2 levels) in checkout' 2011-07-21t08:36:23+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.1.0.rc4/lib/active_record/connection_adapters/abstract/connection_pool.rb:250:inloop' 2011-07-21t08:36:23+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.1.0.rc4/lib/active_record/connection_adapters/abstract/connection_pool.rb:250:inblock in checkout' 2011-07-21t08:36:23+00:00 app[web.1]: /usr/local/lib/ruby/1.9.1/monitor.rb:201:inmon_synchronize' 2011-07-21t08:36:23+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.1.0.rc4/lib/active_record/connection_adapters/abstract/connection_pool.rb:249:incheckout' 2011-07-21t08:36:23+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.1.0.rc4/lib/active_record/connection_adapters/abstract/connection_pool.rb:151:incon2011-07-21t08:36:23+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.1.0.rc4/lib/active_record/connection_adapters/abstract/connection_pool.rb:388:in
retrieve_connection' 2011-07-21t08:36:23+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.1.0.rc4/lib/active_record/connection_adapters/abstract/connection_specification.rb:107:inretrieve_connection' 2011-07-21t08:36:23+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.1.0.rc4/lib/active_record/connection_adapters/abstract/connection_specification.rb:89:inconnection' 2011-07-21t08:36:23+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.1.0.rc4/lib/active_record/base.rb:704:intable_exists?' 2011-07-21t08:36:23+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.1.0.rc4/lib/active_record/base.rb:789:inattribute_names' 2011-07-21t08:36:23+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0.rc4/lib/action_controller/metal/params_wrapper.rb:169:in_set_wrapper_defaults' 2011-07-21t08:36:23+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0.rc4/lib/action_controller/metal/params_wrapper.rb:129:ininherited' 2011-07-21t08:36:23+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0.rc4/lib/abstract_controller/railties/routes_helpers.rb:7:inblock (2 levels) in with' 2011-07-21t08:36:23+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0.rc4/lib/action_controller/railties/paths.rb:7:inblock (2 levels) in with' 2011-07-21t08:36:23+00:00 app[web.1]: /app/app/controllers/customers_controller.rb:1:in' 2011-07-21t08:36:23+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.0.rc4/lib/active_support/dependencies.rb:237:inrequire' 2011-07-21t08:36:23+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.0.rc4/lib/active_support/dependencies.rb:237:inblock in require' 2011-07-21t08:36:23+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.0.rc4/lib/active_support/dependencies.rb:225:inload_dependency' 2011-07-21t08:36:23+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.0.rc4/lib/active_support/dependencies.rb:237:inrequire' 2011-07-21t08:36:23+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.0.rc4/lib/active_support/dependencies.rb:344:inrequire_or_load' 2011-07-21t08:36:23+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.0.rc4/lib/active_support/dependencies.rb:298:independ_on' 2011-07-21t08:36:23+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.0.rc4/lib/active_support/dependencies.rb:214:inrequire_dependency' 2011-07-21t08:36:23+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.0.rc4/lib/rails/engine.rb:399:inblock (2 levels) in eager_load!' 2011-07-21t08:36:23+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.0.rc4/lib/rails/engine.rb:398:ineach' 2011-07-21t08:36:23+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.0.rc4/lib/rails/engine.rb:398:inblock in eager_load!' 2011-07-21t08:36:23+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.0.rc4/lib/rails/engine.rb:396:ineach' 2011-07-21t08:36:23+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.0.rc4/lib/rails/engine.rb:396:ineager_load!' 2011-07-21t08:36:23+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.0.rc4/lib/rails/application.rb:83:ineager_load!' 2011-07-21t08:36:23+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.0.rc4/lib/rails/application/finisher.rb:51:inblock in ' 2011-07-21t08:36:23+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.0.rc4/lib/rails/initializable.rb:25:ininstance_exec' 2011-07-21t08:36:23+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.0.rc4/lib/rails/initializable.rb:25:inrun' 2011-07-21t08:36:23+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.0.rc4/lib/rails/initializable.rb:50:inblock in run_initializers' 2011-07-21t08:36:23+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.0.rc4/lib/rails/initializable.rb:49:ineach' 2011-07-21t08:36:23+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.0.rc4/lib/rails/initializable.rb:49:inrun_initializers' 2011-07-21t08:36:23+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.0.rc4/lib/rails/application.rb:96:ininitialize!' 2011-07-21t08:36:23+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.0.rc4/lib/rails/railtie/configurable.rb:30:inmethod_missing' 2011-07-21t08:36:23+00:00 app[web.1]: /app/config/environment.rb:5:in' 2011-07-21t08:36:23+00:00 app[web.1]: /app/config.ru:4:in `block in ' 2011-07-21t08:36:23+00:00 heroku[web.1]: process exited 2011-07-21t08:36:24+00:00 heroku[web.1]: state changed starting crashed 2011-07-21t08:36:24+00:00 heroku[router]: error h10 (app crashed) -> dyno= queue= wait= service= status=503 bytes= 2011-07-21t08:36:25+00:00 heroku[router]: error h10
i don't see piece of own code in message.
that's postgresql error messsage when have more connections specified in max_connections setting in postgresql.conf. unless can change yourself, you'll have contact heroku support.
Comments
Post a Comment