You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
psycopg2.OperationalError: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
$> /etc/init.d/postgresql status prints nothing at all
/etc/postgresql does not exist
Reason for this error:
An error happend during installation of the postgresql package that prevented creation of the cluster configuration.
This can happen when installation is done in an ssh session from a computer using a locale that is not installed on the host.
How to solve:
Run the follwing commands (assuming postgresql version is 9.1):