Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1np4T0-0004bz-5R for pgsql-pkg-debian@arkaria.postgresql.org; Thu, 12 May 2022 08:46:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1np4Sz-00030e-2h for pgsql-pkg-debian@arkaria.postgresql.org; Thu, 12 May 2022 08:46:37 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1np4Sy-00030V-T4 for pgsql-pkg-debian@lists.postgresql.org; Thu, 12 May 2022 08:46:36 +0000 Received: from brisi.sourcepole.ch ([5.9.57.43]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1np4Sw-000375-5H for pgsql-pkg-debian@lists.postgresql.org; Thu, 12 May 2022 08:46:35 +0000 Received: from [213.55.225.61] (helo=[192.168.43.81]) by vilan-mail with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1np4St-0006hH-JC; Thu, 12 May 2022 10:46:31 +0200 Message-ID: Date: Thu, 12 May 2022 10:46:27 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: Breakage: pgbouncer has changed the user under which it runs between 1.16.1 and 1.17.0 Content-Language: en-GB To: Christoph Berg Cc: pgsql-pkg-debian@lists.postgresql.org References: From: Tomas Pospisek In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi Christoph, before anything: thanks a lot for your reply and thanks a lot for your OSS work <3 !!! Am very thankful for that! On 11.05.22 16:34, Christoph Berg wrote: > Re: Tomas Pospisek >> Due to the change of user under which pgbouncer runs (before: user >> pgbouncer, new: user postgres), an upgrade from 1.16.1 to 1.17.0 will break >> systems. > > Hi Tomas, > > the Debian pgbouncer package has always been using the postgres user: > > $ grep USER debian/init > RUNASUSER="postgres" > $SSD --start --chuid $RUNASUSER --oknodo -- $OPTS 2> /dev/null > su -c "$DAEMON -R $OPTS 2> /dev/null" - ${RUNASUSER%:*} > > Maybe you were editing the init.d or defaults file before? indeed my /etc/default/pgbouncer contains `RUNASUSER="pgbouncer"`. I do set that explicitly via ansible. However I'm not sure where that line originated from. I am quite sure that it's not me who came up with the idea of running the daemon as `pgbouncer`, but instead that came from the package (which package - if from Debian or from pgdg - I don't know I would have to dig further, but maybe I could figure it out). >> Upgrade: pgbouncer:amd64 (1.16.1-1.pgdg20.04+1, >> 1.17.0-3.pgdg20.04+1) > > The effective change between these versions is that we are now > shipping a .service file. So what is happening after the introduction of the `.service` file is that either `/etc/default/pgbouncer` is now beeing ignored or it is being overriden. That breaks installations that had `RUNASUSER="pgbouncer"` set in `/etc/default/pgbouncer` when upgrading to 1.17.x. Do you concur with that conclusion? *t