[pgpool-general: 1709] Re: pgpool - issue with md5

Jayadevan M jayadevan.maymala at ibsplc.com
Thu May 9 12:43:45 JST 2013


Hi,
I think it is not the same case. To avoid situations like that, I did not provide any path (let it take everything from default locations). I was running in -n option when I got this error.  A couple of observations -

1)      If I give the name of a non-existing file in pool_passwd, pgpool creates that file and continues running (a 0 byte file). The authentication fails.

2)      If I give the absolute path and name ('/usr/local/etc/pool_passwd'), and run pgpool with -n option, it prefixes more paths to the file name and errors -

Value in file - pool_passwd = '/usr/local/etc/xyz'

Error - pool_init_pool_passwd: couldn't open /usr/local/etc//usr/local/etc/xyz.

If I execute it without the -n option, it picks up the file.
Regards,
Jayadevan
From: David Kerr [mailto:web at mr-paradox.net]
Sent: Thursday, May 09, 2013 8:33 AM
To: Jayadevan M
Cc: 'Tatsuo Ishii'; pgpool-general at pgpool.net
Subject: Re: [pgpool-general: 1706] Re: pgpool - issue with md5

sounds smilier to the problem i had the solution was:
http://www.pgpool.net/mediawiki/index.php/FAQ
I cannot use MD5 authentication if start pgpool without -n option. Why?
You must have given -f option as a relative path: i.e. "-f pgpool.conf", rather than full path: i.e. "-f /usr/local/etc/pgpool.conf". Pgpool tries to locate the full path of pool_passwd (which is neccesary for MD5 auth) from pgpool.conf path. This is fine with -n option. However if pgpool starts without -n option, it changes current directory to "/", which is neccessary processs for daemonizing. As a result, pgpool tries to open "/pool_passwd", which will not successs.



On May 8, 2013, at 8:00 PM, Jayadevan M <jayadevan.maymala at ibsplc.com<mailto:jayadevan.maymala at ibsplc.com>> wrote:


Hi,
Though the password I am supplying is the same and I have not made any changes to the pgpol password, the values in the error message change. Is that how it should be?

2013-05-08 18:23:48 DEBUG: pid 3301: password does not match: frontend:md57a15dc0847a23d5def2b5c7941d8460d pgpool:md5f51e3de26a7f16dbc7ff99b582e882ab
2013-05-08 18:23:51 DEBUG: pid 3317: password does not match: frontend:md54d973dd3805852de6ef2a9d15a46346d pgpool:md554da49b85b7f3f2ebb9bc676182f9d69

Regards,
Jayadevan
-----Original Message-----
From: Tatsuo Ishii [mailto:ishii at postgresql.org<http://postgresql.org>]
Sent: Thursday, May 09, 2013 4:29 AM
To: Jayadevan M
Cc: pgpool-general at pgpool.net<mailto:pgpool-general at pgpool.net>
Subject: Re: pgpool - issue with md5


Hi,
I have been trying to get md5 authentication work with pgpool and keep running into issues (pgpool not picking the right pool_passwd file and so on). Right now, all that seems to be solved, but I am getting a "psql: FATAL:  password authentication failed for user "hbsi"" error. I am attaching the debug output from pgpool. It looks like the password from the frontend and the one in pgpool config keeps changing.
An error

It seems the cause of the error is apparent: you supplied wrong password.

2013-05-08 18:23:51 DEBUG: pid 3317: password does not match: frontend:md54d973dd3805852de6ef2a9d15a46346d pgpool:md554da49b85b7f3f2ebb9bc676182f9d69

Are you sure to give pgpool same password which is used when you created pool_passwd entry?


read_password_packet_password: failed to read password packet "p"
is also present.

This is normal. psql tries to connect to pgpool with no auth and pgpool rejects it with the message, then psql retry with md5 auth.
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese: http://www.sraoss.co.jp


DISCLAIMER: "The information in this e-mail and any attachment is intended only for the person to whom it is addressed and may contain confidential and/or privileged material. If you have received this e-mail in error, kindly contact the sender and destroy all copies of the original communication. IBS makes no warranty, express or implied, nor guarantees the accuracy, adequacy or completeness of the information contained in this email or any attachment and is not liable for any errors, defects, omissions, viruses or for resultant loss or damage, if any, direct or indirect."
_______________________________________________
pgpool-general mailing list
pgpool-general at pgpool.net<mailto:pgpool-general at pgpool.net>
http://www.pgpool.net/mailman/listinfo/pgpool-general



DISCLAIMER: "The information in this e-mail and any attachment is intended only for the person to whom it is addressed and may contain confidential and/or privileged material. If you have received this e-mail in error, kindly contact the sender and destroy all copies of the original communication. IBS makes no warranty, express or implied, nor guarantees the accuracy, adequacy or completeness of the information contained in this email or any attachment and is not liable for any errors, defects, omissions, viruses or for resultant loss or damage, if any, direct or indirect."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.sraoss.jp/pipermail/pgpool-general/attachments/20130509/98b9356e/attachment-0001.html>


More information about the pgpool-general mailing list