public inbox for pgsql-general@postgresql.org
help / color / mirror / Atom feedFrom: Torsten Krah <krah.tm@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: untracked child process (PID XXXXX) exited with exit code 120
Date: Thu, 07 May 2026 22:15:23 +0200
Message-ID: <c2fff6388d6634531d025c5af7f88779138792b9.camel@gmail.com> (raw)
In-Reply-To: <CAFh8B=n57ZPGPAewHNmQ093DcY-+Nr_LQiY4W7-4RfXYoz5-XA@mail.gmail.com>
References: <2e556bbdbe6ccac93ecb6cfbb5a815059ff5aad2.camel@gmail.com>
<CAFh8B=n57ZPGPAewHNmQ093DcY-+Nr_LQiY4W7-4RfXYoz5-XA@mail.gmail.com>
Am Donnerstag, dem 07.05.2026 um 19:51 +0200 schrieb Alexander
Kukushkin:
> My guess would be that the postmaster in your container is running
> with
> PID=1.
> The unexpected process was probably started by docker entrypoint
> before it
> did exec postgres [...].
> As a result, this subprocess became a direct child of the postmaster
> and we
> got the problem.
>
> The most common solution is to avoid running postmaster with PID=1.
> There are two options available:
> 1. dumb-init
> 2. start container using "docker run --init [...]"
My /docker-entrypoint-initdb.d is empty and I did not customize the
default entrypoint or command to run (there was a ready to use data dir
/ volume, so it just skipped initialization on start), so I am not sure
what else should have been started, but I know, just guesswork here.
Between starting the pod initially:
16:52:28.317
and the time the untracked process did fail:
18:39:13.947
nearly 2 hours passed, ah too bad I will never know what PID 120 was.
Yes, the postgres image postgres:18-trixie does run the postgres
process with PID=1:
postgres 1 0.0 0.2 4443124 139360 ? Ss May06 0:27 postgres
Using kubernetes as runtime, there is no "--init" option and e.g. tini
is not in the image - if is is a problem running postgres with pid=1,
could e.g. tini be added to the image (if so, do you know where to
address this?) and used as default entrypoint (I know I can build one
myself and extend that image to provide tini, but I would prefer just
to use the upstream image as-is)?
kind regards
Torsten
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-general@postgresql.org
Cc: krah.tm@gmail.com, pgsql-general@lists.postgresql.org
Subject: Re: untracked child process (PID XXXXX) exited with exit code 120
In-Reply-To: <c2fff6388d6634531d025c5af7f88779138792b9.camel@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox