pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rob Sargent <robjsargent@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Fw: Re: Re: Could Not Connect To Server
Date: Thu, 23 Apr 2020 16:55:42 -0600
Message-ID: <6d01b41b-2e94-9548-5409-cfb7e80d77a5@gmail.com> (raw)
In-Reply-To: <trinity-495be6d4-506d-4787-b389-ebcf1bdea073-1587681966539@3c-app-mailcom-lxa16>
References: <trinity-a1f39fea-ffcd-4e01-943d-0ac58bf7094a-1587665923182@3c-app-mailcom-lxa16>
	<CAKFQuwYaq6zCw=F3soEBQDo1VRzb9e0ZV7AvQVa0W=Yzv8_2KQ@mail.gmail.com>
	<trinity-8cd0a71f-5141-4035-8782-45d149bc8a0f-1587669151008@3c-app-mailcom-lxa16>
	<0d2591c4-4dfb-ef41-6329-016509cd3a00@aklaver.com>
	<trinity-c92caf44-4098-42df-bf51-b4040cc32c9f-1587670372096@3c-app-mailcom-lxa16>
	<trinity-82585037-9cd4-46b8-905c-1cc12a728eb4-1587673466514@3c-app-mailcom-lxa16>
	<7b6777a3-770d-3d5b-4cdb-2d9c141efc9c@aklaver.com>
	<trinity-eb2c7ba8-d1e9-400e-b345-626ae81c0e35-1587674249947@3c-app-mailcom-lxa16>
	<29a84aed-7713-a3f4-deca-fb85981d5826@aklaver.com>
	<trinity-8485523e-16c0-4282-82a6-5364b7b11433-1587679402313@3c-app-mailcom-lxa16>
	<5c98eed8-99bc-cf8c-d35c-6306b3c6a192@aklaver.com>
	<trinity-7f6cceb7-2f84-4af3-a364-365f0a33d930-1587680389261@3c-app-mailcom-lxa16>
	<trinity-495be6d4-506d-4787-b389-ebcf1bdea073-1587681966539@3c-app-mailcom-lxa16>



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?
>

view thread (29+ messages)

Message-ID: <6d01b41b-2e94-9548-5409-cfb7e80d77a5@gmail.com>
Permalink:  ../6d01b41b-2e94-9548-5409-cfb7e80d77a5@gmail.com/
Also on:    postgresql.org/message-id/6d01b41b-2e94-9548-5409-cfb7e80d77a5@gmail.com

 · 

reply

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: robjsargent@gmail.com
  Subject: Re: Fw: Re: Re: Could Not Connect To Server
  In-Reply-To: <6d01b41b-2e94-9548-5409-cfb7e80d77a5@gmail.com>
  References: <trinity-a1f39fea-ffcd-4e01-943d-0ac58bf7094a-1587665923182@3c-app-mailcom-lxa16> <CAKFQuwYaq6zCw=F3soEBQDo1VRzb9e0ZV7AvQVa0W=Yzv8_2KQ@mail.gmail.com> <trinity-8cd0a71f-5141-4035-8782-45d149bc8a0f-1587669151008@3c-app-mailcom-lxa16> <0d2591c4-4dfb-ef41-6329-016509cd3a00@aklaver.com> <trinity-c92caf44-4098-42df-bf51-b4040cc32c9f-1587670372096@3c-app-mailcom-lxa16> <trinity-82585037-9cd4-46b8-905c-1cc12a728eb4-1587673466514@3c-app-mailcom-lxa16> <7b6777a3-770d-3d5b-4cdb-2d9c141efc9c@aklaver.com> <trinity-eb2c7ba8-d1e9-400e-b345-626ae81c0e35-1587674249947@3c-app-mailcom-lxa16> <29a84aed-7713-a3f4-deca-fb85981d5826@aklaver.com> <trinity-8485523e-16c0-4282-82a6-5364b7b11433-1587679402313@3c-app-mailcom-lxa16> <5c98eed8-99bc-cf8c-d35c-6306b3c6a192@aklaver.com> <trinity-7f6cceb7-2f84-4af3-a364-365f0a33d930-1587680389261@3c-app-mailcom-lxa16> <trinity-495be6d4-506d-4787-b389-ebcf1bdea073-1587681966539@3c-app-mailcom-lxa16> <6d01b41b-2e94-9548-5409-cfb7e80d77a5@gmail.com>

* 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