Sachin Srivastava
2009-06-15 11:16:41 UTC
My server has auth type md5 and i set auth_type to md5 in the pgbouncer.ini.
I have set the .pgpass and /etc/userlist.txt file appropriately.
When i fire this command:
/
bin/psql -U postgres postgres -p 6432
psql: ERROR: password authentication failed for user "postgres"
/
This i get in the logs
/
bash-3.2$ /opt/PgBouncer/bin/pgbouncer -v /opt/PgBouncer/share/pgbouncer.ini
2009-06-15 16:40:26.605 2906 DEBUG postgres: host=127.0.0.1/127.0.0.1
2009-06-15 16:40:26.606 2906 LOG File descriptor limit: 1024 (H:1024),
max_client_conn: 100, max fds possible: 130
2009-06-15 16:40:26.607 2906 LOG listening on *:6432
2009-06-15 16:40:26.607 2906 LOG listening on unix:/tmp/.s.PGSQL.6432
2009-06-15 16:40:53.895 2906 DEBUG C-0x98d49f0:
(nodb)/(nouser)@unix:6432 P: got connection: unix->unix
2009-06-15 16:40:53.895 2906 LOG C-0x98d49f0:
postgres/postgres at unix:6432 login successful: db=postgres user=postgres
2009-06-15 16:40:53.895 2906 DEBUG finish_client_login: no welcome
message, pause
2009-06-15 16:40:53.896 2906 DEBUG C-0x98d49f0:
postgres/postgres at unix:6432 pause_client
2009-06-15 16:40:53.896 2906 LOG S-0x98f1cf0:
postgres/postgres at 127.0.0.1:5432 new connection to server
2009-06-15 16:40:53.897 2906 DEBUG launch_new_connection: already progress
2009-06-15 16:40:53.897 2906 DEBUG S-0x98f1cf0:
postgres/postgres at 127.0.0.1:5432 S: connect ok
2009-06-15 16:40:53.897 2906 DEBUG launch_new_connection: already progress
2009-06-15 16:40:53.897 2906 DEBUG S-0x98f1cf0:
postgres/postgres at 127.0.0.1:5432 calling login_answer
2009-06-15 16:40:53.897 2906 DEBUG S-0x98f1cf0:
postgres/postgres at 127.0.0.1:5432 S: req md5-crypted psw
2009-06-15 16:40:53.897 2906 DEBUG S-0x98f1cf0:
postgres/postgres at 127.0.0.1:5432 P: send md5 password
2009-06-15 16:40:53.898 2906 DEBUG launch_new_connection: already progress
2009-06-15 16:40:53.899 2906 WARNING server login failed: FATAL password
authentication failed for user "postgres"
2009-06-15 16:40:53.899 2906 LOG C-0x98d49f0:
postgres/postgres at unix:6432 closing because: password authentication
failed for user "postgres" (age=0)
2009-06-15 16:40:53.899 2906 LOG C-0x98d49f0:
postgres/postgres at unix:6432 Pooler Error: password authentication failed
for user "postgres"
2009-06-15 16:40:53.900 2906 LOG S-0x98f1cf0:
postgres/postgres at 127.0.0.1:5432 closing because: login failed (age=0)/
Any idea what i am missing?
Thanks for your replies.
I have set the .pgpass and /etc/userlist.txt file appropriately.
When i fire this command:
/
bin/psql -U postgres postgres -p 6432
psql: ERROR: password authentication failed for user "postgres"
/
This i get in the logs
/
bash-3.2$ /opt/PgBouncer/bin/pgbouncer -v /opt/PgBouncer/share/pgbouncer.ini
2009-06-15 16:40:26.605 2906 DEBUG postgres: host=127.0.0.1/127.0.0.1
2009-06-15 16:40:26.606 2906 LOG File descriptor limit: 1024 (H:1024),
max_client_conn: 100, max fds possible: 130
2009-06-15 16:40:26.607 2906 LOG listening on *:6432
2009-06-15 16:40:26.607 2906 LOG listening on unix:/tmp/.s.PGSQL.6432
2009-06-15 16:40:53.895 2906 DEBUG C-0x98d49f0:
(nodb)/(nouser)@unix:6432 P: got connection: unix->unix
2009-06-15 16:40:53.895 2906 LOG C-0x98d49f0:
postgres/postgres at unix:6432 login successful: db=postgres user=postgres
2009-06-15 16:40:53.895 2906 DEBUG finish_client_login: no welcome
message, pause
2009-06-15 16:40:53.896 2906 DEBUG C-0x98d49f0:
postgres/postgres at unix:6432 pause_client
2009-06-15 16:40:53.896 2906 LOG S-0x98f1cf0:
postgres/postgres at 127.0.0.1:5432 new connection to server
2009-06-15 16:40:53.897 2906 DEBUG launch_new_connection: already progress
2009-06-15 16:40:53.897 2906 DEBUG S-0x98f1cf0:
postgres/postgres at 127.0.0.1:5432 S: connect ok
2009-06-15 16:40:53.897 2906 DEBUG launch_new_connection: already progress
2009-06-15 16:40:53.897 2906 DEBUG S-0x98f1cf0:
postgres/postgres at 127.0.0.1:5432 calling login_answer
2009-06-15 16:40:53.897 2906 DEBUG S-0x98f1cf0:
postgres/postgres at 127.0.0.1:5432 S: req md5-crypted psw
2009-06-15 16:40:53.897 2906 DEBUG S-0x98f1cf0:
postgres/postgres at 127.0.0.1:5432 P: send md5 password
2009-06-15 16:40:53.898 2906 DEBUG launch_new_connection: already progress
2009-06-15 16:40:53.899 2906 WARNING server login failed: FATAL password
authentication failed for user "postgres"
2009-06-15 16:40:53.899 2906 LOG C-0x98d49f0:
postgres/postgres at unix:6432 closing because: password authentication
failed for user "postgres" (age=0)
2009-06-15 16:40:53.899 2906 LOG C-0x98d49f0:
postgres/postgres at unix:6432 Pooler Error: password authentication failed
for user "postgres"
2009-06-15 16:40:53.900 2906 LOG S-0x98f1cf0:
postgres/postgres at 127.0.0.1:5432 closing because: login failed (age=0)/
Any idea what i am missing?
Thanks for your replies.
--
Regards,
Sachin Srivastava
EnterpriseDB, India
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pgfoundry.org/pipermail/pgbouncer-general/attachments/20090615/0573008e/attachment.html>
Regards,
Sachin Srivastava
EnterpriseDB, India
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pgfoundry.org/pipermail/pgbouncer-general/attachments/20090615/0573008e/attachment.html>