Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lqHgF-0006H7-2L for pgsql-general@arkaria.postgresql.org; Mon, 07 Jun 2021 16:00:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lqHgE-0005d9-3B for pgsql-general@arkaria.postgresql.org; Mon, 07 Jun 2021 16:00:46 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lqHgD-0005d0-Qm for pgsql-general@lists.postgresql.org; Mon, 07 Jun 2021 16:00:45 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lqHg9-0001Yp-7A for pgsql-general@lists.postgresql.org; Mon, 07 Jun 2021 16:00:45 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 157G0ckR880156; Mon, 7 Jun 2021 12:00:38 -0400 From: Tom Lane To: Rich Shepard cc: pgsql-general@lists.postgresql.org Subject: Re: Database issues when adding GUI In-reply-to: References: <48392c33-d63e-15be-e7de-d7a7c0c2fd80@gmail.com> Comments: In-reply-to Rich Shepard message dated "Mon, 07 Jun 2021 08:56:16 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <880154.1623081638.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 07 Jun 2021 12:00:38 -0400 Message-ID: <880155.1623081638@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Rich Shepard writes: > $ psql --host salmo --user rshepard --dbname bustrac > psql: error: could not connect to server: could not connect to server: C= onnection 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=3D 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