LennonR
LennonR

Reputation: 1463

Rails 3 Postgres working on Heroku but no longer locally PGError could not connect to server

I'm using postgres 8.4 and Rails 3.0.9

A couple of days ago I was using this combo fine locally and on Heroku. Today I load my Rails server locally and I get two new messages, a Deprecation Warning and a PGError.

The warning was that this:

config.action_view.debug_rjs

will no longer be supported in Rails 3.1. I checked and I'm still using 3.0.9 just to be sure.

That was easily taken care of. However the PGError is leaving me scratching my head.

could not connect to server: Connection refused (0x0000274D/10061)
Is the server running on host "???" and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused (0x0000274D/10061)
Is the server running on host "???" and accepting
TCP/IP connections on port 5432?

I tried a bundle install and a bundle update. The "is the server running on host '???'" seems to be strange but what does that mean?

Everything is working fine on Heroku. I checked all my init and configure files and they all look the same as they were a few days ago. Have any updates happened that might have caused this?

Upvotes: 0

Views: 426

Answers (1)

Adrian Serafin
Adrian Serafin

Reputation: 7715

Have you checked if postgres database is running on specified host? Is database you're trying to connect works on localhost or on external sever?

Upvotes: 1

Related Questions