Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g1shI-0003wX-7E for pgsql-general@arkaria.postgresql.org; Mon, 17 Sep 2018 12:32:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g1shG-0006YN-Q6 for pgsql-general@arkaria.postgresql.org; Mon, 17 Sep 2018 12:32:10 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g1shG-0006YG-9V for pgsql-general@lists.postgresql.org; Mon, 17 Sep 2018 12:32:10 +0000 Received: from aesomtlo12a.serverdata.net ([185.64.213.251]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g1shC-0002UC-Nw for pgsql-general@lists.postgresql.org; Mon, 17 Sep 2018 12:32:08 +0000 Received: from aesoc-lo-1-1.serverpod.net (aesoc-lo-1-1.serverpod.net [10.32.97.6]) by aesomt-lo-1-2.serverpod.net (Postfix) with ESMTP id 72E2A82 for ; Mon, 17 Sep 2018 05:32:04 -0700 (PDT) Received: from MBX118-U1-LO-1.PEXCH118.serverpod.net (unknown [10.32.30.128]) by aesomt-lo-1-2.serverpod.net (Postfix) with ESMTP id 2D9077A for ; Mon, 17 Sep 2018 05:32:04 -0700 (PDT) Received: from MBX118-U1-LO-3.PEXCH118.serverpod.net (10.32.30.132) by MBX118-U1-LO-1.PEXCH118.serverpod.net (10.32.30.128) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P521) id 15.1.1466.3; Mon, 17 Sep 2018 13:32:02 +0100 Received: from MBX118-U1-LO-3.PEXCH118.serverpod.net ([10.32.30.132]) by MBX118-U1-LO-3.PEXCH118.serverpod.net ([10.32.30.132]) with mapi id 15.01.1466.003; Mon, 17 Sep 2018 13:32:02 +0100 From: Nicola Contu To: "pgsql-general@lists.postgresql.org" Subject: Pgbouncer and postgres Thread-Topic: Pgbouncer and postgres Thread-Index: AQHUToHL6rdJcudlUUe4/MZrAbswig== Date: Mon, 17 Sep 2018 12:32:02 +0000 Message-ID: <2b6240d33d594669906beb0e7bc4ea8a@gtt.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [213.254.201.33] x-source-routing-agent: Processed Content-Type: multipart/alternative; boundary="_000_2b6240d33d594669906beb0e7bc4ea8agttnet_" MIME-Version: 1.0 X-CMAE-Score: 0 X-CMAE-Analysis: v=2.2 cv=GclVpkfL c=1 sm=1 tr=0 a=WedviZFg4cWUxtNxgLRiNQ==:117 a=15Exb3L10LQA:10 a=JBFolyDoGHsA:10 a=d-eR6EfW9nP8ow9RcHEA:9 a=wPNLvfGTeEIA:10 a=OFQFw3iAKcjogTot:21 a=_W_S_7VecoQA:10 a=frz4AuCg-hUA:10 X-SPF-STATUS: soft_fail X-RDNS-STATUS: fail X-SOURCE-IP: 10.32.30.128 Spam-Stopper-Id: 1a1043de-7047-48ac-a440-107235776b69 Spam-Stopper-v2: Yes X-AES-Category: LEGIT X-Spam-Category: LEGIT X-Spam-Score: 0 X-Spam-Reasons: Cause=gggruggvucftvghtrhhoucdtuddrgedtjedrkeeggdeglecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucdtuddrgedtfedrtddtpdfkpffvgfftoffgfffktedpggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedttdenucenucfjughrpefhvffuthffkfhitgggsegrtdhjredttddunecuhfhrohhmpefpihgtohhlrgcuvehonhhtuhcuoefpihgtohhlrgdrvehonhhtuhesghhtthdrnhgvtheqnecukfhppedvudefrddvheegrddvtddurdeffedpuddtrdefvddrfedtrdduvdeknecuvehluhhsthgvrhfuihiivgeptd To="pgsql-general@lists.postgresql.org" From=Nicola Contu List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --_000_2b6240d33d594669906beb0e7bc4ea8agttnet_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, I'm trying to get pgbouncer working but I'm getting this error : 2018-09-17 12:20:15.304 87772 NOISE safe_accept(12) =3D Resource temporaril= y unavailable 2018-09-17 12:20:36.183 87772 NOISE safe_accept(11) =3D 13 (127.0.0.1:59100= ) 2018-09-17 12:20:36.183 87772 NOISE new fd from accept=3D13 2018-09-17 12:20:36.183 87772 NOISE safe_accept(11) =3D Resource temporaril= y unavailable 2018-09-17 12:21:14.412 88424 DEBUG parse_ini_file: 'logfile' =3D '/var/log= /pgbouncer.log' ok:1 2018-09-17 12:21:14.412 88424 DEBUG parse_ini_file: 'pidfile' =3D '/home/po= stgres/pgbouncer.pid' 2018-09-17 12:21:14.412 88424 DEBUG parse_ini_file: 'pidfile' =3D '/home/po= stgres/pgbouncer.pid' ok:1 2018-09-17 12:21:14.412 88424 DEBUG parse_ini_file: 'admin_users' =3D 'admi= n' 2018-09-17 12:21:14.412 88424 DEBUG parse_ini_file: 'admin_users' =3D 'admi= n' ok:1 2018-09-17 12:21:14.412 88424 DEBUG parse_ini_file: 'user' =3D 'postgres' 2018-09-17 12:21:14.412 88424 DEBUG parse_ini_file: 'user' =3D 'postgres' o= k:1 2018-09-17 12:21:14.412 88424 DEBUG parse_ini_file: 'max_db_connections' = =3D '220' 2018-09-17 12:21:14.412 88424 DEBUG parse_ini_file: 'max_db_connections' = =3D '220' ok:1 2018-09-17 12:21:14.412 88424 DEBUG parse_ini_file: 'log_connections' =3D '= 0' 2018-09-17 12:21:14.413 88424 DEBUG parse_ini_file: 'log_connections' =3D '= 0' ok:1 2018-09-17 12:21:14.413 88424 DEBUG parse_ini_file: 'log_disconnections' = =3D '0' 2018-09-17 12:21:14.413 88424 DEBUG parse_ini_file: 'log_disconnections' = =3D '0' ok:1 2018-09-17 12:21:14.413 88424 DEBUG parse_ini_file: 'verbose' =3D '3' 2018-09-17 12:21:14.413 88424 DEBUG parse_ini_file: 'verbose' =3D '3' ok:1 2018-09-17 12:21:14.413 88424 DEBUG loading auth_file: "/etc/pgbouncer/user= s.txt" 2018-09-17 12:21:14.417 88424 NOISE event: 128, SBuf: 192, PgSocket: 400, I= OBuf: 4108 2018-09-17 12:21:14.417 88424 LOG File descriptor limit: 1024 (H:4096), max= _client_conn: 100, max fds possible: 230 2018-09-17 12:21:14.417 88424 DEBUG pktbuf_dynamic(128): 0x25277c0 2018-09-17 12:21:14.417 88424 DEBUG make_room(0x25277c0, 4): realloc newlen= =3D256 2018-09-17 12:21:14.417 88424 DEBUG pktbuf_dynamic(128): 0x252ebb0 2018-09-17 12:21:14.418 88424 NOISE connect(4, unix:/tmp/.s.PGSQL.6543) =3D= Connection refused 2018-09-17 12:21:14.418 88424 NOISE safe_close(4) =3D 0 2018-09-17 12:21:14.418 88424 LOG Stale pidfile, removing 2018-09-17 12:21:14.419 88424 DEBUG adns_create_context: evdns2 2018-09-17 12:21:14.421 88424 DEBUG add_listen: 127.0.0.1:6543 2018-09-17 12:21:14.422 88424 NOISE old TCP_DEFER_ACCEPT on 11 =3D 0 2018-09-17 12:21:14.422 88424 NOISE install TCP_DEFER_ACCEPT on 11 2018-09-17 12:21:14.422 88424 LOG listening on 127.0.0.1:6543 2018-09-17 12:21:14.422 88424 DEBUG add_listen: unix:/tmp/.s.PGSQL.6543 2018-09-17 12:21:14.422 88424 LOG listening on unix:/tmp/.s.PGSQL.6543 2018-09-17 12:21:14.423 88424 LOG process up: pgbouncer 1.8.1, libevent 2.0= .21-stable (epoll), adns: evdns2, tls: OpenSSL 1.0.2k-fips 26 Jan 2017 2018-09-17 12:21:14.756 88424 DEBUG loading auth_file: "/etc/pgbouncer/user= s.txt" 2018-09-17 12:21:48.917 88424 NOISE safe_accept(12) =3D 13 (unix:) 2018-09-17 12:21:48.917 88424 NOISE new fd from accept=3D13 2018-09-17 12:21:48.917 88424 WARNING tune_socket(13) failed: Operation not= supported 2018-09-17 12:21:48.917 88424 NOISE safe_close(13) =3D 0 2018-09-17 12:21:48.918 88424 NOISE safe_accept(12) =3D Resource temporaril= y unavailable 2018-09-17 12:22:14.422 88424 LOG Stats: 0 xacts/s, 0 queries/s, in 0 B/s, = out 0 B/s, xact 0 us, query 0 us wait time 0 us 2018-09-17 12:23:14.423 88424 LOG Stats: 0 xacts/s, 0 queries/s, in 0 B/s, = out 0 B/s, xact 0 us, query 0 us wait time 0 us 2018-09-17 12:23:26.561 88424 LOG Got SIGINT, shutting down 2018-09-17 12:23:26.872 88424 LOG server connections dropped, exiting 2018-09-17 12:23:26.872 88424 NOISE safe_close(11) =3D 0 2018-09-17 12:23:26.872 88424 NOISE safe_close(12) =3D 0 Postgres version : 10.5 Libevent : 2.0.5 Pgbouncer : 1.8.1 It used to work. Now after trying to install latest version of pgbouncer (1= .9.0) does not work anymore. Then I re-compiled the v 1.8.1 Content of the pgbouncer.ini [databases] DB_NAME =3D host=3DIP_ADDD port=3D5432 dbname=3DDB_NAME auth_user=3Dpgbounc= er pool_size=3D120 [pgbouncer] listen_port =3D 6543 listen_addr =3D * auth_type =3D md5 auth_file =3D /etc/pgbouncer/users.txt auth_query =3D select uname,phash from user_lookup($1) logfile =3D /var/log/pgbouncer.log pidfile =3D /home/postgres/pgbouncer.pid admin_users =3D admin user=3Dpostgres max_db_connections =3D 220 log_connections=3D0 log_disconnections=3D0 verbose=3D3 Content of the users .txt [root@cmd-dev1 pgbouncer]# cat users.txt "pgbouncer" "***************" I tried to change the listen address to 127.0.0.1 or to the IP of the VM. N= othing changed. Can anyone help? Thanks --_000_2b6240d33d594669906beb0e7bc4ea8agttnet_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hello,

