Re: Installed. Now what?

From: Phoenix Kiula <phoenix(dot)kiula(at)gmail(dot)com>
To: Amitabh Kant <amitabhkant(at)gmail(dot)com>
Cc: Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org, pgbouncer-general(at)pgfoundry(dot)org
Subject: Re: Installed. Now what?
Date: 2011-11-20 03:15:31
Message-ID: CAFWfU=spwM2t4=EPKrCedm7KPJVWZH-6jG=DM9db8b8=h3h-tg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sun, Nov 20, 2011 at 10:37 AM, Phoenix Kiula <phoenix(dot)kiula(at)gmail(dot)com> wrote:
> On Sun, Nov 20, 2011 at 10:33 AM, Amitabh Kant <amitabhkant(at)gmail(dot)com> wrote:
>>
>> I am assuming the difference in the port numbers between your config file
>> and php code is a typing error.
>> Does the auth file (/var/lib/pgsql/pgbouncer.txt) contain valid login
>> credentials to your database? If I remember correctly, it should have the
>> username and password to your database.
>
>
> Port numbers are correct.
>
> Auth_file has text in this format:
>
>
> "username" "password in plain text"
> "username2" "password2 in plain text"
> ..
>
> Is this incorrect?

I just did some testing.

If the password is wrong, then it shows me the "authentication failed"
message right in the terminal window, immediately.

If the password is correct (plain text or md5 of that plain text --
both have similar requests), it shows me the second error "no working
connection" below.

[host] > psql -h 127.0.0.1 MYDB -E "MYDB_MYDB" -p 6543psql: ERROR:
password authentication failed for user "MYDB_MYDB"[coco] ~ > [coco] ~
> pico /var/lib/pgsql/pgbouncer.txt

[host] ~ > psql -h 127.0.0.1 MYDB -E "MYDB_MYDB" -p 6543
psql: ERROR: no working server connection

But in the second case, the error in the pgbouncer log is the same --
authentication is failing.

Why this inconsistent and utterly inane behavior from pgbouncer? Why
can't we see transparently what the error is?

Nowhere in the docs does it clearly specify with an example how the
auth_file format should be.

Any pointers please? I'm fresh out of google keywords to search for,
two days later.

Thank you!

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Phoenix Kiula 2011-11-20 03:21:22 Re: Installed. Now what?
Previous Message Adrian Klaver 2011-11-20 02:51:59 Re: Installed. Now what?