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 request
在连接到主机的9999 端口时,报 md5 模式在 master slave, replication 模式不支持,请修改pg_hba.conf的错误。
第一步:在pgpool.conf 里 enable_pool_hba =on, 且密码文件 pool_passwd ='pool_passwd'
第二,pool_passwd 应该用如下的格式(注意,密码里以md5开头,且用户是postgres)
postgers:md58f2fae75e1816d3d19e648e1bea21140
具体可参阅:
http://www.pgpool.net/pipermail/pgpool-general/2013-May/001773.html
节选关键段落:
[root at n3170 etc]# pg_md5 -p -m -u postgers
password: [root at n3170 etc]# more /usr/local/etc/pool_passwd postgers:md58f2fae75e1816d3d19e648e1bea21140
PGPool 配置错误定位 s_do_auth: expecting R got E的更多相关文章
- Shadow Zhang  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_ ...
 - Android开发中出现cannot be resolved to a variable错误,也就是R文件不能生成。
		
最近开始学过习Android开发,配置完成开发环境后,在创建第一个Android项目就出现了cannot be resolved to a variable错误,也就是R文件不能生成的问题. 以下是从 ...
 - kerberos 配置错误记录
		
服务端错误记录: 1.服务端在创建数据库的时候报如下错误: # kdb5_util -s -r HADOOP.HOME 错误提示:kdb5_util: Improper format of Kerbe ...
 - Druid连接池参数maxWait配置错误引发的问题
		
Druid连接池参数maxWait配置错误引发的问题 1. 背景 数据库服务器(服务部署在客户内网环境)的运行一段时间后,网卡出现了问题,导致所有服务都连接不上数据库,客户把网络恢复之后,反馈有个服务 ...
 - Tomcat启动报错org.springframework.web.context.ContextLoaderListener类配置错误——SHH框架
		
SHH框架工程,Tomcat启动报错org.springframework.web.context.ContextLoaderListener类配置错误 1.查看配置文件web.xml中是否配置.or ...
 - Linux在fstab中因配置错误导致服务器主机无法重启的问题应该如何解决
		
fstab中配置错误导致系统无法启动的恢复方案 1制造错误的案例发生,在/etc/fstab中配置如下内容 结尾的倒数第一个为1表示进行磁盘检查,为0表示不进行磁盘检查,倒数第二个为0表示不备份,为1 ...
 - log4Net不能成功生成日志问题(关于配置错误)
		
log4Net不能成功生成日志问题(关于配置错误) 调试发现问题原因在于 Log4Net IsInfoEnabled 一直为 false,返回的对象中所有 IsXXX 一直为false,这个问题的原 ...
 - C# 配置错误定义了重复的“system.web.extensions/scripting/scriptResourceHandler”节
		
一项目直接在VS里面,调试就可以正常运行.但部署到IIS下就提示,配置错误定义了重复的“system.web.extensions/scripting/scriptResourceHandler”节 ...
 - iis7.5错误 配置错误
		
iis7.5详细错误 HTTP 错误 500.19 - Internal Server Error无法访问请求的页面,因为该页的相关配置数据无效. 详细错误信息模块 IIS Web Core 通知 ...
 
随机推荐
- Redis Cluster搭建方法简介22211111
			
Redis Cluster搭建方法简介 (2013-05-29 17:08:57) 转载▼ Redis Cluster即Redis的分布式版本,将是Redis继支持Lua脚本之后的又一重磅 ...
 - oracle常用脚本
			
自动启动oracle sqlplus -S sys/123456 as sysdba <<EOF startup quit EOF lsnrctl start lsnrctl reload
 - ACM/ICPC 之 网络流-拆点构图(POJ2391)
			
需要直接到达,因此源点经过三条边后必须要达到汇点,但为了保证网络流的正确性(路径可反悔),因此不可限制层次网络的最高层次为3,最好的方法既是让所有点拆分成两个点,一个点从汇点进入,一个点通向汇点,任意 ...
 - git 的使用
			
在github上注册一个账号,然后可以将自己写的小项目保存到里面,那么我们怎么将代码git到github上呢? 1. 在github上创建一个远程库learngit(*这个名字可以随便起) 2. 然后 ...
 - .deb包的安装方法
			
deb是Debian linux的安装格式,跟redhat的rpm非常相似,最基本的安装命令是: dpkg -i file.deb dpkg是Debian Package的简写,是为Debian专门开 ...
 - linux操作oracle
			
1.su - oracle 2.sqlplus / as sysdba; 1.登录linux,以oracle用户登录(如果是root用户登录的,登录后用 su - oracle命令切换成oracle用 ...
 - OpenGL 多视图与截屏
			
最近看红宝书学习 OpenGL 一段时间了,写了简单的 demo 程序温习一下知识. 主要是 使用 glScissor 多视图显示画面和使用 glReadPixels 给画面截屏,使用显示列表(dis ...
 - Android想服务器传图片,透过流的方式。还有读取服务器图片(文件),也通过流的方式。
			
/** * Created by Administrator on 2016/7/19. */ import android.util.Log; import com.gtercn.asPolice. ...
 - appium依赖pom文件注解
			
<!-- appium部分 依赖--> <dependency> <groupId>io.appium</groupId> <artifactId ...
 - asp.net c# 网上搜集面试题目大全(附答案)
			
1.String str=new String("a")和String str = "a"有什么区别? String str = "a"; ...