I've installed pgAgent with the Windows service using a local machine account called postgres. I have confirmed that the Windows service is running normally. I created a job in pgAdmin that should delete certain records from a table in my customer DB. The only step in the job is configured with a Local connection type to the customer DB. The problem is, the job fails every time with the following warning written to the Windows event log:
Failed to create new connection to database 'customer':'fe_sendauth: no password supplied'
I have verified that there is a pgpass.conf file located in C:\Users\postgres\AppData\Roaming\postgresql. Here are its contents:
localhost:5432:postgres:postgres:<password_redacted>
I am not sure what else to try. I have been unable to locate any further information about this error message as it applies to pgAgent.
Version information:
- PostgreSQL 9.2.4, compiled by Visual C++ build 1600, 64-bit
- pgAdmin 1.16.1
- pgAgent v3.3.0-1
Windows service startup information:
C:\Program Files (x86)\pgAgent\bin\pgagent.exe RUN pgAgent host=localhost port=5432 user=postgres dbname=postgres
Non-comment contents of pg_hba.conf:
host all all 127.0.0.1/32 md5
host all all ::1/128 md5