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 1muxUK-0004NH-I5 for pgsql-general@arkaria.postgresql.org; Wed, 08 Dec 2021 14:00:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1muxUH-0007nC-VW for pgsql-general@arkaria.postgresql.org; Wed, 08 Dec 2021 14:00:01 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1muxUH-0007mz-L1 for pgsql-general@lists.postgresql.org; Wed, 08 Dec 2021 14:00:01 +0000 Received: from mx3.stadt-zuerich.ch ([194.56.33.12]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1muxUE-0003DO-P8 for pgsql-general@lists.postgresql.org; Wed, 08 Dec 2021 14:00:01 +0000 IronPort-SDR: NC9qv19eD2oC8c+2zP5wZoeyvexE+G2sO4DgELMV09MwD0dBd3fR8o6apoBXePHeMWqHtDJHwk mHK5WftfSpbis+1ly03C00MVZt8AbWZuzRLrn5v1wAW1bF8hFT0N2+xfbVWa2u78r5zwgJlM/p yxdxwOPtK1dTGvbToSmEN9gPG8GumYNKntXjW/9vMSUEQqEWsY60nzfmzhotDVQUWlEnprO9Kx /tTOciy2Ia3iiqjdxpIlT0RvX/kfktkO2GPV5i+fJnmx6dxsnsJhbIp+Qg4MXkf5ztE27dTWnq +YY= X-IronPort-AV: E=Sophos;i="5.88,189,1635199200"; d="scan'208";a="74638166" Received: from unknown (HELO SZHM29233.global.szh.loc) ([10.7.49.90]) by mx3.prm.szh.zone with ESMTP/TLS/AES256-GCM-SHA384; 08 Dec 2021 14:59:56 +0100 Received: from SZHM27370.global.szh.loc (10.7.50.50) by SZHM29233.global.szh.loc (10.7.49.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Wed, 8 Dec 2021 14:59:54 +0100 Received: from SZHM27370.global.szh.loc ([fe80::2839:247b:c8d4:9198]) by SZHM27370.global.szh.loc ([fe80::2839:247b:c8d4:9198%10]) with mapi id 15.01.2176.012; Wed, 8 Dec 2021 14:59:54 +0100 From: "Zwettler Markus (OIZ)" To: "pgsql-general@lists.postgresql.org" Subject: AW: error connecting to pgbouncer admin console Thread-Topic: error connecting to pgbouncer admin console Thread-Index: AdfrhGU6JOIadwPpTEiCW4vIBxobWAAt1o0Q Date: Wed, 8 Dec 2021 13:59:54 +0000 Message-ID: <31edaded5341493aafe336be9a49448b@zuerich.ch> References: <35ebb16dd51b44e58b673594bb8126b4@zuerich.ch> In-Reply-To: <35ebb16dd51b44e58b673594bb8126b4@zuerich.ch> Accept-Language: de-CH, en-US Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.7.48.249] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Simply a bug. https://github.com/pgbouncer/pgbouncer/issues/568 Cheers, Markus > -----Urspr=FCngliche Nachricht----- > Von: Zwettler Markus (OIZ) > Gesendet: Dienstag, 7. Dezember 2021 17:10 > An: pgsql-general@lists.postgresql.org > Betreff: error connecting to pgbouncer admin console >=20 > I did a pgbouncer configuration using the following ini file: >=20 >=20 >=20 > [databases] > * =3D host=3Dlocalhost port=3D5433 auth_user=3Dpgbouncer [users] [pgbounc= er] logfile =3D > /pgdata/pcl_l002/pgbouncer/pgbouncer_pcl_l002.log > pidfile =3D /pgdata/pcl_l002/pgbouncer/pgbouncer_pcl_l002.pid > listen_addr =3D * > listen_port =3D 6433 > auth_type =3D hba > auth_file =3D /pgdata/pcl_l002/pgbouncer/userlist_pcl_l002.txt > auth_hba_file =3D /pgdata/pcl_l002/pg_hba.conf auth_user =3D pgbouncer au= th_query > =3D SELECT * FROM pgbouncer.get_auth($1) admin_users =3D monitor stats_us= ers =3D > stats, monitor max_client_conn =3D 500 default_pool_size =3D 20 log_conne= ctions =3D 1 > log_disconnections =3D 1 log_pooler_errors =3D 1 >=20 >=20 >=20 > Everything is fine as long as I connect to any database within the postgr= es cluster > as any user. >=20 >=20 >=20 > As soon as I try to connect to the pgbouncer admin console I get the foll= owing > error: >=20 > $ 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. >=20 > $ 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. >=20 >=20 >=20 > 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 >=20 >=20 >=20 > $ pgbouncer --version > PgBouncer 1.16.1 > libevent 2.0.21-stable > adns: libc-2.17 > tls: OpenSSL 1.0.2k-fips 26 Jan 2017 >=20 >=20 >=20 > Any idea? >=20 >=20 >=20 > Thanks, Markus >=20 >=20