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

maeda @ motion.ne.jp maeda @ motion.ne.jp
2006年 2月 21日 (火) 20:01:33 JST


前田と申します。

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
**********************

過去ログで似たような報告がありましたが、そのときはパッチ適用で解決されて
いるようです。今回も同様な現象なのでしょうか?
ご教示お願い致します。

[pgsql-jp: 33530] pgpool-2.0.2のレプリケーションモード時、パスワードが使えない
http://ml.postgresql.jp/pipermail/pgsql-jp/2004-July/017090.html

<postgresql.conf>2台とも
listen_addresses = '*'
port = 5432

<pg_hba.conf>
host    all         all         192.168.99.0/24       password

<pgpool.conf>
listen_addresses = '*'
port = 9999
socket_dir = '/tmp'
backend_host_name = '192.168.99.100'
backend_port = 5432
backend_socket_dir = '/tmp'
secondary_backend_host_name = '192.168.99.101'
secondary_backend_port = 5432
num_init_children = 32
max_pool = 4
child_life_time = 300
connection_life_time = 0
child_max_connections = 0
logdir = '/tmp'
replication_mode = true
replication_strict = true
replication_timeout = 5000
load_balance_mode = true
weight_master = 0.5
weight_secondary = 0.5
replication_stop_on_mismatch = true
reset_query_list = 'ABORT; RESET ALL; SET SESSION AUTHORIZATION DEFAULT'
print_timestamp = true
master_slave_mode = false
connection_cache = true
health_check_timeout = 20
health_check_period = 60
health_check_user = 'nobody'
insert_lock = true
ignore_leading_white_space = true





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