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 thin 2011-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:in initialize': 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:in new' 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:in connect' 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:in initialize' 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:in new' 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:in postgresql_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:in 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:302:in checkout_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:in block (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:in loop' 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:in block 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: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:151:in con

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: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: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:89:in 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/base.rb:704:in table_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:in attribute_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:in inherited' 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:in block (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:in block (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: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:237:in block 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:in load_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: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:344:in require_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:in depend_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:in require_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:in block (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:in each' 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:in block 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:in each' 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: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/application.rb:83: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/application/finisher.rb:51:in block 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:in instance_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:in run' 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:in block 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:in each' 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: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/application.rb:96:in initialize!' 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:in method_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

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -