rubyforgood / habitat_humanity

MIT License
6 stars 13 forks source link

PG::ConnectionBad: could not connect to server: Connection refused Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"? #90

Closed leesharma closed 8 years ago

leesharma commented 8 years ago

View details in Rollbar: https://rollbar.com/habitat-nola-signin/habitat-nola-signin/items/8/


PG::ConnectionBad: could not connect to server: Connection refused
    Is the server running locally and accepting
    connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

  File "/usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-4.2.6/lib/active_record/connection_adapters/postgresql_adapter.rb", line 651, in initialize
  File "/usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-4.2.6/lib/active_record/connection_adapters/postgresql_adapter.rb", line 651, in new
  File "/usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-4.2.6/lib/active_record/connection_adapters/postgresql_adapter.rb", line 651, in connect
  File "/usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-4.2.6/lib/active_record/connection_adapters/postgresql_adapter.rb", line 242, in initialize
  File "/usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-4.2.6/lib/active_record/connection_adapters/postgresql_adapter.rb", line 44, in new
  File "/usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-4.2.6/lib/active_record/connection_adapters/postgresql_adapter.rb", line 44, in postgresql_connection
  File "/usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-4.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb", line 438, in new_connection
  File "/usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-4.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb", line 448, in checkout_new_connection
  File "/usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-4.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb", line 422, in acquire_connection
  File "/usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-4.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb", line 349, in block in checkout
  File "/usr/local/rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/monitor.rb", line 214, in mon_synchronize
  File "/usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-4.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb", line 348, in checkout
  File "/usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-4.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb", line 263, in block in connection
  File "/usr/local/rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/monitor.rb", line 214, in mon_synchronize
  File "/usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-4.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb", line 262, in connection
  File "/usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-4.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb", line 571, in retrieve_connection
  File "/usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-4.2.6/lib/active_record/connection_handling.rb", line 113, in retrieve_connection
  File "/usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-4.2.6/lib/active_record/connection_handling.rb", line 87, in connection
  File "/usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-4.2.6/lib/active_record/migration.rb", line 383, in connection
  File "/usr/local/rvm/gems/ruby-2.3.1/gems/activerecord-4.2.6/lib/active_record/migration.rb", line 370, in call
  File "/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/callbacks.rb", line 29, in block in call
  File "/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.6/lib/active_support/callbacks.rb", line 88, in __run_callbacks__
  File "/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.6/lib/active_support/callbacks.rb", line 778, in _run_call_callbacks
  File "/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.6/lib/active_support/callbacks.rb", line 81, in run_callbacks
  File "/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/callbacks.rb", line 27, in call
  File "/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/reloader.rb", line 73, in call
  File "/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/remote_ip.rb", line 78, in call
  File "/usr/local/rvm/gems/ruby-2.3.1/gems/rollbar-2.12.0/lib/rollbar/middleware/rails/rollbar.rb", line 24, in block in call
  File "/usr/local/rvm/gems/ruby-2.3.1/gems/rollbar-2.12.0/lib/rollbar.rb", line 735, in scoped
  File "/usr/local/rvm/gems/ruby-2.3.1/gems/rollbar-2.12.0/lib/rollbar/middleware/rails/rollbar.rb", line 22, in call
  File "/usr/local/rvm/gems/ruby-2.3.1/gems/better_errors-2.1.1/lib/better_errors/middleware.rb", line 59, in call
  File "/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/debug_exceptions.rb", line 17, in call
  File "/usr/local/rvm/gems/ruby-2.3.1/gems/rollbar-2.12.0/lib/rollbar/middleware/rails/show_exceptions.rb", line 22, in call_with_rollbar
  File "/usr/local/rvm/gems/ruby-2.3.1/gems/web-console-2.3.0/lib/web_console/middleware.rb", line 20, in block in call
  File "/usr/local/rvm/gems/ruby-2.3.1/gems/web-console-2.3.0/lib/web_console/middleware.rb", line 18, in catch
  File "/usr/local/rvm/gems/ruby-2.3.1/gems/web-console-2.3.0/lib/web_console/middleware.rb", line 18, in call
  File "/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/show_exceptions.rb", line 30, in call
  File "/usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.6/lib/rails/rack/logger.rb", line 38, in call_app
  File "/usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.6/lib/rails/rack/logger.rb", line 20, in block in call
  File "/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.6/lib/active_support/tagged_logging.rb", line 68, in block in tagged
  File "/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.6/lib/active_support/tagged_logging.rb", line 26, in tagged
  File "/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.6/lib/active_support/tagged_logging.rb", line 68, in tagged
  File "/usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.6/lib/rails/rack/logger.rb", line 20, in call
  File "/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/request_id.rb", line 21, in call
  File "/usr/local/rvm/gems/ruby-2.3.1/gems/rack-1.6.4/lib/rack/methodoverride.rb", line 22, in call
  File "/usr/local/rvm/gems/ruby-2.3.1/gems/rack-1.6.4/lib/rack/runtime.rb", line 18, in call
  File "/usr/local/rvm/gems/ruby-2.3.1/gems/activesupport-4.2.6/lib/active_support/cache/strategy/local_cache_middleware.rb", line 28, in call
  File "/usr/local/rvm/gems/ruby-2.3.1/gems/rack-1.6.4/lib/rack/lock.rb", line 17, in call
  File "/usr/local/rvm/gems/ruby-2.3.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/static.rb", line 120, in call
  File "/usr/local/rvm/gems/ruby-2.3.1/gems/rack-1.6.4/lib/rack/sendfile.rb", line 113, in call
  File "/usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.6/lib/rails/engine.rb", line 518, in call
  File "/usr/local/rvm/gems/ruby-2.3.1/gems/railties-4.2.6/lib/rails/application.rb", line 165, in call
  File "/usr/