Re: Breakage: pgbouncer has changed the user under which it runs between 1.16.1 and 1.17.0

From: Tomas Pospisek <tpo2(at)sourcepole(dot)ch>
To: Christoph Berg <myon(at)debian(dot)org>
Cc: pgsql-pkg-debian(at)lists(dot)postgresql(dot)org
Subject: Re: Breakage: pgbouncer has changed the user under which it runs between 1.16.1 and 1.17.0
Date: 2022-05-12 08:46:27
Message-ID: d8ac51a2-6684-0966-a898-aeb4e27038d6@sourcepole.ch
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-pkg-debian

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

In response to

Responses

Browse pgsql-pkg-debian by date

  From Date Subject
Next Message Christoph Berg 2022-05-12 09:23:49 Re: Breakage: pgbouncer has changed the user under which it runs between 1.16.1 and 1.17.0
Previous Message Christoph Berg 2022-05-11 14:34:25 Re: Breakage: pgbouncer has changed the user under which it runs between 1.16.1 and 1.17.0