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 1jRkl3-0001v9-MI for pgsql-general@arkaria.postgresql.org; Thu, 23 Apr 2020 22:55:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jRkl2-0008Ua-KJ for pgsql-general@arkaria.postgresql.org; Thu, 23 Apr 2020 22:55:48 +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 1jRkl2-0008Tb-9X for pgsql-general@lists.postgresql.org; Thu, 23 Apr 2020 22:55:48 +0000 Received: from mail-io1-xd43.google.com ([2607:f8b0:4864:20::d43]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jRkl0-0000QL-6R for pgsql-general@lists.postgresql.org; Thu, 23 Apr 2020 22:55:47 +0000 Received: by mail-io1-xd43.google.com with SMTP id z2so8368186iol.11 for ; Thu, 23 Apr 2020 15:55:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=U1paCjLyDtVfkxQc9cOgBrbGmJ8R+iaKNeF5WP5yT1M=; b=RborKN6gPdZKSqybrI5+DsI8z+mv8bQWKaMT+vVSy7ve0R4RDh7qJB7w7WllfgcvjU +JrLtG+SFZqwk/8sBvZ47YhNzqR+0psU4xflxVrD0B4Dr8GoHl2FMvWsm/9NDVHdidzs vAyGpFg4/OpVTqP0z5uq35XraH4YQPHyvOr/5iqUaHWNUjTWf7qx14eG2O84MSTmc6CW 6fSla1Jpn9eCrWBDOBIw012UMPNsk44DrmyvlIYuQRZf1As9l1kWc3QwIxi3G/3Zhd4+ YD3k+8MUk6KnlRhDCBaKi21tugQgiCff5winFKvLjSkisVxVz45IhI4NWS8xcpDuRP8L ELhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=U1paCjLyDtVfkxQc9cOgBrbGmJ8R+iaKNeF5WP5yT1M=; b=i2RtCGVGQjSnvQNG93Qpc1jTu/fy4Q9HOA7X9/JS1SGlISnvEFawzfva25g5rnfEqJ lyBmmptrWFn0vj5l+a9M+egYMgtXuZqDz4d3JYLDVXHDH+HnBdQrE91WUT8T1tf8Ne8E xrXmyLCJK/8bcez9+BHYxF1uj49uPlSlr+9kI10QzgRx7z8a8dKVsMRORYBCeq3AYhes izQSZWacg1XmZHQmfCZCuyn0C1O2uTeNWZuxjp3qch5pYNkT4rmIFJ6Dj/jH1emNGIx0 sOvT28PcqzrU/Sqljc58d5hXG5Xbq2l6adMLG9sBlVggs4W0+sq4u70FHYHIWgSkhnhz fZdQ== X-Gm-Message-State: AGi0PuY5DPJJnn3YipdQYQ0uoTihHe/gxhuykIRShhesqg/YMJ/tsP1t N5KnpYojkRfNj0KFBwSO1sP/h9U/0rk= X-Google-Smtp-Source: APiQypIBXO0+4nAYTtaqeT/hTfnOihZ+BHdNqt2c3n/FU8N376fB1Y/rPkOl+8z5VTLKI0wtvAuMng== X-Received: by 2002:a02:1c83:: with SMTP id c125mr5491761jac.112.1587682543785; Thu, 23 Apr 2020 15:55:43 -0700 (PDT) Received: from ?IPv6:2601:681:5500:dde0:a5fb:e276:c4c4:17bd? ([2601:681:5500:dde0:a5fb:e276:c4c4:17bd]) by smtp.gmail.com with ESMTPSA id s81sm1371599ilb.60.2020.04.23.15.55.43 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 23 Apr 2020 15:55:43 -0700 (PDT) Subject: Re: Fw: Re: Re: Could Not Connect To Server To: pgsql-general@lists.postgresql.org References: <0d2591c4-4dfb-ef41-6329-016509cd3a00@aklaver.com> <7b6777a3-770d-3d5b-4cdb-2d9c141efc9c@aklaver.com> <29a84aed-7713-a3f4-deca-fb85981d5826@aklaver.com> <5c98eed8-99bc-cf8c-d35c-6306b3c6a192@aklaver.com> From: Rob Sargent Message-ID: <6d01b41b-2e94-9548-5409-cfb7e80d77a5@gmail.com> Date: Thu, 23 Apr 2020 16:55:42 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------7D6A71AF27DFAF05C1C723AD" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------7D6A71AF27DFAF05C1C723AD Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 4/23/20 4:46 PM, Dummy Account wrote: > I cd'd into log and listed the files.  There are many. > How should I get the log that you want. > I tried: > > open -a TextEdit postgresql-2020-04-22_171300.log > > I got: > > LSOpenURLsWithRole() failed for the application > /Applications/TextEdit.app with error -610 for the file > /Library/PostgreSQL/12/data/log/postgresql-2020-04-22_171300.log. > That appears to me to say that, for the current user, TextEdit could not open the log file.  What was the effective user?  Were you still in a session under 'sudo su - postgres' in which case postgres can't read the log file.  If that's the case then postgres likely can't read the data files either. Can you show the output of these commands in the data directory? id \ls -ltr I ask for the "\ls" to make sure there are no funny aliases in place. > *Sent:* Thursday, April 23, 2020 at 5:19 PM > *From:* "Dummy Account" > *To:* "Adrian Klaver" > *Cc:* "pgsql-general" , "David G. > Johnston" > *Subject:* Re: Fw: Re: Could Not Connect To Server > This worked. > sudo su - postgres > I was now able to log into data and ls > Inside data is "log". > How do I open log? > and got: > LSOpenURLsWithRole() failed with erro -610 > I then tried: > log show > and I got: > log: Could not be open local log store: The log archive format is > corrupt and cannot be read > So that right there sounds more conducive to the OS being restored( > not that I know ), all the files were likely rewritten? > --------------7D6A71AF27DFAF05C1C723AD Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

On 4/23/20 4:46 PM, Dummy Account wrote:
 
I cd'd into log and listed the files.  There are many.
How should I get the log that you want.
 
 
I tried:

open -a TextEdit postgresql-2020-04-22_171300.log

I got:

LSOpenURLsWithRole() failed for the application /Applications/TextEdit.app with error -610 for the file /Library/PostgreSQL/12/data/log/postgresql-2020-04-22_171300.log.

 
That appears to me to say that, for the current user, TextEdit could not open the log file.  What was the effective user?  Were you still in a session under 'sudo su - postgres' in which case postgres can't read the log file.  If that's the case then postgres likely can't read the data files either.

Can you show the output of these commands in the data directory?
id
\ls -ltr
I ask for the "\ls" to make sure there are no funny aliases in place.

 
Sent: Thursday, April 23, 2020 at 5:19 PM
From: "Dummy Account" <dummyaccount4u@mail.com>
To: "Adrian Klaver" <adrian.klaver@aklaver.com>
Cc: "pgsql-general" <pgsql-general@postgresql.org>, "David G. Johnston" <david.g.johnston@gmail.com>
Subject: Re: Fw: Re: Could Not Connect To Server
This worked.
sudo su - postgres
I was now able to log into data and ls
Inside data is "log".
 
How do I open log?
and got:
LSOpenURLsWithRole() failed with erro -610
 
I then tried:
log show
and I got:
log: Could not be open local log store: The log archive format is corrupt and cannot be read
 
So that right there sounds more conducive to the OS being restored( not that I know ), all the files were likely rewritten?
 


--------------7D6A71AF27DFAF05C1C723AD--