pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgbouncer configuration
4+ messages / 2 participants
[nested] [flat]

* pgbouncer configuration
@ 2021-04-28 00:46 Chris Stephens <cstephens16@gmail.com>
  2021-04-28 06:51 ` Re: pgbouncer configuration Laurenz Albe <laurenz.albe@cybertec.at>
  0 siblings, 1 reply; 4+ messages in thread

From: Chris Stephens @ 2021-04-28 00:46 UTC (permalink / raw)
  To: pgsql-general

I'm trying to run pgbouncer but am having trouble with what looks like a
very simple configuration.

centos 7
postgres 12
pgbouncer 1.15

we are already using pam for database auth. pgbouncer was compiled with
--with-pam. there is a /etc/pam.d/pgbouncer config file copied from the one
currently being used for postgres auth.

i can list the whole config file if needed but i get the following when
trying to start pgbouncer up:

[postgres@lsst-pgsql02 ~]$ pgbouncer  -d /etc/pgbouncer/pgbouncer.ini
2021-04-27 19:37:34.256 CDT [10653] ERROR invalid value "pam" for parameter
auth_type in configuration (/etc/pgbouncer/pgbouncer.ini:118)
2021-04-27 19:37:34.256 CDT [10653] FATAL cannot load config file

[postgres@lsst-pgsql02 pgbouncer]$ egrep "auth_type" pgbouncer.ini
auth_type = pam

any ideas?

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: pgbouncer configuration
  2021-04-28 00:46 pgbouncer configuration Chris Stephens <cstephens16@gmail.com>
@ 2021-04-28 06:51 ` Laurenz Albe <laurenz.albe@cybertec.at>
  2021-04-28 12:09   ` Re: pgbouncer configuration Chris Stephens <cstephens16@gmail.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Laurenz Albe @ 2021-04-28 06:51 UTC (permalink / raw)
  To: Chris Stephens <cstephens16@gmail.com>; pgsql-general

On Tue, 2021-04-27 at 19:46 -0500, Chris Stephens wrote:
> I'm trying to run pgbouncer but am having trouble with what looks like a very simple configuration.
> 
> centos 7
> postgres 12
> pgbouncer 1.15
> 
> we are already using pam for database auth. pgbouncer was compiled with --with-pam. there is a /etc/pam.d/pgbouncer config file copied from the one currently being used for postgres auth.
> 
> i can list the whole config file if needed but i get the following when trying to start pgbouncer up:
> 
> [postgres@lsst-pgsql02 ~]$ pgbouncer  -d /etc/pgbouncer/pgbouncer.ini
> 2021-04-27 19:37:34.256 CDT [10653] ERROR invalid value "pam" for parameter auth_type in configuration (/etc/pgbouncer/pgbouncer.ini:118)
> 2021-04-27 19:37:34.256 CDT [10653] FATAL cannot load config file
> 
> [postgres@lsst-pgsql02 pgbouncer]$ egrep "auth_type" pgbouncer.ini
> auth_type = pam
> 
> any ideas? 

I'd suspect that pgBouncer is not built with PAM support after all.

Run "ldd" on the executable and see if it links with OpenLDAP.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com






^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: pgbouncer configuration
  2021-04-28 00:46 pgbouncer configuration Chris Stephens <cstephens16@gmail.com>
  2021-04-28 06:51 ` Re: pgbouncer configuration Laurenz Albe <laurenz.albe@cybertec.at>
@ 2021-04-28 12:09   ` Chris Stephens <cstephens16@gmail.com>
  2021-04-28 12:32     ` Re: pgbouncer configuration Chris Stephens <cstephens16@gmail.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Chris Stephens @ 2021-04-28 12:09 UTC (permalink / raw)
  To: Laurenz Albe <laurenz.albe@cybertec.at>; +Cc: pgsql-general

huh. you are right. i originally installed pgbouncer with yum but removed
with just "yum remove pgbouncer" before following "Building from Git"
section at http://www.pgbouncer.org/install.html.

i just ran "make uninstall" -> reinstalled with

  403  21-04-28 06:58:32 git submodule init
  404  21-04-28 06:58:36 git submodule update
  405  21-04-28 06:58:45 ./autogen.sh
  406  21-04-28 06:59:23 ./configure --with-pam --with-systemd
  407  21-04-28 07:02:11 make
  408  21-04-28 07:02:16 make install

but it still looks like no ldap or pam and same error when starting up. any
suggestions on how to completely remove and reinstall with support for pam?



On Wed, Apr 28, 2021 at 1:51 AM Laurenz Albe <laurenz.albe@cybertec.at>
wrote:

