[pgsql-jp: 36757] Re: レプリケーションモードでパスワード認証が使えない?

maeda @ motion.ne.jp maeda @ motion.ne.jp
2006年 2月 22日 (水) 19:13:39 JST


石井様

ご指摘ありがとうございます。
都合により24日まで確認ができませんので
確認後、ご報告させていただきます。
取り急ぎお礼のみにて失礼致します。

前田

> 石井です.
> 
> > 前田と申します。
> > 
> > RedHat9のマシン2台の内1台にpgpool-3.0.0を、
> > 2台にpostgresql-8.1.2をインストールして
> > DBをレプリケーションさせようとしています。
> > 
> > pgpool起動後、postgresも各々起動させましたが
> > エラーが出て接続できません。
> > まず、パスワードを聞かれるのでパスワードを打つのですが
> > その後下記メッセージが表示されます。
> > 
> > **********************
> > $ psql -p 9999 sampledb
> > Password:
> > psql: server closed the connection unexpectedly
> >         This probably means the server terminated abnormally
> >         before or while processing the request.
> > **********************
> > 
> > pgpoolのログにも下記エラーが出ています。
> > **********************
> > 2006-02-21 18:57:02 ERROR: pid 3667: do_clear_text_password: failed to read password packet "p"
> > 2006-02-21 18:57:02 ERROR: pid 3667: pool_do_auth: backend does not return authenticaton ok
> > 2006-02-21 18:57:08 ERROR: pid 3667: pool_do_auth: backend does not return authenticaton ok
> > **********************
> > 
> > 過去ログで似たような報告がありましたが、そのときはパッチ適用で解決されて
> > いるようです。今回も同様な現象なのでしょうか?
> > ご教示お願い致します。
> 
> 上記エラー自体は正常動作です.psql(libpq)は最初パスワードなしの接続を
> 試み,失敗してから再度認証ありのプロトコルで接続にいくためです.
> 
> 何か別の原因でちゃんと動いていないような気がします.debug option付きで
> pgpoolを起動したときのログを見せてもらえませんか?
> 
> 参考までに当方(pgpool 3.0.1+PostgreSQL 8.1.3)でのデバッグ出力をお見せ
> します.
> 
> 2006-02-22 08:14:23 DEBUG: pid 9175: I am 9175 accept fd 6
> 2006-02-22 08:14:23 DEBUG: pid 9175: Protocol Major: 3 Minor: 0 database: test user: foo1
> 2006-02-22 08:14:23 DEBUG: pid 9175: connecting postmaster Unix domain socket: /tmp/.s.PGSQL.5432
> 2006-02-22 08:14:23 DEBUG: pid 9175: connected to postmaster Unix domain socket: /tmp/.s.PGSQL.5432 fd: 13
> 2006-02-22 08:14:23 DEBUG: pid 9175: connecting postmaster Unix domain socket: /tmp/.s.PGSQL.5433
> 2006-02-22 08:14:23 DEBUG: pid 9175: connected to postmaster Unix domain socket: /tmp/.s.PGSQL.5433 fd: 14
> 2006-02-22 08:14:23 DEBUG: pid 9175: pool_read_message_length: lenghth: 8
> 2006-02-22 08:14:23 DEBUG: pid 9175: trying clear text password authentication
> 2006-02-22 08:14:23 ERROR: pid 9175: do_clear_text_password: failed to read password packet "p"
> 2006-02-22 08:14:23 ERROR: pid 9175: pool_do_auth: backend does not return authenticaton ok
> 2006-02-22 08:14:24 DEBUG: pid 9175: I am 9175 accept fd 6
> 2006-02-22 08:14:24 DEBUG: pid 9175: Protocol Major: 3 Minor: 0 database: test user: foo1
> 2006-02-22 08:14:24 DEBUG: pid 9175: connecting postmaster Unix domain socket: /tmp/.s.PGSQL.5432
> 2006-02-22 08:14:24 DEBUG: pid 9175: connected to postmaster Unix domain socket: /tmp/.s.PGSQL.5432 fd: 13
> 2006-02-22 08:14:24 DEBUG: pid 9175: connecting postmaster Unix domain socket: /tmp/.s.PGSQL.5433
> 2006-02-22 08:14:24 DEBUG: pid 9175: connected to postmaster Unix domain socket: /tmp/.s.PGSQL.5433 fd: 14
> 2006-02-22 08:14:24 DEBUG: pid 9175: pool_read_message_length: lenghth: 8
> 2006-02-22 08:14:24 DEBUG: pid 9175: trying clear text password authentication
> 2006-02-22 08:14:24 DEBUG: pid 9175: pool_read_message_length2: master lenghth: 27
> 2006-02-22 08:14:24 DEBUG: pid 9175: name: client_encoding value: EUC_JP
> 2006-02-22 08:14:24 DEBUG: pid 9175: secondary name: client_encoding value: EUC_JP
> 2006-02-22 08:14:24 DEBUG: pid 9175: pool_read_message_length2: master lenghth: 23
> 2006-02-22 08:14:24 DEBUG: pid 9175: name: DateStyle value: ISO, MDY
> 2006-02-22 08:14:24 DEBUG: pid 9175: secondary name: DateStyle value: ISO, MDY
> [以下略]
> --
> Tatsuo Ishii
> SRA OSS, Inc. Japan




pgsql-jp メーリングリストの案内