I have received the following error when attempting to connect to an Arch Linux server:
Sequel::DatabaseConnectionErrorreplication#monitor
PG::Error: could not connect to server: Connection refused Is the server running on host "45.56.86.24" and accepting TCP/IP connections on port 5432?
but I have an entry in my pg_hba.conf file on that server:
hostssl replication replication 45.56.86.24/32 md5
Actually... there are two lines like this. Is presence of the second line be expected to result in this error?
pg_hba.conf
. The problem is stated in the message: the host either does not listen on that port, or the port is not available from host trying to connect. This latter can be a result of missing routing or firewalls or I don't know.