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

* error connecting to pgbouncer admin console
@ 2021-12-07 16:10  Zwettler Markus (OIZ) <Markus.Zwettler@zuerich.ch>
  0 siblings, 1 reply; 2+ messages in thread

From: Zwettler Markus (OIZ) @ 2021-12-07 16:10 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>

I did a pgbouncer configuration using the following ini file:



[databases]
* = host=localhost port=5433 auth_user=pgbouncer
[users]
[pgbouncer]
logfile = /pgdata/pcl_l002/pgbouncer/pgbouncer_pcl_l002.log
pidfile = /pgdata/pcl_l002/pgbouncer/pgbouncer_pcl_l002.pid
listen_addr = *
listen_port = 6433
auth_type = hba
auth_file = /pgdata/pcl_l002/pgbouncer/userlist_pcl_l002.txt
auth_hba_file = /pgdata/pcl_l002/pg_hba.conf
auth_user = pgbouncer
auth_query = SELECT * FROM pgbouncer.get_auth($1)
admin_users = monitor
stats_users = stats, monitor
max_client_conn = 500
default_pool_size = 20
log_connections = 1
log_disconnections = 1
log_pooler_errors = 1



Everything is fine as long as I connect to any database within the postgres cluster as any user.



As soon as I try to connect to the pgbouncer admin console I get the following error:

$ psql -h localhost -p 6433 -U monitor pgbouncer
psql: server closed the connection unexpectedly
        This probably means the server terminated abnormally
        before or while processing the request.

$ psql -h localhost -p 6433 -U stats pgbouncer
psql: server closed the connection unexpectedly
        This probably means the server terminated abnormally
        before or while processing the request.



There is always the same error within the pgbouncer logfile:
...
...
2021-12-07 16:56:53.550 CET [73046] LOG process up: PgBouncer 1.16.1, libevent 2.0.21-stable (epoll), adns: libc-2.17, tls: OpenSSL 1.0.2k-fips  26 Jan 2017
2021-12-07 16:57:00.969 CET [73046] FATAL @src/objects.c:312 in function put_in_order(): put_in_order: found existing elem



$ pgbouncer --version
PgBouncer 1.16.1
libevent 2.0.21-stable
adns: libc-2.17
tls: OpenSSL 1.0.2k-fips  26 Jan 2017



Any idea?



Thanks, Markus






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

* Re: error connecting to pgbouncer admin console
@ 2021-12-08 10:49  Peter Eisentraut <peter.eisentraut@enterprisedb.com>
  parent: Zwettler Markus (OIZ) <Markus.Zwettler@zuerich.ch>
  0 siblings, 0 replies; 2+ messages in thread

From: Peter Eisentraut @ 2021-12-08 10:49 UTC (permalink / raw)
  To: Zwettler Markus (OIZ) <Markus.Zwettler@zuerich.ch>; pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>

On 07.12.21 17:10, Zwettler Markus (OIZ) wrote:
> I did a pgbouncer configuration using the following ini file:
> 
> 
> 
> [databases]
> * = host=localhost port=5433 auth_user=pgbouncer

Using the name "pgbouncer" for auth_user is buggy.  Try using a 
different name.






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


end of thread, other threads:[~2021-12-08 10:49 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-12-07 16:10 error connecting to pgbouncer admin console Zwettler Markus (OIZ) <Markus.Zwettler@zuerich.ch>
2021-12-08 10:49 ` Peter Eisentraut <peter.eisentraut@enterprisedb.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