Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save captproton/406640 to your computer and use it in GitHub Desktop.

Select an option

Save captproton/406640 to your computer and use it in GitHub Desktop.
App failed to start
Your application had an error when talking to Postgres.
Please see the database documentation for common errors and resolutions.
Also, make sure you’ve migrated your database if there’s fresh migrations that you just pushed.
Original Error
/disk1/home/slugs/188329_879a1f1_9f80/mnt/.bundle/gems/gems/activerecord-2.3.5/lib/active_record/connection_adapters/postgresql_adapter.rb:968:in `initialize': FATAL: connection limit exceeded for non-superusers (PGError)
from /disk1/home/slugs/188329_879a1f1_9f80/mnt/.bundle/gems/gems/activerecord-2.3.5/lib/active_record/connection_adapters/postgresql_adapter.rb:968:in `connect'
from /disk1/home/slugs/188329_879a1f1_9f80/mnt/.bundle/gems/gems/activerecord-2.3.5/lib/active_record/connection_adapters/postgresql_adapter.rb:968:in `connect'
from /disk1/home/slugs/188329_879a1f1_9f80/mnt/.bundle/gems/gems/activerecord-2.3.5/lib/active_record/connection_adapters/postgresql_adapter.rb:217:in `initialize'
from /disk1/home/slugs/188329_879a1f1_9f80/mnt/.bundle/gems/gems/activerecord-2.3.5/lib/active_record/connection_adapters/postgresql_adapter.rb:37:in `new'
from /disk1/home/slugs/188329_879a1f1_9f80/mnt/.bundle/gems/gems/activerecord-2.3.5/lib/active_record/connection_adapters/postgresql_adapter.rb:37:in `postgresql_connection'
from /disk1/home/slugs/188329_879a1f1_9f80/mnt/.bundle/gems/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in `send'
from /disk1/home/slugs/188329_879a1f1_9f80/mnt/.bundle/gems/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in `new_connection'
from /disk1/home/slugs/188329_879a1f1_9f80/mnt/.bundle/gems/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:245:in `checkout_new_connection'
from /disk1/home/slugs/188329_879a1f1_9f80/mnt/.bundle/gems/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:188:in `checkout'
from /disk1/home/slugs/188329_879a1f1_9f80/mnt/.bundle/gems/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in `loop'
from /disk1/home/slugs/188329_879a1f1_9f80/mnt/.bundle/gems/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in `checkout'
from /usr/ruby1.8.7/lib/ruby/1.8/monitor.rb:242:in `synchronize'
from /disk1/home/slugs/188329_879a1f1_9f80/mnt/.bundle/gems/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:183:in `checkout'
from /disk1/home/slugs/188329_879a1f1_9f80/mnt/.bundle/gems/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:98:in `connection'
from /disk1/home/slugs/188329_879a1f1_9f80/mnt/.bundle/gems/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:326:in `retrieve_connection'
from /disk1/home/slugs/188329_879a1f1_9f80/mnt/.bundle/gems/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_specification.rb:123:in `retrieve_connection'
from /disk1/home/slugs/188329_879a1f1_9f80/mnt/.bundle/gems/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_specification.rb:115:in `connection'
from /disk1/home/slugs/188329_879a1f1_9f80/mnt/.bundle/gems/gems/activerecord-2.3.5/lib/active_record/base.rb:1265:in `table_exists?'
from /disk1/home/slugs/188329_879a1f1_9f80/mnt/vendor/plugins/authentication/app/models/user.rb:22
from /disk1/home/slugs/188329_879a1f1_9f80/mnt/.bundle/gems/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:158:in `require'
from /disk1/home/slugs/188329_879a1f1_9f80/mnt/.bundle/gems/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:158:in `require'
from /disk1/home/slugs/188329_879a1f1_9f80/mnt/.bundle/gems/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:265:in `require_or_load'
from /disk1/home/slugs/188329_879a1f1_9f80/mnt/.bundle/gems/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:425:in `load_missing_constant'
from /disk1/home/slugs/188329_879a1f1_9f80/mnt/.bundle/gems/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:80:in `const_missing'
from /disk1/home/slugs/188329_879a1f1_9f80/mnt/.bundle/gems/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:92:in `const_missing'
from /disk1/home/slugs/188329_879a1f1_9f80/mnt/.bundle/gems/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:437:in `load_missing_constant'
from /disk1/home/slugs/188329_879a1f1_9f80/mnt/.bundle/gems/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:80:in `const_missing'
from /disk1/home/slugs/188329_879a1f1_9f80/mnt/.bundle/gems/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:437:in `load_missing_constant'
from /disk1/home/slugs/188329_879a1f1_9f80/mnt/.bundle/gems/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:96:in `const_missing'
from /disk1/home/slugs/188329_879a1f1_9f80/mnt/vendor/plugins/authentication/rails/init.rb:7:in `evaluate_init_rb'
from /disk1/home/slugs/188329_879a1f1_9f80/mnt/vendor/plugins/refinery/lib/refinery/plugin.rb:5:in `register'
from /disk1/home/slugs/188329_879a1f1_9f80/mnt/vendor/plugins/authentication/rails/init.rb:1:in `evaluate_init_rb'
from /disk1/home/slugs/188329_879a1f1_9f80/mnt/.bundle/gems/gems/rails-2.3.5/lib/rails/plugin.rb:158:in `evaluate_init_rb'
from /disk1/home/slugs/188329_879a1f1_9f80/mnt/.bundle/gems/gems/activesupport-2.3.5/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
from /disk1/home/slugs/188329_879a1f1_9f80/mnt/.bundle/gems/gems/rails-2.3.5/lib/rails/plugin.rb:154:in `evaluate_init_rb'
from /disk1/home/slugs/188329_879a1f1_9f80/mnt/.bundle/gems/gems/rails-2.3.5/lib/rails/plugin.rb:48:in `load'
from /disk1/home/slugs/188329_879a1f1_9f80/mnt/.bundle/gems/gems/rails-2.3.5/lib/rails/plugin/loader.rb:38:in `load_plugins'
from /disk1/home/slugs/188329_879a1f1_9f80/mnt/.bundle/gems/gems/rails-2.3.5/lib/rails/plugin/loader.rb:37:in `each'
from /disk1/home/slugs/188329_879a1f1_9f80/mnt/.bundle/gems/gems/rails-2.3.5/lib/rails/plugin/loader.rb:37:in `load_plugins'
from /disk1/home/slugs/188329_879a1f1_9f80/mnt/.bundle/gems/gems/rails-2.3.5/lib/initializer.rb:369:in `load_plugins'
from /disk1/home/slugs/188329_879a1f1_9f80/mnt/.bundle/gems/gems/rails-2.3.5/lib/initializer.rb:165:in `process'
from /disk1/home/slugs/188329_879a1f1_9f80/mnt/.bundle/gems/gems/rails-2.3.5/lib/initializer.rb:113:in `send'
from /disk1/home/slugs/188329_879a1f1_9f80/mnt/.bundle/gems/gems/rails-2.3.5/lib/initializer.rb:113:in `run'
from /disk1/home/slugs/188329_879a1f1_9f80/mnt/vendor/plugins/refinery/lib/refinery/initializer.rb:55:in `run'
from /disk1/home/slugs/188329_879a1f1_9f80/mnt/config/application.rb:10
from /usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /disk1/home/slugs/188329_879a1f1_9f80/mnt/config/environment.rb:2
from /usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/thin-1.2.6/lib/rack/adapter/rails.rb:42:in `load_application'
from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/thin-1.2.6/lib/rack/adapter/rails.rb:23:in `initialize'
from /home/heroku_rack/heroku.ru:27:in `new'
from /home/heroku_rack/heroku.ru:27
from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/builder.rb:29:in `instance_eval'
from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/builder.rb:29:in `initialize'
from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/builder.rb:46:in `new'
from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/builder.rb:46:in `map'
from /home/heroku_rack/heroku.ru:16
from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/builder.rb:29:in `instance_eval'
from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/builder.rb:29:in `initialize'
from /home/heroku_rack/heroku.ru:9:in `new'
from /home/heroku_rack/heroku.ru:9
from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/builder.rb:29:in `instance_eval'
from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/builder.rb:29:in `initialize'
from /home/heroku_rack/heroku.ru:1:in `new'
from /home/heroku_rack/heroku.ru:1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment