Error code

PostgreSQL 08001

POSTGRESQL08001
Database Error Code· An error code returned by a database server such as PostgreSQL or MySQL.

What it means

sqlclient_unable_to_establish_sqlconnection — initial connection refused.

How to fix it

  1. Confirm PostgreSQL is running with pg_ctlcluster or systemctl status postgresql.
  2. Check pg_hba.conf and postgresql.conf listen_addresses and port settings.
  3. Verify that a firewall or security group is not blocking the PostgreSQL port (default 5432).

Not affiliated with PostgreSQL. Answer summarized from the manufacturer's manual linked above; consult that source for the authoritative procedure.