public inbox for [email protected]
help / color / mirror / Atom feedFrom: Richard Huxton <[email protected]>
To: [email protected]
Subject: Re: Patroni 4.1.0 causes issues because of systemd notify
Date: Thu, 06 Nov 2025 20:34:06 +0000
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
On 2025-10-22 17:16, Hauke Bruno Wollentin wrote:
> Hi all,
>
> while spinning up new Patroni cluster with version 4.1.0 (which has
> been added to the Debian repo 2 days ago), my clusters won’t bootstrap
> properly anymore.
>
> At first, logs looks clear but anyways, all systemd operations like
> start/stop/restart will run into a timeout, causing the service to stop
> which then will break the cluster at all.
>
> It seems like the new systemd notify feature is causing this, since
> using Patroni 4.0.7 with `Type=simple` in the systemd unit file works
> pretty fine.
I think you may well be right - it seems that patroni is sending the
notify from a forked child process and that isn't what systemd is
expecting
> Oct 22 17:43:09 hetzner-lab01 systemd[1]: patroni.service: Got
> notification message from PID 13083, but reception only permitted for
> main PID 13059
> Any recommendations how to fix/workaround this?
https://www.freedesktop.org/software/systemd/man/latest/systemd.service.html#NotifyAccess=
I don't have a test patroni installation handy right now, but I think if
you set
NotifyAccess=all
in the service config (which you should be able to do by creating a file
with just that line called `/etc/systemd/system/patroni/override.conf`)
It defaults to "main" IIRC which is the most restricted, "exec" might
work, but "all" (the least restricted) seems the most likely to work
first time.
Hopefully that will do the trick. If so, maybe try "exec" then and let
the list know which works and the package can be updated.
--
Richard Huxton
view thread (4+ messages) latest in thread
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: [email protected]
Cc: [email protected], [email protected]
Subject: Re: Patroni 4.1.0 causes issues because of systemd notify
In-Reply-To: <[email protected]>
* 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