Я использую pgAgent и postgres на сервере Ubuntu.Теперь время от времени pgAgent теряет соединение с сервером, и я получаю следующие ошибки:
Mon Oct 8 11:47:14 2018 : WARNING: Couldn't create the primary connection (attempt 9): could not connect to server: Connection refused
Is the server running on host "127.0.0.1" and accepting
TCP/IP connections on port 5432?
Mon Oct 8 11:47:19 2018 : WARNING: Couldn't create the primary connection (attempt 10): could not connect to server: Connection refused
Is the server running on host "127.0.0.1" and accepting
TCP/IP connections on port 5432?
Mon Oct 8 11:47:19 2018 : ERROR: Stopping pgAgent: Couldn't establish the primary connection with the database server.
Что может быть причиной такого поведения?Что я должен сделать, чтобы это исправить?