Skip to content

Instantly share code, notes, and snippets.

@dlupu
Created September 28, 2017 08:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dlupu/c610d164a369dc1452dcc6fb4f26544d to your computer and use it in GitHub Desktop.
Save dlupu/c610d164a369dc1452dcc6fb4f26544d to your computer and use it in GitHub Desktop.
Cloud 9 debug and cheatsheet

Errors

PG::ConnectionBad: could not connect to server: Connection refused

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"?

Explanation

Postgres server is shut down

Solution

Type this in terminal: sudo service postgresql start

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment