[pgpool-general-jp: 232] pgpool-II 1.2 でパスワード認証に失敗

SHINDO shindo @ atsystem.jp
2007年 8月 14日 (火) 23:51:52 JST


進藤と申します。お世話になります。

2台のサーバーで PostgreSQL-8.2.4 を動かし、その内の一台で pgpool-II-1.2 
をリプリケーション動作させて試験しています。
pgpool-II側からもう一台のサーバーには SSH でポートフォワードしています。
パスワード認証以外に異常は無いのですが、パスワード認証を設定すると接続で
きなくなります。
以下に少し長くなりますがログや設定ファイルなどを書かせていただきます。
よろしくお願いします。


各サーバーの pg_hba.conf 設定
-- -- -- -- -- -- --
local   emp2_at2    emp2_at2                          md5
host    emp2_at2    emp2_at2    127.0.0.1/32          md5
local   emp2_at2    all                               reject
host    emp2_at2    all         127.0.0.1/32          reject
-- -- -- -- -- -- --

個々のPostgreSQLに直接接続すると
-- -- -- -- -- -- --
[postgres @ s1 pgsql]$ psql -h localhost -p 5434 -W -U emp2_at2 emp2_at2
Password for user emp2_at2: 
Welcome to psql 8.2.4, the PostgreSQL interactive terminal.
-- -- -- -- -- -- --
-- -- -- -- -- -- --
[postgres @ s1 pgsql]$ psql -h localhost -p 5433 -W -U emp2_at2 emp2_at2
Password for user emp2_at2: 
Welcome to psql 8.2.4, the PostgreSQL interactive terminal.
-- -- -- -- -- -- --
この様に正常に認証に成功して接続できます。

しかし、pgpool-II から接続すると認証に失敗します。
-- -- -- -- -- -- --
[postgres @ s1 pgsql]$ psql -h localhost -p 5432 -W -U emp2_at2 emp2_at2
Password for user emp2_at2: 
psql: server closed the connection unexpectedly
        This probably means the server terminated abnormally
        before or while processing the request.
-- -- -- -- -- -- --

この時の pgpool-IIのログ
-- -- -- -- -- -- --
2007-08-14 23:31:20 DEBUG: pid 18502: I am 18502 accept fd 5
2007-08-14 23:31:20 DEBUG: pid 18502: Protocol Major: 3 Minor: 0 
database: emp2_at2 user: emp2_at2
2007-08-14 23:31:20 DEBUG: pid 18502: new_connection: connecting 0 
backend
2007-08-14 23:31:20 DEBUG: pid 18502: new_connection: connecting 1 
backend
2007-08-14 23:31:20 DEBUG: pid 18502: pool_read_message_length: slot: 0 
length: 12
2007-08-14 23:31:20 DEBUG: pid 18502: pool_read_message_length: slot: 1 
length: 12
2007-08-14 23:31:20 DEBUG: pid 18502: trying md5 authentication
2007-08-14 23:31:20 DEBUG: pid 18502: DB node id: 0 salt: 9a718984
2007-08-14 23:31:20 DEBUG: pid 18502: trying md5 authentication
2007-08-14 23:31:20 DEBUG: pid 18502: DB node id: 1 salt: 55940cf
2007-08-14 23:31:20 DEBUG: pid 18502: do_md5: backend does not return R 
while processing MD5 authentication E
2007-08-14 23:31:20 ERROR: pid 18502: do_md5failed in slot 1
-- -- -- -- -- -- --

又、PostgresSQLのみを動かしているサーバーの PostgreSQLのログには
-- -- -- -- -- -- --
FATAL:  password authentication failed for user "emp2_at2"
-- -- -- -- -- -- --
と記録されます。

pgpool.conf
-- -- -- -- -- -- --
listen_addresses = 'localhost'
port = 5432
pcp_port = 9898
socket_dir = '/tmp'
pcp_socket_dir = '/tmp'
backend_socket_dir = '/tmp'
pcp_timeout = 10
num_init_children = 32
max_pool = 4
child_life_time = 300
connection_life_time = 0
child_max_connections = 0
logdir = '/var/log/pgsql'
replication_mode = true
replication_strict = true
replication_timeout = 5000
load_balance_mode = true
replication_stop_on_mismatch = false
replicate_select = false
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 = 0
health_check_user = 'postgres'
insert_lock = false
ignore_leading_white_space = false
log_statement = false
log_connections = false
log_hostname = false
parallel_mode = false
enable_query_cache = false
pgpool2_hostname = ''
system_db_hostname = 'localhost'
system_db_port = 5432
system_db_dbname = 'pgpool'
system_db_schema = 'pgpool_catalog'
system_db_user = 'pgpool'
system_db_password = ''
backend_hostname0 = 'localhost'
backend_port0 = 5433
backend_weight0 = 1
backend_hostname1 = 'localhost'
backend_port1 = 5434
backend_weight1 = 1
enable_pool_hba = false
-- -- -- -- -- -- --

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
 進藤寿則@アットシステム   _/_/
 e-mail shindo@atsystem.jp     _/



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