Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iefgw-0007lZ-3V for pgsql-general@arkaria.postgresql.org; Tue, 10 Dec 2019 13:36:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iefgu-00013P-IP for pgsql-general@arkaria.postgresql.org; Tue, 10 Dec 2019 13:36:40 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iefgu-00013I-4g for pgsql-general@lists.postgresql.org; Tue, 10 Dec 2019 13:36:40 +0000 Received: from mailbackend.panix.com ([166.84.1.89]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iefgr-0000g0-1y for pgsql-general@lists.postgresql.org; Tue, 10 Dec 2019 13:36:38 +0000 Received: from panix5.panix.com (panix5.panix.com [166.84.1.5]) by mailbackend.panix.com (Postfix) with ESMTP id 47XLgl4DPvzrb1 for ; Tue, 10 Dec 2019 08:36:35 -0500 (EST) Received: by panix5.panix.com (Postfix, from userid 17622) id 47XLgl2z4hzfYc; Tue, 10 Dec 2019 08:36:35 -0500 (EST) Date: Tue, 10 Dec 2019 08:36:35 -0500 From: stan To: pgsql-general@lists.postgresql.org Subject: Re: server will not start (Debian) Message-ID: <20191210133635.GA24804@panix.com> References: <20191210114823.GA18735@panix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=unknown-8bit Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20191210114823.GA18735@panix.com> X-Editor: gVim User-Agent: Mutt/1.12.1 (2019-06-15) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Tue, Dec 10, 2019 at 06:48:23AM -0500, stan wrote: > I just went to do soem work on our test/sandbox instance. I had upgraded > this ssytem to V12 a few days agao. I found that it was not running: > > Here is the last thing in the log: > > 2019-12-06 14:16:06.149 EST [3764] LOG: received fast shutdown request > 2019-12-06 14:16:06.154 EST [3764] LOG: aborting any active transactions > 2019-12-06 14:16:06.160 EST [3764] LOG: background worker "logical > replication launcher" (PID 3771) exited with exit code 1 > 2019-12-06 14:16:06.162 EST [3766] LOG: shutting down > 2019-12-06 14:16:06.204 EST [3764] LOG: database system is shut down > > > This was in the logfile that was one rotation back. The current one is > zero bytes: > > pg_lsclsuters shows: > > Ver Cluster Port Status Owner Data directory Log file > 12 main 5432 down postgres /var/lib/postgresql/12/main > /var/log/postgresql/postgresql-12-main.log > > systemctl status postgresql shows: > > root@stantest:/var/log/postgresql# systemctl status postgresql > ● postgresql.service - PostgreSQL RDBMS > Loaded: loaded (/lib/systemd/system/postgresql.service; enabled; vendor > prese > Active: active (exited) since Fri 2019-12-06 14:22:13 EST; 3 days ago > Process: 371 ExecStart=/bin/true (code=exited, status=0/SUCCESS) > Process: 5555 ExecReload=/bin/true (code=exited, > status=0/SUCCESS) > Main PID: 371 (code=exited, status=0/SUCCESS) > > Dec 10 06:41:19 stantest systemd[1]: Reloading PostgreSQL RDBMS. > Dec 10 06:41:19 stantest systemd[1]: Reloaded PostgreSQL RDBMS. > Warning: Journal has been rotated since unit was started. Log output is incomple > > What do I need to do to get it started AND fix whatever caused this > unexpected shutdown? > > More info: As user posgres I cna start the server with: /usr/lib/postgresql/12/bin/postgres -D /var/lib/postgresql/12/main -c config_file=/etc/postgresql/12/main/postgresql.conf Then I can connect to it. But sysctl does not start the instance. I am also getting this error message: /var/run/postgresql/12-main.pg_stat_tmp/global.tmp": No such file or directory 2019-12-10 08:35:02.360 EST [786] LOG: could not open temporary statistics file "/var/run/postgresql/12-main.pg_stat_tmp/global.tmp": No such file or directory But if I create that directory manually I cna start the server, As a reminder, this instance was recently upgarded from V11 to V12, if thta is significant. -- "They that would give up essential liberty for temporary safety deserve neither liberty nor safety." -- Benjamin Franklin