pgpooladmin 3.5.2 Error code e1014 could not read .pcppass file

陌路散爱 提交于 2019-12-22 07:51:54

问题


That the error looks like

The right's are

Anyone there to solve the problem?


回答1:


The page in the link (http://www.pgpool.net/docs/latest/pgpool-en.html#pcp_comand_password) in the posted solution is no longer present.

I was able to resolve this by copying the .pcppass file from the postgres user's directory to /var/www/ and changing it's owner to the apache system user.

sudo cp /home/postgres/.pcppass /var/www/

sudo chown apache /var/www/.pcppass

sudo chmod 600 /var/www/.pcppass



回答2:


.pcppass file is missing from the specified directory.

To solve the Problem you have todo this:

http://www.pgpool.net/docs/latest/pgpool-en.html#pcp_comand_password

Make sure the .pcppass file has permission 0600. You may also need to change its owner/group to apache/www-data user depending on your system.




回答3:


всем привет)

  1. check and define home folder /var/www for www-data(or apache) in /etc/passwd

www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin

  1. check owner and rights

chown www-data /var/www/.pcppass

chmod 0600 /var/www/.pcppass

  1. check .pcppass format

host:port:user:password in plain text

Each of the first three fields can be a literal value, or *, which matches anything



来源:https://stackoverflow.com/questions/40805907/pgpooladmin-3-5-2-error-code-e1014-could-not-read-pcppass-file

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!