container restarted -> postgresql dead but pid file exists

From: Mariel Cherkassky <mariel(dot)cherkassky(at)gmail(dot)com>
To: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: container restarted -> postgresql dead but pid file exists
Date: 2020-01-12 08:29:57
Message-ID: CA+t6e1kX0jBeG2mdBa2ocLnK+xFLM+vE+pJ-RHVYi6V6_A-JBQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hey,
I have a container that runs centos image with a few changes and postgresql
installed on it.
Whenever I start my container or restart it, the postgresql(12) starts in
the following state :
postgresql dead but pid file exists

For example :

[root(at)my_container_id /]# service postgresql status
postgresql (pid 128) is running...
[root@ my_container_id /]# exit
exit
[root(at)docker-node]# docker restart my_container_id
my_container_id
[root@ docker-node ]#
[root@ docker-node ]#
[root@ docker-node ]# docker exec -it my_container_id /bin/bash
[root(at)my_container_id /]# service postgresql status
postgresql dead but pid file exists

It happens since I upgraded my postgresql to version 12.
Does anyone else suffer from the same issue ?

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message robert 2020-01-12 11:41:05 Re: container restarted -> postgresql dead but pid file exists
Previous Message gilberto.castillo 2020-01-09 17:22:25 Re: [MASSMAIL]Re: partitioned table