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 1g1vZL-0000Zn-3D for pgsql-general@arkaria.postgresql.org; Mon, 17 Sep 2018 15:36:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g1vZJ-0008Ac-8C for pgsql-general@arkaria.postgresql.org; Mon, 17 Sep 2018 15:36:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g1vZH-0008AU-6A for pgsql-general@lists.postgresql.org; Mon, 17 Sep 2018 15:36:09 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g1vZ9-0003cV-2u for pgsql-general@lists.postgresql.org; Mon, 17 Sep 2018 15:36:06 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 1089120D87; Mon, 17 Sep 2018 11:35:57 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Mon, 17 Sep 2018 11:35:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc: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=S9+1HVrFIaaKPS7tciUkqN+OcYLpH tOxxnpVPsIUXuQ=; b=De7fgl+VG6zEoeaMQUiIHXmlVK0J0FPvhVOBHBhgEZwS/ YIPeR7/gbrsxwIiYtMofovVBmLk1rRw+W4MW/rRUYl4xrcv9v0L6Iaqldh8iFkGw B0XnJ8McgUeaBmocnJ0YyJoA886ERklWUHXTB8HRbYMa7OK6ZocJGVqjaBGCHWHf C6BWBcK+6uf6jR8EJj45WZfJaEEtprD7HzmG4oBLYflsXzyCrLfbLDmMmmiWdQH0 GgWwNU9EOfQK715/st8IzOQWRI/+9cEmmDm+XO4bC3lTQnc5H6Nz8VK9txrfV+hl KCAvsMvg6WzK3EALzBbrnFTwiaWdpe6ftewD48EOg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=S9+1HV rFIaaKPS7tciUkqN+OcYLpHtOxxnpVPsIUXuQ=; b=bZ7Lq7UfitiCNhFoE783fx YcCeYpS4ipt4a2/mGv17SvKbYmBzICoN5YApWbCznDTW9FZhQXAmJbVu/0/AKV+7 iN+Gc9i/yWwSTzJGxOZfp+QcacTWzkDI0rb8V5xoa8dJl9wji87+qE1bmJCRYgjL /TeBivUJzIDahNKKRRFnZ23duPx/plL58EUE23pBfrfS0sCXuxyrjAdk9yynyIOS eoVi07NtX+UYO9dPOMvm+sHlro1N52lm/u13o1TjU61k1XR32BVZgEWd56ApBC5Q u1yBatmLODwJp7WAOhYoLov7DZZvyih0vAVYjTSsok9n4OhhuXMLDb4a9kRIHPyw == 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 2926AE454E; Mon, 17 Sep 2018 11:35:56 -0400 (EDT) Subject: Re: Pgbouncer and postgres To: Nicola Contu Cc: pgsql-general@lists.postgresql.org References: <7bceb23a-8724-7fd9-bf74-e5dfd557283e@aklaver.com> <6d2f155c-4bd4-14d8-bbf2-506617c9462a@aklaver.com> From: Adrian Klaver Message-ID: <335c53c9-f603-090e-8dbd-8a41cd285e68@aklaver.com> Date: Mon, 17 Sep 2018 08:35:55 -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: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 9/17/18 7:26 AM, Nicola Contu wrote: > [Mon Sep 17 10:24:59.041589 2018] [php7:notice] [pid 63893:tid > 140586929567488] [client 10.160.41.3:51764 ] > PHP WARNING: pg_connect(): Unable to connect to PostgreSQL server: could > not connect to server: Connection refused\n\tIs the server running on > host "IP_ADDR" and accepting\n\tTCP/IP connections on port > 6543? in /home/cmd3/adodb5/drivers/adodb-postgres64.inc.php on line 727 To me it looks like IP_ADDR is not resolving to a host. In your pgbouncer.ini I see: DB_NAME = host=IP_ADDD port=5432 dbname=DB_NAME auth_user=pgbouncer pool_size=120 but the error is about connecting to port 6543 which is your pgbouncer 'server'. Are you sure your connection string is pointing at the correct thing? > > So basically the same I get when connecting via psql on port 6543 What is the full psql command? > > Il giorno lun 17 set 2018 alle ore 16:23 Adrian Klaver > > ha scritto: > > On 9/17/18 7:19 AM, Nicola Contu wrote: > > I'm not aware of any update installed. There were like 600+ > updates in fact. > > > > These are the logs when connecting via telnet : > > How about those from when Apache tries to connect and pgbouncer crashes? > > > Connection closed by foreign host. > > > -- > Adrian Klaver > adrian.klaver@aklaver.com > -- Adrian Klaver adrian.klaver@aklaver.com