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 1lqHnV-0006Z3-2P for pgsql-general@arkaria.postgresql.org; Mon, 07 Jun 2021 16:08:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lqHnT-0002pK-PT for pgsql-general@arkaria.postgresql.org; Mon, 07 Jun 2021 16:08:15 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lqHnT-0002pC-CC for pgsql-general@lists.postgresql.org; Mon, 07 Jun 2021 16:08:15 +0000 Received: from outbound2j.ore.mailhop.org ([54.148.113.140]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lqHnO-0007id-LK for pgsql-general@lists.postgresql.org; Mon, 07 Jun 2021 16:08:14 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1623082090; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=lZCt5OJTiRXldGFqG0blN5uP7XTdXGkXYSdVPq/z8/nXsf3WHJxPPT8PoYYFgFV5AbWRgNqwot0BW ZMa3ys16KI/N+nOWVjHnZXYl3ZIFXVK7PTBVCScxKFyBbMITJceJWpvGUyh0M5MXueD/9lq7DcdPUV AxrB00eQosa9Zss4ZwAa1miLIgBZ+aOJAMCKAXhSMQq8/BPfYu+Ybn0IdtsBpQb7SI+MHRU05PF/cU bSf9/Zdd0kXiRvmEDwzXBfql16YH/c/Iwf2sj2HoFlB5tbj/mrplzRmCNNe05YUO3exOOEPOs/7lTk 3Ei3t5Rsh5j3vX+QTCviez6ScI2SvFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=mime-version:content-type:references:in-reply-to:date:to:from:subject: message-id:dkim-signature:dkim-signature:dkim-signature:from; bh=0bmFWaxV0wYLx0KkWRcO5Po7HvUO4MmlypeMq5qL4og=; b=e/OOABUNLAqcnMc6IFketh1cjTmKd1tKFgqEg0LRNTxD75e9XgEix+bCNC2HkhAT0xpHujMKQe8Xi y6tePT49F0Uz7WFdjIl+8GenFQaax6YZgRnxJohR50oQQaodTr5vOMG3DDO1H4UcZroxSKmkMqs31Z TElMvTARV5lvFI0tT+Z2fugRXvFIbWFXjPbDr/BVhOAqVxYwQc/jhMrSxy2YRcGx+WPu4JpArtp2+B RE6ZmVHbXkNPkSEJ24QZ5ey4s7EpAf62/ASBkhYoBdQVgsbdweL0cYulfoGT29L3ucHjkV5LBpohle MqGJFSq7s8QAFhP0hr8X/Cc+QUwsPIQ== ARC-Authentication-Results: i=1; outbound4.ore.mailhop.org; spf=pass smtp.mailfrom=lists.simkin.ca smtp.remote-ip=74.50.227.220; dkim=pass header.d=lists.simkin.ca header.s=athena header.a=rsa-sha256 header.b=Xw5xkNB7; dmarc=pass header.from=lists.simkin.ca; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.simkin.ca; s=duo-1610662143981-d3c4c825; h=mime-version:content-type:references:in-reply-to:date:to:from:subject: message-id:from; bh=0bmFWaxV0wYLx0KkWRcO5Po7HvUO4MmlypeMq5qL4og=; b=hLgOMHjpj/7Ju9pCZdo0Xn+1+nKyLae2k32f0f7Ew0gLkHYM9/CLuB2YdUZM2kpuiQ4muyCADQn1a +VhN3rHWF1l6AbXyWWJ16KDCFM7lopTIxIqFd8mU3hnyFUwtzINlLcuQC0AvWD+N1yDDNRzu1magQi HuN8xvCdGb7kIT2Y= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-low; h=mime-version:content-type:references:in-reply-to:date:to:from:subject: message-id:from; bh=0bmFWaxV0wYLx0KkWRcO5Po7HvUO4MmlypeMq5qL4og=; b=FfBW1WfOVqvW8f0IshMEaSL9i5RyqfmkONdeUIXzT6ze4yruy+rh30dE7wzHOFAXasIge66Voocwl DNrfsT6pk2hRrm9mp8ijdDAWjdJQcgsATf9+NNvpdhfZM42JnA4YU+q91abHa/YTaBig7YbHhTB51k z8SsS9wW/oNK98n/bae1wmlD0aQT/VbbSy3/2UnXCLeXfAJ4PdRTbsdLxtTdTkmrasMHO4E41ww82n YWl0KDMXk8MKEfSwxGosdTLcfvEzHEAccIxpGyAViXUCW8ZopbHU2211DyQV7brjHLLUMkHXi4ubWC U29hDdokZz/su5DW6Wx7U3y17UEpcGw== X-Originating-IP: 74.50.227.220 X-MHO-RoutePath: c2lta2lu X-MHO-User: 8ccc4e3b-c7aa-11eb-a655-89389772cfc7 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Mail-Handler: DuoCircle Outbound SMTP Received: from athena.simkin.ca (athena.simkin.ca [74.50.227.220]) by outbound4.ore.mailhop.org (Halon) with ESMTPSA id 8ccc4e3b-c7aa-11eb-a655-89389772cfc7; Mon, 07 Jun 2021 16:08:09 +0000 (UTC) Received: from skynet.simkin.ca (node-1w7jr9sr73xr4ze19xwgjcteu.ipv6.telus.net [IPv6:2001:569:bce0:6400:fa75:a4ff:fe2f:92e6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by athena.simkin.ca (Postfix) with ESMTPSA id 212C7DC696E8 for ; Mon, 7 Jun 2021 09:08:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.simkin.ca; s=athena; t=1623082088; bh=gUmPIw62gcWWwT55M4NLjvGaWPN2YaIsLja+EAPVfbM=; h=Subject:From:To:Date:From:To:Subject:Date:Reply-To; b=Xw5xkNB7OPxv8YbdjU8zSFeSN1VE5K4Vy5WXcQ/ZWyoBUonASzTLX3BYJy6AdIAh2 XiwRXp/HeusiFNnVguYQHUbzVhkX98C9D6HOQ4ygeTg0/sQtJ0IFYJ0atkRFp/c0aL 8wm4/WPtVTuAvX41HBGRil+5asumrhqzDeAxZj4JWNgCYVLGbEXe93Ahj+71eWtXMd egi/4vcH+Jb5YZtIMMfNQgcMtMFkxvEsUEjHYSFgW5ASQc1nyDdqO5IH9u6Xaoz3HW g/u3zy0DWEgk91TF2rZIFg52OEcPhYo6K3lnOeBNpYN66YKAA7tnoVzToieWlSyT0i 3kRAoduhIrZ6Q== Received: from skynet.simkin.ca (skynet.simkin.ca [IPv6:::1]) by skynet.simkin.ca (Postfix) with ESMTP id 3BE471066CDD9 for ; Mon, 7 Jun 2021 09:08:03 -0700 (PDT) Message-ID: Subject: Re: Database issues when adding GUI From: Alan Hodgson To: pgsql-general@lists.postgresql.org Date: Mon, 07 Jun 2021 09:08:03 -0700 In-Reply-To: References: <3c1ed25a-8924-d27b-bb97-d79984390290@gmail.com> <880013.1623081440@sss.pgh.pa.us> Content-Type: multipart/alternative; boundary="=-Di7gtSPnot2Kc/VxSHre" X-PGP-Key: fp="EF82 6F8D A3BA A096 FFA3 05F2 A7A0 40A5 34E5 AA0B"; id="0x34E5AA0B"; get= User-Agent: Evolution 3.40.1 MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --=-Di7gtSPnot2Kc/VxSHre Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit On Mon, 2021-06-07 at 09:03 -0700, Rich Shepard wrote: > The problem source is postgres telling me it cannot connect to the database > but I can do so directly using psql: > > $ 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? > > yet, > > $ psql bustrac > psql (12.2) > Type "help" for help. > > bustrac=# > > I'm thoroughly confused not before encountering this issue. If you don't specify a host name, psql/libpq connects using the UNIX domain socket in /tmp. If you do specify a host name it connects using a TCP socket. Your PostgreSQL doesn't seem to be listening on TCP, or possibly you have a firewall issue. --=-Di7gtSPnot2Kc/VxSHre Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
On Mon, 2021-06-07 at 09:03 -0700, Rich Shepa= rd wrote:
The problem source is postgr= es telling me it cannot connect to the database
but I can do so d= irectly using psql:

$ 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 "s= almo" (127.0.1.1) and accepting
     = ;   TCP/IP connections on port 5432?
<= div>

yet,
=

$ psql bustrac
psql (12.2)
= Type "help" for help.

bustrac=3D#

I'm thoroughly confused not before encountering this issue= .


If you don't spe= cify a host name, psql/libpq connects using the UNIX domain socket in /tmp.= If you do specify a host name it connects using a TCP socket. Your Postgre= SQL doesn't seem to be listening on TCP, or possibly you have a firewall is= sue.

--=-Di7gtSPnot2Kc/VxSHre--