I'm trying to get pgbouncer working but I'm getting this error :


2018-09-17 12:20:15.304 87772 NOISE safe_accept(12) =3D Resource tempo= rarily unavailable
2018-09-17 12:20:36.183 87772 NOISE safe_accept(11) =3D 13 (127.0.0.1:= 59100)
2018-09-17 12:20:36.183 87772 NOISE new fd from accept=3D13
2018-09-17 12:20:36.183 87772 NOISE safe_accept(11) =3D Resource tempo= rarily unavailable
2018-09-17 12:21:14.412 88424 DEBUG parse_ini_file: 'logfile' =3D '/va= r/log/pgbouncer.log' ok:1
2018-09-17 12:21:14.412 88424 DEBUG parse_ini_file: 'pidfile' =3D '/ho= me/postgres/pgbouncer.pid'
2018-09-17 12:21:14.412 88424 DEBUG parse_ini_file: 'pidfile' =3D '/ho= me/postgres/pgbouncer.pid' ok:1
2018-09-17 12:21:14.412 88424 DEBUG parse_ini_file: 'admin_users' =3D = 'admin'
2018-09-17 12:21:14.412 88424 DEBUG parse_ini_file: 'admin_users' =3D = 'admin' ok:1
2018-09-17 12:21:14.412 88424 DEBUG parse_ini_file: 'user' =3D 'postgr= es'
2018-09-17 12:21:14.412 88424 DEBUG parse_ini_file: 'user' =3D 'postgr= es' ok:1
2018-09-17 12:21:14.412 88424 DEBUG parse_ini_file: 'max_db_connection= s' =3D '220'
2018-09-17 12:21:14.412 88424 DEBUG parse_ini_file: 'max_db_connection= s' =3D '220' ok:1
2018-09-17 12:21:14.412 88424 DEBUG parse_ini_file: 'log_connections' = =3D '0'
2018-09-17 12:21:14.413 88424 DEBUG parse_ini_file: 'log_connections' = =3D '0' ok:1
2018-09-17 12:21:14.413 88424 DEBUG parse_ini_file: 'log_disconnection= s' =3D '0'
2018-09-17 12:21:14.413 88424 DEBUG parse_ini_file: 'log_disconnection= s' =3D '0' ok:1
2018-09-17 12:21:14.413 88424 DEBUG parse_ini_file: 'verbose' =3D '3'<= /div>
2018-09-17 12:21:14.413 88424 DEBUG parse_ini_file: 'verbose' =3D '3' = ok:1
2018-09-17 12:21:14.413 88424 DEBUG loading auth_file: "/etc/pgbo= uncer/users.txt"
2018-09-17 12:21:14.417 88424 NOISE event: 128, SBuf: 192, PgSocket: 4= 00, IOBuf: 4108
2018-09-17 12:21:14.417 88424 LOG File descriptor limit: 1024 (H:4096)= , max_client_conn: 100, max fds possible: 230
2018-09-17 12:21:14.417 88424 DEBUG pktbuf_dynamic(128): 0x25277c0
2018-09-17 12:21:14.417 88424 DEBUG make_room(0x25277c0, 4): realloc n= ewlen=3D256
2018-09-17 12:21:14.417 88424 DEBUG pktbuf_dynamic(128): 0x252ebb0
2018-09-17 12:21:14.418 88424 NOISE connect(4, unix:/tmp/.s.PGSQL.6543= ) =3D Connection refused
2018-09-17 12:21:14.418 88424 NOISE safe_close(4) =3D 0
2018-09-17 12:21:14.418 88424 LOG Stale pidfile, removing
2018-09-17 12:21:14.419 88424 DEBUG adns_create_context: evdns2
2018-09-17 12:21:14.421 88424 DEBUG add_listen: 127.0.0.1:6543
2018-09-17 12:21:14.422 88424 NOISE old TCP_DEFER_ACCEPT on 11 =3D 0
2018-09-17 12:21:14.422 88424 NOISE install TCP_DEFER_ACCEPT on 11
2018-09-17 12:21:14.422 88424 LOG listening on 127.0.0.1:6543
2018-09-17 12:21:14.422 88424 DEBUG add_listen: unix:/tmp/.s.PGSQL.654= 3
2018-09-17 12:21:14.422 88424 LOG listening on unix:/tmp/.s.PGSQL.6543=
2018-09-17 12:21:14.423 88424 LOG process up: pgbouncer 1.8.1, libeven= t 2.0.21-stable (epoll), adns: evdns2, tls: OpenSSL 1.0.2k-fips  26 Ja= n 2017
2018-09-17 12:21:14.756 88424 DEBUG loading auth_file: "/etc/pgbo= uncer/users.txt"
2018-09-17 12:21:48.917 88424 NOISE safe_accept(12) =3D 13 (unix:)
2018-09-17 12:21:48.917 88424 NOISE new fd from accept=3D13
2018-09-17 12:21:48.917 88424 WARNING tune_socket(13) failed: Operatio= n not supported
2018-09-17 12:21:48.917 88424 NOISE safe_close(13) =3D 0
2018-09-17 12:21:48.918 88424 NOISE safe_accept(12) =3D Resource tempo= rarily unavailable
2018-09-17 12:22:14.422 88424 LOG Stats: 0 xacts/s, 0 queries/s, in 0 = B/s, out 0 B/s, xact 0 us, query 0 us wait time 0 us
2018-09-17 12:23:14.423 88424 LOG Stats: 0 xacts/s, 0 queries/s, in 0 = B/s, out 0 B/s, xact 0 us, query 0 us wait time 0 us
2018-09-17 12:23:26.561 88424 LOG Got SIGINT, shutting down
2018-09-17 12:23:26.872 88424 LOG server connections dropped, exiting<= /div>
2018-09-17 12:23:26.872 88424 NOISE safe_close(11) =3D 0
2018-09-17 12:23:26.872 88424 NOISE safe_close(12) =3D 0


Postgres version : 10.5

Libevent : 2.0.5

Pgbouncer : 1.8.1



It used to work. Now after trying to install latest version of pgbouncer= (1.9.0) does not work anymore. Then I re-compiled the v 1.8.1



Content of the pgbouncer.ini

[databases]
DB_NAME =3D host=3DIP_ADDD port=3D5432 dbname=3DDB_NAME auth_user= =3Dpgbouncer pool_size=3D120

[pgbouncer]
listen_port =3D 6543
listen_addr =3D *
auth_type =3D md5
auth_file =3D /etc/pgbouncer/users.txt
auth_query =3D select uname,phash from user_lookup($1)
logfile =3D /var/log/pgbouncer.log
pidfile =3D /home/postgres/pgbouncer.pid
admin_users =3D admin
user=3Dpostgres
max_db_connections =3D 220
log_connections=3D0
log_disconnections=3D0
verbose=3D3


Content of the users .txt

[root@cmd-dev1 pgbouncer]# cat users.txt
"pgbouncer" "***************"


I tried to change the listen address to 127.0.0.1 or to the IP of the VM= . Nothing changed.


Can anyone help?


Thanks


--_000_2b6240d33d594669906beb0e7bc4ea8agttnet_--