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 1jRhRH-0002uw-SF for pgsql-general@arkaria.postgresql.org; Thu, 23 Apr 2020 19:23:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jRhRG-0000cU-Py for pgsql-general@arkaria.postgresql.org; Thu, 23 Apr 2020 19:23:10 +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 1jRhRG-0000a4-GA for pgsql-general@lists.postgresql.org; Thu, 23 Apr 2020 19:23:10 +0000 Received: from mail-il1-x132.google.com ([2607:f8b0:4864:20::132]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jRhRE-0006vR-Df for pgsql-general@lists.postgresql.org; Thu, 23 Apr 2020 19:23:10 +0000 Received: by mail-il1-x132.google.com with SMTP id z12so6766289ilb.10 for ; Thu, 23 Apr 2020 12:23:08 -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=psKd1ZPCV6RZAa8E7bsZMnAZk1/uosxO0J5PVrAw2os=; b=LwfIyxthKubyY1EiHptX0QsQjrpPwKkm48JUjJhF4BbvSK8pFgZAuexpNA6VXWCGMD w9kx9jJVeY04ZH+4lJTlgs1T9Wt0XW+azuZhqIP1Rw0lX6I4AdKAaBUtnV2o9JLaJ9Ux fZErBcPORtok9V/Mj2l1WiCGjZD8sC8XBoXXxHpoHpbecZGmYGeWQNfeJKYv5unNe+M6 5/oN+CMgwRbIycIIWjjbtzhFtHs98DivJ+yNiR0w1ZTMwNjgDi8Kbu3O0IY4jwBZzuZZ CTu183Ydth8utoBm+dKZDCfy/c8/SJ3ClXfkcBPuEG0hBNQW+bInk1OaJLp1iT7/xq+F rGJA== 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=psKd1ZPCV6RZAa8E7bsZMnAZk1/uosxO0J5PVrAw2os=; b=LBi2u1dCnx1taDIQRiBU8mVptNcErftvLkBDvaP3phXnFe4iBbwSkCdeaY+7uWnAbT qas3VnNaOjC9qMjCzmM3JIOrXkZpFDFBqR2BLMZqiDiQwR7FHAYwDiD9Mf8qIifcwJlK hizHjfQl2KKIDwBpPynU9FiCyct23RSsIyH5TXTbW4GHveuUwe2vR3p3816JlJU72/Ur UVqMz11OYzqBMcH81jiHWEJdBRWGZFLqPUKtH2S11+/UdRahGBn8ldYr6AvWSmOq/dII Jv7AmuYxV+8+7WIlcAV6V/zRDZtgWqY0ui1DdAlRW9LNymn0uhLtJ3Mj7DkQufbBh3C6 ECww== X-Gm-Message-State: AGi0PubXlSiMTp68iIiG37M6i/vnunC2pr0BUpvjCz2LnKdVRcpCiNpn EPv8/i8yCgPw0+mpzcu3xRLQZiB/l4k= X-Google-Smtp-Source: APiQypIc1LFmyS69X6OKHcuFZYYbEvVivgcuX7OSBHl8sJEqvLqYNTzMy3ixcnm6sWzcWEXyMiguVA== X-Received: by 2002:a92:ba99:: with SMTP id t25mr5131760ill.84.1587669786186; Thu, 23 Apr 2020 12:23:06 -0700 (PDT) Received: from ?IPv6:2601:681:5500:dde0:49ef:d15:cc02:739b? ([2601:681:5500:dde0:49ef:d15:cc02:739b]) by smtp.gmail.com with ESMTPSA id h82sm1186426ila.14.2020.04.23.12.23.03 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 23 Apr 2020 12:23:04 -0700 (PDT) Subject: Re: Could Not Connect To Server To: pgsql-general@lists.postgresql.org References: From: Rob Sargent Message-ID: Date: Thu, 23 Apr 2020 13:23:02 -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="------------06F9FDB9527C41E71F1108AA" 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. --------------06F9FDB9527C41E71F1108AA Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 4/23/20 1:12 PM, Dummy Account wrote: > Hi David, > When I backed-up, I don't know if the server was offline?  I can say > that I was not running pgAdmin.  For instance, I backed up the > Operating System and all of its applications.  If I go run other > application, including other servers, they work.  As a matter of fact, > if I boot into the old hard drive while it is outside of the laptop, > it still works just as it did before I took it out of the laptop. > As far as your question of "And the relevant content from the log > directory log file?": what are you asking for?  That *is* the entire > and complete log after that command. > Thanks, I appreciate the help. > *Sent:* Thursday, April 23, 2020 at 1:55 PM > *From:* "David G. Johnston" > *To:* "Dummy Account" > *Cc:* "pgsql-general" > *Subject:* Re: Could Not Connect To Server > On Thu, Apr 23, 2020 at 11:48 AM Dummy Account > > wrote: > > But here they are: > > waiting for server to start....2020-04-22 15:57:51.766 CDT [5255] > LOG:  starting PostgreSQL 12.2 on x86_64-apple-darwin, compiled by > Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn), 64-bit > 2020-04-22 15:57:51.766 CDT [5255] LOG:  listening on IPv6 address > "::", port 5432 > 2020-04-22 15:57:51.766 CDT [5255] LOG:  listening on IPv4 address > "0.0.0.0", port 5432 > 2020-04-22 15:57:51.768 CDT [5255] LOG:  listening on Unix socket > "/tmp/.s.PGSQL.5432" > 2020-04-22 15:57:51.782 CDT [5255] LOG:  redirecting log output to > logging collector process > 2020-04-22 15:57:51.782 CDT [5255] HINT:  Future log output will > appear in directory "log". > > And the relevant content from the log directory log file? > >  stopped waiting > pg_ctl: could not start server > You might be misunderstanding where I said restore, I did not > backup the database, I restored an Operating System because I > changed out my hard drive for a solid state drive; therefore, I > had to restore my Operating System from Time Machine/(backup). > > And was that Time Machine backup made while the server was offline? If > not, and you didn't take any explicit steps to backup and restore the > database itself, then your database may be corrupted and thus unable > to boot.  The log file should indicate whether that is the case. > David J. I take it you're seeing that output in the Terminal shell window. What value does -D get when you try to start postgres?  Can we see the entire command? The "log" directory will be within the value of -D I believe. --------------06F9FDB9527C41E71F1108AA Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

On 4/23/20 1:12 PM, Dummy Account wrote:
 
Hi David,
 
When I backed-up, I don't know if the server was offline?  I can say that I was not running pgAdmin.  For instance, I backed up the Operating System and all of its applications.  If I go run other application, including other servers, they work.  As a matter of fact, if I boot into the old hard drive while it is outside of the laptop, it still works just as it did before I took it out of the laptop.
 
As far as your question of "And the relevant content from the log directory log file?": what are you asking for?  That is the entire and complete log after that command.
 
Thanks, I appreciate the help.
 
Sent: Thursday, April 23, 2020 at 1:55 PM
From: "David G. Johnston" <david.g.johnston@gmail.com>
To: "Dummy Account" <dummyaccount4u@mail.com>
Cc: "pgsql-general" <pgsql-general@postgresql.org>
Subject: Re: Could Not Connect To Server
On Thu, Apr 23, 2020 at 11:48 AM Dummy Account <dummyaccount4u@mail.com> wrote:
But here they are:
 
waiting for server to start....2020-04-22 15:57:51.766 CDT [5255] LOG:  starting PostgreSQL 12.2 on x86_64-apple-darwin, compiled by Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn), 64-bit
2020-04-22 15:57:51.766 CDT [5255] LOG:  listening on IPv6 address "::", port 5432
2020-04-22 15:57:51.766 CDT [5255] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2020-04-22 15:57:51.768 CDT [5255] LOG:  listening on Unix socket "/tmp/.s.PGSQL.5432"
2020-04-22 15:57:51.782 CDT [5255] LOG:  redirecting log output to logging collector process
2020-04-22 15:57:51.782 CDT [5255] HINT:  Future log output will appear in directory "log".
 
And the relevant content from the log directory log file?
 
 stopped waiting
pg_ctl: could not start server
 
You might be misunderstanding where I said restore, I did not backup the database, I restored an Operating System because I changed out my hard drive for a solid state drive; therefore, I had to restore my Operating System from Time Machine/(backup).
 
 
And was that Time Machine backup made while the server was offline?  If not, and you didn't take any explicit steps to backup and restore the database itself, then your database may be corrupted and thus unable to boot.  The log file should indicate whether that is the case.
 
David J.
 
I take it you're seeing that output in the Terminal shell window.  What value does -D get when you try to start postgres?  Can we see the entire command? The "log" directory will be within the value of -D I believe.

--------------06F9FDB9527C41E71F1108AA--