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 1vH6gO-00DyZP-6X for pgsql-pkg-debian@arkaria.postgresql.org; Thu, 06 Nov 2025 20:34:12 +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 1vH6gM-00ACUe-Np for pgsql-pkg-debian@arkaria.postgresql.org; Thu, 06 Nov 2025 20:34:10 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1vH6gM-00ACTr-HV for pgsql-pkg-debian@lists.postgresql.org; Thu, 06 Nov 2025 20:34:10 +0000 Received: from mail.huxton.org.uk ([178.79.128.121]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1vH6gK-005mR6-0v for pgsql-pkg-debian@lists.postgresql.org; Thu, 06 Nov 2025 20:34:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=huxton.org.uk; s=default; t=1762461246; bh=gadZ1gV+KJtw9lF743RA0+ILtIylf/C7Ki50/0aDuRk=; h=Date:From:To:Subject:In-Reply-To:References:From; b=TR2O7nrq53no7FqFpcWzGa5NjfMvxLWXJx0Fv8yNEWzvsBE5AR9g0F0Linwv7x28B JN7Y1XuRrkl4ridvlD8b7atF/TdTJznD3BjiLQFw9iomraaYeCjvtv3F3rqGPTFQPT 3fINwwwJeRgl/c/7fYbnAeEPkFQRbom8rKhhNri8BMgr8gyBhZv/T1oU/pE7bmyfrW OB+TYCQd5DAK2rZNUZxFHRGWB6Ajj1O8e5hht38jOJurAvdjQtRrwWPea6Nh3dc5ks hOn/vyup0glNbscl9chZhq5aAluqa8IFg8M7wTVJxUTtBHU3UwNjmaYLrmh6A3cnpP Dw5tTSJHj/1/A== Received: from mail.huxton.org.uk (localhost [IPv6:::1]) by mail.huxton.org.uk (Postfix) with ESMTPA id 2DB4050ADF for ; Thu, 06 Nov 2025 20:34:06 +0000 (UTC) MIME-Version: 1.0 Date: Thu, 06 Nov 2025 20:34:06 +0000 From: Richard Huxton To: pgsql-pkg-debian@lists.postgresql.org Subject: Re: Patroni 4.1.0 causes issues because of systemd notify In-Reply-To: References: Message-ID: X-Sender: richard@huxton.org.uk Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2025-10-22 17:16, Hauke Bruno Wollentin wrote: > Hi all, >=20 > while spinning up new Patroni cluster with version 4.1.0 (which has=20 > been added to the Debian repo 2 days ago), my clusters won=E2=80=99t bo= otstrap=20 > properly anymore. >=20 > At first, logs looks clear but anyways, all systemd operations like=20 > start/stop/restart will run into a timeout, causing the service to stop= =20 > which then will break the cluster at all. >=20 > It seems like the new systemd notify feature is causing this, since=20 > using Patroni 4.0.7 with `Type=3Dsimple` in the systemd unit file works= =20 > pretty fine. I think you may well be right - it seems that patroni is sending the=20 notify from a forked child process and that isn't what systemd is=20 expecting > Oct 22 17:43:09 hetzner-lab01 systemd[1]: patroni.service: Got=20 > notification message from PID 13083, but reception only permitted for=20 > main PID 13059 > Any recommendations how to fix/workaround this? https://www.freedesktop.org/software/systemd/man/latest/systemd.service.h= tml#NotifyAccess=3D I don't have a test patroni installation handy right now, but I think if=20 you set NotifyAccess=3Dall in the service config (which you should be able to do by creating a file=20 with just that line called `/etc/systemd/system/patroni/override.conf`) It defaults to "main" IIRC which is the most restricted, "exec" might=20 work, but "all" (the least restricted) seems the most likely to work=20 first time. Hopefully that will do the trick. If so, maybe try "exec" then and let=20 the list know which works and the package can be updated. --=20 Richard Huxton