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

通過查找網絡,終於定位到了問題,是 health_check_password 沒有設置,設置了相應密碼後,錯誤消除。

另外:查看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 requesthtml

 

在鏈接到主機的9999 端口時,報 md5 模式在 master slave, replication 模式不支持,請修改pg_hba.conf的錯誤。node

第一步:在pgpool.conf 裏 enable_pool_hba =on, 且密碼文件 pool_passwd ='pool_passwd'網絡

第二,pool_passwd 應該用以下的格式(注意,密碼裏以md5開頭,且用戶是postgres)post

postgers:md58f2fae75e1816d3d19e648e1bea21140

具體可參閱:  .net

    http://www.pgpool.net/pipermail/pgpool-general/2013-May/001773.html3d

節選關鍵段落:
[root at n3170 etc]# pg_md5 -p -m -u postgers password:

[root at n3170 etc]# more /usr/local/etc/pool_passwd

postgers:md58f2fae75e1816d3d19e648e1bea21140
相關文章
相關標籤/搜索