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 1g1tpU-0000kN-Mg for pgsql-general@arkaria.postgresql.org; Mon, 17 Sep 2018 13:44:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g1tpS-00077r-AN for pgsql-general@arkaria.postgresql.org; Mon, 17 Sep 2018 13:44:42 +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 1g1tpR-00077k-3q for pgsql-general@lists.postgresql.org; Mon, 17 Sep 2018 13:44:42 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g1tpN-000445-PN for pgsql-general@lists.postgresql.org; Mon, 17 Sep 2018 13:44:39 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id C5876218FD; Mon, 17 Sep 2018 09:44:36 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Mon, 17 Sep 2018 09:44:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=3iK4aJZizc9NWW62k8tTumYcPpXYt jk55ig1Gq8jPG4=; b=QAs5dkD5/6xsLl8/oiFbKgGRF+orJHyvkuPLbj3pVeS+2 YYi++WHXEWeAtin5heS2WOUqg4XVwxNrAtt8/KGvjvF+tFQx+C4xFqz+eUWSVZF5 u/JVlzxVcv0jNzGqfuvPJ8V51zb4iKb0/qwhppAMaNY/anaORmwJfoxAqLDn6PpD ZPJqdby1UBXpzWu0ZqdDb2ybc8gtmcLYQfrBciQ3P+Dfk6J1oIZFPrQtQVCCbnoL hHWlJPuVWOIPGnBEkrcVvqWc18YnTKHADFeW6CpQiCwLT0LhQyHpNO3+FBhW9keT LaFd6zSVT5zBa4Lma9CKgsjtBOYiJADqOIHcuvenQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=3iK4aJ Zizc9NWW62k8tTumYcPpXYtjk55ig1Gq8jPG4=; b=MONKUXFZhWmr4OdgBYh7af /jzkKgt6jtrK8esF84Y7EkR6jDm7bPfSKkrWUwO6rZx+FLuZiZGOHiyQiqb7gjDG xtz19nkTbfFPn5IsqZMZStWl/Q409lhy1hCzH2EL2Acjf4czSXgfyakczTPqWXPx y1lfY+9iOelGUZIPtbc9q28KEnMmT6a0gPrfbBz7vtke39jks1wwzI3stezzf45Q geEVhEsAYjlJYH9Ajst9H4oCITKOZ65+cXv0mUzaKPgCie4i2bZ8rNOgwlYhJ+bY GUAPcjtKTUxREnlQ3OyoPHtFIglhCG2p5LMIWo7ZeuBVPEV5tnTiCgdBiumUeLlQ == X-ME-Proxy: X-ME-Sender: Received: from [192.168.1.3] (unknown [71.212.134.3]) by mail.messagingengine.com (Postfix) with ESMTPA id CA1C0E49CB; Mon, 17 Sep 2018 09:44:35 -0400 (EDT) Subject: Re: Pgbouncer and postgres To: Nicola Contu , pgsql-general@lists.postgresql.org References: From: Adrian Klaver Message-ID: <7bceb23a-8724-7fd9-bf74-e5dfd557283e@aklaver.com> Date: Mon, 17 Sep 2018 06:44:34 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 9/17/18 5:33 AM, Nicola Contu wrote: > Hello, > > I'm trying to get pgbouncer working but I'm getting this error : > > What is generating the log below? To me it looks like everything is on track until this: > 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) = 0 > 2018-09-17 12:21:48.918 88424 NOISE safe_accept(12) = Resource > temporarily 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) = 0 > 2018-09-17 12:23:26.872 88424 NOISE safe_close(12) = 0 > > > Postgres version : 10.5 > > Libevent : 2.0.5 > > Pgbouncer : 1.8.1 > > OS : Centos 7 Have there been updates to CentOS during this? > > > 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 Did you compile 1.9.0 from source or install from package? > > > > Content of the pgbouncer.ini > > [databases] > DB_NAME = host=IP_ADDD port=5432 dbname=DB_NAMEĀ auth_user=pgbouncer > pool_size=120 > > [pgbouncer] > listen_port = 6543 > listen_addr = * > auth_type = md5 > auth_file = /etc/pgbouncer/users.txt > auth_query = select uname,phash from user_lookup($1) > logfile = /var/log/pgbouncer.log > pidfile = /home/postgres/pgbouncer.pid > admin_users = admin > user=postgres > max_db_connections = 220 > log_connections=0 > log_disconnections=0 > verbose=3 > > > 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 > > -- Adrian Klaver adrian.klaver@aklaver.com