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 1mud38-0006EM-T3 for pgsql-general@arkaria.postgresql.org; Tue, 07 Dec 2021 16:10: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 1mud37-0004no-0L for pgsql-general@arkaria.postgresql.org; Tue, 07 Dec 2021 16:10: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 1mud36-0004nf-M8 for pgsql-general@lists.postgresql.org; Tue, 07 Dec 2021 16:10:36 +0000 Received: from mx4.stadt-zuerich.ch ([194.56.33.13]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mud2z-00036p-BQ for pgsql-general@lists.postgresql.org; Tue, 07 Dec 2021 16:10:35 +0000 IronPort-SDR: yoEdJvfXwbFXlvybswk2mUZyffQxFJ/atQy4d6vn6obA+UrzXd7Rt5F/E+8haxveLepHgbgm1Z NFRRVDZ1serQ5FxeZTNptwgKM+pLAbDcNgz6amDaFA2r30KKD68EKt0LqZ/eDk6OQo3/XHdKs+ cXGlL0fIpgeJc4ebd0kB/nhRGeNhngX4+36mZ07CKZgT3tUGcFm+CbbX5i5Ve1C/dQPhJKFRwN NvX3B9+baGFWrCWS9PS1rbHBEqeJ9IeXxOJkePboxG59FwKiblpcbfn7cS9UQLF0BEhxUBo/06 lWU= X-IronPort-AV: E=Sophos;i="5.87,293,1631570400"; d="scan'208";a="22610244" Received: from unknown (HELO SZHM27374.global.szh.loc) ([10.7.50.70]) by mx4.prm.szh.zone with ESMTP/TLS/AES256-GCM-SHA384; 07 Dec 2021 17:10:26 +0100 Received: from SZHM27370.global.szh.loc (10.7.50.50) by SZHM27374.global.szh.loc (10.7.50.73) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 7 Dec 2021 17:10:25 +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; Tue, 7 Dec 2021 17:10:25 +0100 From: "Zwettler Markus (OIZ)" To: "pgsql-general@lists.postgresql.org" Subject: error connecting to pgbouncer admin console Thread-Topic: error connecting to pgbouncer admin console Thread-Index: AdfrhGU6JOIadwPpTEiCW4vIBxobWA== Date: Tue, 7 Dec 2021 16:10:25 +0000 Message-ID: <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="us-ascii" 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 I did a pgbouncer configuration using the following ini file: [databases] * =3D host=3Dlocalhost port=3D5433 auth_user=3Dpgbouncer [users] [pgbouncer] 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 auth_query =3D SELECT * FROM pgbouncer.get_auth($1) admin_users =3D monitor stats_users =3D stats, monitor max_client_conn =3D 500 default_pool_size =3D 20 log_connections =3D 1 log_disconnections =3D 1 log_pooler_errors =3D 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 follow= ing 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, libev= ent 2.0.21-stable (epoll), adns: libc-2.17, tls: OpenSSL 1.0.2k-fips 26 Ja= n 2017 2021-12-07 16:57:00.969 CET [73046] FATAL @src/objects.c:312 in function pu= t_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