PGPool 配置錯誤定位 s_do_auth: expecting R got E
自從按照教程 http://www.pgpool.net/docs/latest/pgpool-zh_cn.html#hba
配置好PGPool以后,每次啟動 pgpool -c -n -D
都報 s_do_auth: expecting R got E
2011-02-26 23:01:22 ERROR: pid 10365: s_do_auth: expecting R got E 2011-02-26 23:01:22 ERROR: pid 10365: make_persistent_db_connection: s_do_auth failed 2011-02-26 23:01:22 ERROR: pid 10365: check_replication_time_lag: DB node is valid but no persistent connection
經(jīng)過查找網(wǎng)絡(luò),終于定位到了問題,是 health_check_password 沒有設(shè)置,設(shè)置了相應(yīng)密碼后,錯誤消除。
另外:查看pgpool 工作進程命令
ps aux | grep pgpool
root 36664 0.0 0.0 23060 1884 pts/0 T 15:38 0:00 vi pgpool.conf
root 38797 0.0 0.3 97264 6376 pts/0 S+ 18:09 0:00 pgpool -n -D
root 38798 0.0 0.0 95164 1448 pts/0 S+ 18:09 0:00 pgpool: wait for connection request
root 38799 0.0 0.0 95164 1448 pts/0 S+ 18:09 0:00 pgpool: wait for connection request
root 38800 0.0 0.0 95164 1448 pts/0 S+ 18:09 0:00 pgpool: wait for connection request
root 38801 0.0 0.0 95164 1448 pts/0 S+ 18:09 0:00 pgpool: wait for connection request
root 38802 0.0 0.0 95164 1448 pts/0 S+ 18:09 0:00 pgpool: wait for connection request
root 38803 0.0 0.0 95164 1448 pts/0 S+ 18:09 0:00 pgpool: wait for connection request
root 38804 0.0 0.0 95164 1448 pts/0 S+ 18:09 0:00 pgpool: wait for connection request
root 38805 0.0 0.0 95164 1448 pts/0 S+ 18:09 0:00 pgpool: wait for connection request
root 38806 0.0 0.0 95164 1448 pts/0 S+ 18:09 0:00 pgpool: wait for connection request
在連接到主機的9999 端口時,報 md5 模式在 master slave, replication 模式不支持,請修改pg_hba.conf的錯誤。
第一步:在pgpool.conf 里 enable_pool_hba =on, 且密碼文件 pool_passwd ='pool_passwd'
第二,pool_passwd 應(yīng)該用如下的格式(注意,密碼里以md5開頭,且用戶是postgres)
postgers:md58f2fae75e1816d3d19e648e1bea21140
具體可參閱:
http://www.pgpool.net/pipermail/pgpool-general/2013-May/001773.html
節(jié)選關(guān)鍵段落:
[root at n3170 etc]# pg_md5 -p -m -u postgers password:
[root at n3170 etc]# more /usr/local/etc/pool_passwd
postgers:md58f2fae75e1816d3d19e648e1bea21140
posted on 2013-11-05 19:27 Shadow Zhang 閱讀(1249) 評論(0) 收藏 舉報
浙公網(wǎng)安備 33010602011771號