> On Tue, 2021-04-27 at 19:46 -0500, Chris Stephens wrote:
> > I'm trying to run pgbouncer but am having trouble with what looks like a
> very simple configuration.
> >
> > centos 7
> > postgres 12
> > pgbouncer 1.15
> >
> > we are already using pam for database auth. pgbouncer was compiled with
> --with-pam. there is a /etc/pam.d/pgbouncer config file copied from the one
> currently being used for postgres auth.
> >
> > i can list the whole config file if needed but i get the following when
> trying to start pgbouncer up:
> >
> > [postgres@lsst-pgsql02 ~]$ pgbouncer  -d /etc/pgbouncer/pgbouncer.ini
> > 2021-04-27 19:37:34.256 CDT [10653] ERROR invalid value "pam" for
> parameter auth_type in configuration (/etc/pgbouncer/pgbouncer.ini:118)
> > 2021-04-27 19:37:34.256 CDT [10653] FATAL cannot load config file
> >
> > [postgres@lsst-pgsql02 pgbouncer]$ egrep "auth_type" pgbouncer.ini
> > auth_type = pam
> >
> > any ideas?
>
> I'd suspect that pgBouncer is not built with PAM support after all.
>
> Run "ldd" on the executable and see if it links with OpenLDAP.
>
> Yours,
> Laurenz Albe
> --
> Cybertec | https://www.cybertec-postgresql.com
>
>

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: pgbouncer configuration
  2021-04-28 00:46 pgbouncer configuration Chris Stephens <cstephens16@gmail.com>
  2021-04-28 06:51 ` Re: pgbouncer configuration Laurenz Albe <laurenz.albe@cybertec.at>
  2021-04-28 12:09   ` Re: pgbouncer configuration Chris Stephens <cstephens16@gmail.com>
@ 2021-04-28 12:32     ` Chris Stephens <cstephens16@gmail.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Chris Stephens @ 2021-04-28 12:32 UTC (permalink / raw)
  To: Laurenz Albe <laurenz.albe@cybertec.at>; +Cc: pgsql-general

I had to install pam-devel before reinstalling pgbouncer. appears to be
working now. thanks for pointing me in the right direction Laurenz!

On Wed, Apr 28, 2021 at 7:09 AM Chris Stephens <cstephens16@gmail.com>
wrote:

> huh. you are right. i originally installed pgbouncer with yum but removed
> with just "yum remove pgbouncer" before following "Building from Git"
> section at http://www.pgbouncer.org/install.html.
>
> i just ran "make uninstall" -> reinstalled with
>
>   403  21-04-28 06:58:32 git submodule init
>   404  21-04-28 06:58:36 git submodule update
>   405  21-04-28 06:58:45 ./autogen.sh
>   406  21-04-28 06:59:23 ./configure --with-pam --with-systemd
>   407  21-04-28 07:02:11 make
>   408  21-04-28 07:02:16 make install
>
> but it still looks like no ldap or pam and same error when starting up.
> any suggestions on how to completely remove and reinstall with support for
> pam?
>
>
>
> On Wed, Apr 28, 2021 at 1:51 AM Laurenz Albe <laurenz.albe@cybertec.at>
> wrote:
>
>> On Tue, 2021-04-27 at 19:46 -0500, Chris Stephens wrote:
>> > I'm trying to run pgbouncer but am having trouble with what looks like
>> a very simple configuration.
>> >
>> > centos 7
>> > postgres 12
>> > pgbouncer 1.15
>> >
>> > we are already using pam for database auth. pgbouncer was compiled with
>> --with-pam. there is a /etc/pam.d/pgbouncer config file copied from the one
>> currently being used for postgres auth.
>> >
>> > i can list the whole config file if needed but i get the following when
>> trying to start pgbouncer up:
>> >
>> > [postgres@lsst-pgsql02 ~]$ pgbouncer  -d /etc/pgbouncer/pgbouncer.ini
>> > 2021-04-27 19:37:34.256 CDT [10653] ERROR invalid value "pam" for
>> parameter auth_type in configuration (/etc/pgbouncer/pgbouncer.ini:118)
>> > 2021-04-27 19:37:34.256 CDT [10653] FATAL cannot load config file
>> >
>> > [postgres@lsst-pgsql02 pgbouncer]$ egrep "auth_type" pgbouncer.ini
>> > auth_type = pam
>> >
>> > any ideas?
>>
>> I'd suspect that pgBouncer is not built with PAM support after all.
>>
>> Run "ldd" on the executable and see if it links with OpenLDAP.
>>
>> Yours,
>> Laurenz Albe
>> --
>> Cybertec | https://www.cybertec-postgresql.com
>>
>>

^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2021-04-28 12:32 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-04-28 00:46 pgbouncer configuration Chris Stephens <cstephens16@gmail.com>
2021-04-28 06:51 ` Laurenz Albe <laurenz.albe@cybertec.at>
2021-04-28 12:09   ` Chris Stephens <cstephens16@gmail.com>
2021-04-28 12:32     ` Chris Stephens <cstephens16@gmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox