Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1vHDkQ-000G5z-Ah for pgsql-pkg-debian@arkaria.postgresql.org; Fri, 07 Nov 2025 04:06:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1vHDkP-00BwpZ-1s for pgsql-pkg-debian@arkaria.postgresql.org; Fri, 07 Nov 2025 04:06:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1vHDkO-00BwpR-Ku for pgsql-pkg-debian@lists.postgresql.org; Fri, 07 Nov 2025 04:06:48 +0000 Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vHDkL-006QUT-0n for pgsql-pkg-debian@lists.postgresql.org; Fri, 07 Nov 2025 04:06:47 +0000 Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-b7272012d30so45375066b.2 for ; Thu, 06 Nov 2025 20:06:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pavely.net; s=google; t=1762488403; x=1763093203; darn=lists.postgresql.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=GUI3il2AAvqwUKgBlrRGyuqOwz1M7FmoMBExofejFbE=; b=Aw153A/KuRefppCHxGRtx3N7h3C+UthCw3wNygPBKBqTqtj+acU3lCR44bXa4mZKhr kRztKE1zRsxgDzrJXjhujRZFYheApz9c0oYyDqiBKr0v7njPLabW2hVed3+LpFvmh7b1 g3WCGBYBGCs4zhjUFe3hgrFN4U1y7MrD7jbyE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762488403; x=1763093203; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=GUI3il2AAvqwUKgBlrRGyuqOwz1M7FmoMBExofejFbE=; b=uRLieUeWVQJw9WWn7bMemXaSIeAU3iXYFQJo9eKOkw6Io2SBLSODxvXnJZeBmaIAWP lASHyUpfnF8P2ythoN31FbhroGIVBtUfq4QVN7XrUEn/zcYRb1DVJ1ybBwL65W9XnNEG AvegC9DbuvK+sokJOUbwlTt5/5KwxSvFKaO3j4FlKf/Nq3btvoJRt77yTrn8OlMDHDnn gwv/tVKNxgqo6rGPtO7TsHHV5YnGcMD8U7fBFwvPoICDmRfpVwxumezCEGr225WAEvZW fhu6lb/c5ojkb1mw0uxf5S4aQt4NSO/yWHA5t1sDohO01X6Qyb/EoBF4DjI4v3VenY9Y 640A== X-Gm-Message-State: AOJu0Yzcc0shyFfogOfgTwBtXBS77Fz1avtwByGgMBoGrDOU+lrAYZPV sM5zeNlQNOIDEqw0vA7/e3rqMYhnNfUtFBUnpdCXPqwlWI6kTbX+TOT5GH34F35lAvKS76dSCoZ 2qh8tIUxEjIvfvHkUOMT7hg1BPJGMXF0E1Kgt6AzdjP60yNDCz9xe+fT/ X-Gm-Gg: ASbGncs7r2GYnFR1XQDnsiXmKJMXLmm75/1beu1Ius44OeAVDNq5TJfRkB6qLjhq78l Sgzzgfr3of6oE32fM/F3JmVCf0uQzxeEjkRwLG+jPIWg7SOYqFUxVKw+0PcL3ohPH3Bwslxd4rT AG59KpgTOsiMqo92AI+X3kj1Vfrvp4oNFhtGxGMzInAWdZbMhI34ue0R9fK4lbYgwom426d0LzW LCXdrtzh4N0j3TbbRFAqt1+qFExsOoW1cmpMLUZNiTCqJS/LG/9s7LtcrO/3AG9XrnnNP0W X-Google-Smtp-Source: AGHT+IE6JnZRiHcW/tBD2gTZVu+jUA7iKH8pG6Y4nSkMfQB69O5Djodo27vw5dkCg2wlKnbtSQ5OBMEEKH2RzX+F094= X-Received: by 2002:a17:907:97c6:b0:b6d:3f38:2969 with SMTP id a640c23a62f3a-b72c0996bedmr174926366b.18.1762488402571; Thu, 06 Nov 2025 20:06:42 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Aaron Pavely Date: Thu, 6 Nov 2025 22:06:31 -0600 X-Gm-Features: AWmQ_bkw5Qgp2dFEYIXO3TlqGUO_rCwrvG1tAqn62tGQBlbtUHozIqP33F4XaZE Message-ID: Subject: Re: Patroni 4.1.0 causes issues because of systemd notify To: pgsql-pkg-debian@lists.postgresql.org Content-Type: multipart/alternative; boundary="0000000000002805200642f94fa5" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000002805200642f94fa5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Nov 2, 2025 at 2:27=E2=80=AFPM 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=E2=80=99t 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=3Dsimple` in the systemd unit file works pretty = fine. > > I=E2=80=99m 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 --0000000000002805200642f94fa5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sun, Nov 2, 2025 at 2= :27=E2=80=AFPM Hauke Bruno Wollentin <me@hauke.ninja> wrote:
<= div>
Hi all,
while spinning up new Patroni cluster with version 4.1.0 (whic= h has been added to the Debian repo 2 days ago), my clusters won=E2=80=99t = bootstrap properly anymore.

At first, logs looks c= lear but anyways, all systemd operations like start/stop/restart will run i= nto a timeout, causing the service to stop which then will break the cluste= r at all.

It seems like the new systemd notify fea= ture is causing this, since using Patroni 4.0.7 with `Type=3Dsimple` in the= systemd unit file works pretty fine.

I=E2=80=99m = on Debian 12 and psql 17.
=C2=A0
Just a quick question: Has the python3-systemd package been installed as= well?

There are multiple issues from the upstream Patroni Gi= tHub repository reporting similar problems since the release of 4.1.0,=C2= =A0and the corresponding solution is installing that python3-systemd packag= e. It is not (yet) listed as a patroni package dependency, so it may have b= een missed given the new functionality in 4.1.0.

Ref:
https://g= ithub.com/patroni/patroni/issues/3480
https://github.com/patroni/p= atroni/issues/3482

-- Aaron Pavely
= --0000000000002805200642f94fa5--