pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Nicola Contu <nicola.contu@gmail.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Pgbouncer and postgres
Date: Mon, 17 Sep 2018 08:46:03 -0700
Message-ID: <76637bc1-65c0-8a73-743e-e5a2d40265f1@aklaver.com> (raw)
In-Reply-To: <CAMTZZh1tngZdobW0x09AkgEjdBVtq4fGgoRTW852kg4Ja_OFgw@mail.gmail.com>
References: <CAMTZZh3r06EkwdL6W58i3ODSohZV__Rf3uBktXLfKOhxPuU8oA@mail.gmail.com>
	<7bceb23a-8724-7fd9-bf74-e5dfd557283e@aklaver.com>
	<CAMTZZh1gzKiwDuZg9mmhMsrCZPJjN-fEtDpwcOtWzw09=cys4w@mail.gmail.com>
	<6d2f155c-4bd4-14d8-bbf2-506617c9462a@aklaver.com>
	<CAMTZZh3AxZTJAPN5_7o3+d+wRfS_pC-B5a+AJyopdfObH18-4A@mail.gmail.com>
	<baeeaf48-98b5-c85a-3bc5-4e20c2f3f08b@aklaver.com>
	<CAMTZZh1GmPPCK-QgctYtgUn0xWOtseb8jD-DeiO=mQtDJ9Tbyg@mail.gmail.com>
	<335c53c9-f603-090e-8dbd-8a41cd285e68@aklaver.com>
	<CAMTZZh1tngZdobW0x09AkgEjdBVtq4fGgoRTW852kg4Ja_OFgw@mail.gmail.com>

On 9/17/18 8:39 AM, Nicola Contu wrote:
Please reply to list also.
Ccing list.

> No wait, IP_ADDR has been modified by me, but there is the IP of the 
> machine 10.151.x.

To be clear in your posts you are replacing the actual IP with IP_ADDR, 
correct?

> 
> 
> Here is the psql command .
> 
> [root@cmd-dev1 ~]# psql -U ncontu -p 6543 cmd3dev
> psql: server closed the connection unexpectedly
> This probably means the server terminated abnormally
> before or while processing the request.

So what does the pgbouncer log show when you do above?

> 
> 
> 
> 
> Il giorno lun 17 set 2018 alle ore 17:35 Adrian Klaver 
> <adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>> ha scritto:
> 
>     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
>     <http://10.160.41.3:51764; <http://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 &quot;IP_ADDR&quot; 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
>      > <adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>
>     <mailto:adrian.klaver@aklaver.com
>     <mailto:adrian.klaver@aklaver.com>>> 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 <mailto:adrian.klaver@aklaver.com>
>     <mailto:adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>>
>      >
> 
> 
>     -- 
>     Adrian Klaver
>     adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com




view thread (22+ messages)  latest in thread

Message-ID: <76637bc1-65c0-8a73-743e-e5a2d40265f1@aklaver.com>
Permalink:  ../76637bc1-65c0-8a73-743e-e5a2d40265f1@aklaver.com/
Also on:    postgresql.org/message-id/76637bc1-65c0-8a73-743e-e5a2d40265f1@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, nicola.contu@gmail.com
  Subject: Re: Pgbouncer and postgres
  In-Reply-To: <76637bc1-65c0-8a73-743e-e5a2d40265f1@aklaver.com>
  References: <CAMTZZh3r06EkwdL6W58i3ODSohZV__Rf3uBktXLfKOhxPuU8oA@mail.gmail.com> <7bceb23a-8724-7fd9-bf74-e5dfd557283e@aklaver.com> <CAMTZZh1gzKiwDuZg9mmhMsrCZPJjN-fEtDpwcOtWzw09=cys4w@mail.gmail.com> <6d2f155c-4bd4-14d8-bbf2-506617c9462a@aklaver.com> <CAMTZZh3AxZTJAPN5_7o3+d+wRfS_pC-B5a+AJyopdfObH18-4A@mail.gmail.com> <baeeaf48-98b5-c85a-3bc5-4e20c2f3f08b@aklaver.com> <CAMTZZh1GmPPCK-QgctYtgUn0xWOtseb8jD-DeiO=mQtDJ9Tbyg@mail.gmail.com> <335c53c9-f603-090e-8dbd-8a41cd285e68@aklaver.com> <CAMTZZh1tngZdobW0x09AkgEjdBVtq4fGgoRTW852kg4Ja_OFgw@mail.gmail.com> <76637bc1-65c0-8a73-743e-e5a2d40265f1@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox