Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections

NoSuchKey