From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Nicola Contu <nicola.contu@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Pgbouncer and postgres
Date: Mon, 17 Sep 2018 08:35:55 -0700
Message-ID: <335c53c9-f603-090e-8dbd-8a41cd285e68@aklaver.com> (raw)
In-Reply-To: <CAMTZZh1GmPPCK-QgctYtgUn0xWOtseb8jD-DeiO=mQtDJ9Tbyg@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>
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;]
> 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
> <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>
>
--
Adrian Klaver
adrian.klaver@aklaver.com
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: <335c53c9-f603-090e-8dbd-8a41cd285e68@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>
* 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