Quantcast
Channel: DHIS2 Community - Latest topics
Viewing all articles
Browse latest Browse all 1855

Psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory

$
0
0

Hi,

I have installed DHIS2 lxc containers on my laptop, and Im having some problems to access postgres PSQL. Thaings were working well, but suddenly I starting getting the following error: psql: error: connection to server on socket “/var/run/postgresql/.s.PGSQL.5432” failed: No such file or directory

  1. The first time it worked
    root@postgres:~# sudo -u postgres psql
    psql (16.8 (Ubuntu 16.8-1.pgdg22.04+1))
    Type “help” for help.

postgres=# \du
List of roles
Role name | Attributes
-----------±-----------------------------------------------------------
dhis |
postgres | Superuser, Create role, Create DB, Replication, Bypass RLS
root | Superuser

  1. Now Iam getting the error:

  2. This is the postgresql configuration file

Looking forward to a solution

Thanks

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 1855

Trending Articles