From: Tom Lane <tgl@sss.pgh.pa.us>
To: Rich Shepard <rshepard@appl-ecosys.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Database issues when adding GUI
Date: Mon, 07 Jun 2021 12:00:38 -0400
Message-ID: <880155.1623081638@sss.pgh.pa.us> (raw)
In-Reply-To: <alpine.LNX.2.20.2106070852000.1822@salmo.appl-ecosys.com>
References: <alpine.LNX.2.20.2106070748380.1822@salmo.appl-ecosys.com>
<48392c33-d63e-15be-e7de-d7a7c0c2fd80@gmail.com>
<alpine.LNX.2.20.2106070828070.1822@salmo.appl-ecosys.com>
<fc13956f-271a-7977-54d3-9aeb76f0211c@gmail.com>
<alpine.LNX.2.20.2106070852000.1822@salmo.appl-ecosys.com>
Rich Shepard <rshepard@appl-ecosys.com> writes:
> $ psql --host salmo --user rshepard --dbname bustrac
> psql: error: could not connect to server: could not connect to server: Connection refused
> Is the server running on host "salmo" (127.0.1.1) and accepting
> TCP/IP connections on port 5432?
> could not connect to server: Connection refused
> Is the server running on host "salmo" (192.168.55.1) and accepting
> TCP/IP connections on port 5432?
> Yet, /tmp has .s.PGSQL.5432= and .s.PGSQL.5432.lock
> and I can access all databases using psql; e.g.,
> $ psql jerrittmine
> psql (12.2)
> Type "help" for help.
> You're on the right path here. The server is running on salmo (the local
> host) and accepting connections on port 5432. At least, that's how I'm
> seeing it.
What you've got there is that Unix-socket connections work, but
TCP connections do not. Check the server's listen_addresses
setting. If that says to allow connections on these IP addresses,
next check your kernel firewall.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, rshepard@appl-ecosys.com
Subject: Re: Database issues when adding GUI
In-Reply-To: <880155.1623081638@sss.pgh.pa.us>
References: <alpine.LNX.2.20.2106070748380.1822@salmo.appl-ecosys.com> <48392c33-d63e-15be-e7de-d7a7c0c2fd80@gmail.com> <alpine.LNX.2.20.2106070828070.1822@salmo.appl-ecosys.com> <fc13956f-271a-7977-54d3-9aeb76f0211c@gmail.com> <alpine.LNX.2.20.2106070852000.1822@salmo.appl-ecosys.com> <880155.1623081638@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox