[英]I can't run jobs on PgAgent on Postgresql
I installed pgagent on Ubuntu 16.04.我在 Ubuntu 16.04 上安装了 pgagent。
I executed:我执行了:
CREATE EXTENSION pgagent;
CREATE LANGUAGE plpgsql;
According this: https://www.pgadmin.org/docs/pgadmin4/1.x/pgagent_install.htm根据这个: https : //www.pgadmin.org/docs/pgadmin4/1.x/pgagent_install.htm
I ran我跑了
/usr/bin/pgagent hostaddr=127.0.0.1 user=my_user password=*****
And created my jobs:并创造了我的工作:
But, when I try to execute, nothing happens.但是,当我尝试执行时,什么也没有发生。 No error, messages, nothing.
没有错误,消息,什么都没有。 And functions are not executed.
并且不执行函数。
I do not know where to start solving this我不知道从哪里开始解决这个问题
I know it's an old thread, but for the sake of helping other people having this issue, here is a suggestion:我知道这是一个旧线程,但为了帮助其他遇到此问题的人,这里有一个建议:
I'm not sure if pgAgent accepts passwords like this, which would mean the password would be visible via a simple ps aux
command.我不确定 pgAgent 是否接受这样的密码,这意味着通过简单的
ps aux
命令可以看到密码。 Instead, you need to use a pgpass file:相反,您需要使用 pgpass 文件:
$ sudo su - postgres
$ cd ~
$ nano .pgpass
# Insert the following text and save the document:
localhost:5432:*:postgres:[postgres_password]
$ chmod 0600 .pgpass
$ pgagent hostaddr=localhost dbname=postgres user=postgres
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.