From: Tom Lane <tgl@sss.pgh.pa.us>
To: Adrian Klaver <adrian.klaver@gmail.com>
Cc: Jayadevan M <maymala.jayadevan@gmail.com>
Cc: dinesh kumar <dineshkumar02@gmail.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: authentication failure
Date: Fri, 03 Jan 2014 10:07:15 -0500
Message-ID: <9602.1388761635@sss.pgh.pa.us> (raw)
In-Reply-To: <52C6C8EE.7060207@gmail.com>
References: <CAFS1N4jxhPcR7ae70QSDTW2EhhfZE9H88D62f9kPswOF8ok_ZA@mail.gmail.com>
<CADfwSsAP6RbdRwPQRXK7oZSV8LKKrNGYJQU-Bnyt+TppWq2r-g@mail.gmail.com>
<CAFS1N4h_0cdgQQ7pMT0QUyq1VD_D45V05jESctGrp722=ExqbQ@mail.gmail.com>
<CALnrH7pgBvr-a2-BX1QRkwJswMxdZ6W8JL5r9XWuBBnsCfHSfw@mail.gmail.com>
<CAFS1N4j5B7tR2fyjEMotG55EAYCdzkfjbUzU+YtYiFb7xmt9AQ@mail.gmail.com>
<52C6C8EE.7060207@gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>
Adrian Klaver <adrian.klaver@gmail.com> writes:
> On 01/03/2014 04:54 AM, Jayadevan M wrote:
>> Yes. All the basic checks I have done. I upgraded from CENTOs 6.4 to
>> 6.5. Another interesting thing - if I su - postgres and then try, it
>> works. So it has something to do with the chrt user (root) settings.
> It might be helpful to detail what are the 'basic' checks you did? Also
> whenever I see unexplained behavior of this nature on Linux I suspect
> SELinux. Is it enabled?
I'm wondering if there are two Postgres instances on the machine,
and the apparent inconsistency comes from connecting to one or the other.
A different line of thought is that connections from inside and outside
the chroot are getting different treatment in pg_hba.conf.
In any case, debugging this from the client's perspective is almost
impossible, because the server intentionally doesn't give a lot of
detail about why authentication failed. You need to be looking at
the postmaster log, possibly with log_min_messages cranked up.
regards, tom lane
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
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: tgl@sss.pgh.pa.us, adrian.klaver@gmail.com, maymala.jayadevan@gmail.com, dineshkumar02@gmail.com
Subject: Re: authentication failure
In-Reply-To: <9602.1388761635@sss.pgh.pa.us>
References: <CAFS1N4jxhPcR7ae70QSDTW2EhhfZE9H88D62f9kPswOF8ok_ZA@mail.gmail.com> <CADfwSsAP6RbdRwPQRXK7oZSV8LKKrNGYJQU-Bnyt+TppWq2r-g@mail.gmail.com> <CAFS1N4h_0cdgQQ7pMT0QUyq1VD_D45V05jESctGrp722=ExqbQ@mail.gmail.com> <CALnrH7pgBvr-a2-BX1QRkwJswMxdZ6W8JL5r9XWuBBnsCfHSfw@mail.gmail.com> <CAFS1N4j5B7tR2fyjEMotG55EAYCdzkfjbUzU+YtYiFb7xmt9AQ@mail.gmail.com> <52C6C8EE.7060207@gmail.com> <9602.1388761635@sss.pgh.pa.us>
* 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