Re[2]: Patroni 4.1.0 causes issues because of systemd notify

From: "Hauke Bruno Wollentin" <me(at)hauke(dot)ninja>
To: pgsql-pkg-debian(at)lists(dot)postgresql(dot)org
Subject: Re[2]: Patroni 4.1.0 causes issues because of systemd notify
Date: 2025-11-07 06:27:21
Message-ID: emb8322483-c237-4c49-ba54-c2767ade2054@fd3c26d9.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-pkg-debian


Hi Aaron,

I can confirm that installing python3-systemd will resolve this issue,
the package doesn't come as a dependency yet.

have a nice one,
Hauke

------ Original Message ------
From "Aaron Pavely" <aaron(at)pavely(dot)net>
To pgsql-pkg-debian(at)lists(dot)postgresql(dot)org
Date 11/7/2025 5:06:31 AM
Subject Re: Patroni 4.1.0 causes issues because of systemd notify

>On Sun, Nov 2, 2025 at 2:27 PM Hauke Bruno Wollentin <me(at)hauke(dot)ninja>
>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’m on Debian 12 and psql 17.
>
>Just a quick question: Has the python3-systemd package been installed
>as well?
>
>There are multiple issues from the upstream Patroni GitHub repository
>reporting similar problems since the release of 4.1.0, and the
>corresponding solution is installing that python3-systemd package. It
>is not (yet) listed as a patroni package dependency, so it may have
>been missed given the new functionality in 4.1.0.
>
>Ref:
>https://github.com/patroni/patroni/issues/3480
>https://github.com/patroni/patroni/issues/3482
>
>-- Aaron Pavely

Attachment Content-Type Size
me@hauke.ninja.asc application/pgp-keys 1.7 KB

In response to

Browse pgsql-pkg-debian by date

  From Date Subject
Next Message apt.postgresql.org Repository Update 2025-11-10 21:50:00 orafce updated to version 4.16.2-1.pgdg+1
Previous Message Aaron Pavely 2025-11-07 04:06:31 Re: Patroni 4.1.0 causes issues because of systemd notify