Hello Everyone,
We are using v5.3.0 version of PGO. I used helm way of installation.
Our setup was functioning properly for a while, but we recently received reports from clients regarding connectivity issues with Postgres. To investigate, I accessed the pgdb-instance pod and attempted to use the psql command, but received the same error message:
bash-4.4$ psql
psql: error: could not connect to server: Connection refused
Is the server running locally and accepting
connections on Unix domain socket "/tmp/postgres/.s.PGSQL.5432"?
Also I am unable to access directories under /pgdata/
bash-4.4$ cd /pgdata
bash-4.4$ du -sh
du: cannot read directory './pg13': Permission denied
du: cannot read directory './pg13_wal': Permission denied
Also confirmed that enough space available for pgdata directory.
bash-4.4$ df -h|grep pgdata
10.213.9.248:/srv/nfs/kubedata/sfe-eva-2-pgdb-instance1-rk7b-pgdata-pvc-66063a3d-67e8-4f98-89ae-95233881915b 67G 3.8G 60G 6% /pgdata
bash-4.4$
and lastly found that postgres process are not running too.
bash-4.4$ ps -efm |grep postgr
postgres 42 0 0 Apr27 ? 00:04:27 /usr/bin/python3.6 /usr/local/bin/patroni /etc/patroni
postgres - - 0 Apr27 - 00:02:45 -
postgres - - 0 Apr27 - 00:00:03 -
postgres - - 0 Apr27 - 00:00:02 -
postgres - - 0 Apr27 - 00:00:00 -
postgres - - 0 Apr27 - 00:00:23 -
postgres - - 0 Apr27 - 00:00:15 -
postgres 50 0 0 Apr27 ? 00:00:03 replication-cert-copy -ceu monitor
postgres - - 0 Apr27 - 00:00:03 -
postgres 60 0 0 Apr27 ? 00:00:08 pgbackrest server
postgres - - 0 Apr27 - 00:00:08 -
postgres 69 0 0 Apr27 ? 00:00:05 pgbackrest-config -ceu monitor
postgres - - 0 Apr27 - 00:00:05 -
postgres 83582 0 0 03:36 pts/0 00:00:00 bash
postgres - - 0 03:36 - 00:00:00 -
postgres 84041 83582 0 03:43 pts/0 00:00:00 ps -efm
postgres - - 0 03:43 - 00:00:00 -
postgres 84042 83582 0 03:43 pts/0 00:00:00 grep postgr
postgres - - 0 03:43 - 00:00:00 -
bash-4.4$
It appears that Postgres has crashed. Is there a way to verify what could have caused the crash?
Thanks & Regards,
Shahid