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 1g1w8x-00039w-Nw for pgsql-general@arkaria.postgresql.org; Mon, 17 Sep 2018 16:12:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g1w8w-0006Ou-9L for pgsql-general@arkaria.postgresql.org; Mon, 17 Sep 2018 16:12:58 +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 1g1w8w-0006Ol-1U for pgsql-general@lists.postgresql.org; Mon, 17 Sep 2018 16:12:58 +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 1g1w8s-0004U7-Q1 for pgsql-general@postgresql.org; Mon, 17 Sep 2018 16:12:57 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 78B8420F20; Mon, 17 Sep 2018 12:12:53 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Mon, 17 Sep 2018 12:12:53 -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=MxS/tsYqwIPAsqTSlrmbP3men98BT 61Le20jBaMGnho=; b=BYjBTcUY6esGxD96gIE4qbRuumScEWwKrQcQrOvVIv+IQ KiMOQnsFhLx8TSINX9J/04GCuAydqFCfQGwlXfoca1BuXzdiHo6Hgguvz+W2uSK9 SBKCbT4tSkAqU8AVPI+XqwMysXPQVAxQWEmz6dDK+ze5MNXX0T85ZMJQowyjbAtQ Pbs+djwWUrKjtlMmYdLBN9wgBPSQRZZRqepKYjOA1xek5M0bCtETwcZ4v0D2HU7H hyZnr78+saIb9+0LhBX5flCEmaaXMOLBsVEPx/i45AKV7bGL+8ixIXaPNyJgtIxE KEpXqgLRylHNH8RGyzQLZ0SHyIQmJIrlbZJle8wNA== 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=MxS/ts YqwIPAsqTSlrmbP3men98BT61Le20jBaMGnho=; b=BA8pWf6+gJ3QiAQ3gTKCUb ReKyknGumiE0rKjdJGXIC1zNSTU2exZoQvA5kJT4erkwX/67gXurqpxqQZZk3BYO 8CY7aOokjDIJ3cAljJe20ppPnpn16AXUQ3xJZSpSVBTaohF1/BczxMisf+Jp5QTz VFIUHFAadv6I/BbbLEB6nptXczPPovxP/2VSmxmYx5XGsnb3D8U/bW4dvmRBfeqg 8gbwCOU5/spkroPv/AfxjrTI62cCouYRUiN0/RMpHMq/0aHtfKQyp3wZj+bcroHZ JYpWCfk2UCOrHJxqYzFteHoJypyKwmrennB1oDQCvMuU5Ne1ygacGiJMQuTnptjQ == 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 A3C41E4149; Mon, 17 Sep 2018 12:12:52 -0400 (EDT) Subject: Re: Pgbouncer and postgres To: Nicola Contu Cc: pgsql-general@postgresql.org References: <7bceb23a-8724-7fd9-bf74-e5dfd557283e@aklaver.com> <6d2f155c-4bd4-14d8-bbf2-506617c9462a@aklaver.com> <335c53c9-f603-090e-8dbd-8a41cd285e68@aklaver.com> <76637bc1-65c0-8a73-743e-e5a2d40265f1@aklaver.com> From: Adrian Klaver Message-ID: <0526188d-d6e3-deb2-d049-0314f0441105@aklaver.com> Date: Mon, 17 Sep 2018 09:12:51 -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 9:09 AM, Nicola Contu wrote: > Yes I can connect to port 5432 without any problem. > > The thing is that I am not seeing anything on the postgres log when > connecting to 6543. Pretty sure you won't as 6543 is controlled by pgbouncer and pgbouncer seems to be failing before it gets around to connecting to the actual database. > > Sure, thanks for your help. > I will create an issue there. > > > Il giorno lun 17 set 2018 alle ore 18:07 Adrian Klaver > > ha scritto: > > On 9/17/18 8:59 AM, Nicola Contu wrote: > > Yeah, I replaced the IP of the machine with the word IP_ADDR. > > > > On the pgbouncer log I get this while trying to connect via psql: > > > > 2018-09-17 15:56:49.452 67611 WARNING tune_socket(16) failed: > Operation > > not supported > > 2018-09-17 15:56:49.452 67611 NOISE safe_close(16) = 0 > > 2018-09-17 15:56:49.452 67611 NOISE safe_accept(13) = Resource > > temporarily unavailable > > 2018-09-17 15:56:50.728 67611 NOISE safe_accept(13) = 16 (unix:) > > 2018-09-17 15:56:50.729 67611 NOISE new fd from accept=16 > > 2018-09-17 15:56:50.729 67611 WARNING tune_socket(16) failed: > Operation > > not supported > > 2018-09-17 15:56:50.729 67611 NOISE safe_close(16) = 0 > > 2018-09-17 15:56:50.729 67611 NOISE safe_accept(13) = Resource > > temporarily unavailable > > 2018-09-17 15:56:56.418 67611 NOISE safe_accept(11) = 16 > > (10.151.2.145:58696 > ) > > 2018-09-17 15:56:56.418 67611 NOISE new fd from accept=16 > > 2018-09-17 15:56:56.418 67611 NOISE safe_accept(11) = Resource > > temporarily unavailable > > Can you connect to the actual database running on port 5432? > > Deciphering the above log is beyond my capabilities. I think it is time > to file an issue here: > > https://github.com/pgbouncer/pgbouncer/issues > > > > -- > Adrian Klaver > adrian.klaver@aklaver.com > -- Adrian Klaver adrian.klaver@aklaver.com