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 1ieivB-0000jn-EV for pgsql-general@arkaria.postgresql.org; Tue, 10 Dec 2019 17:03:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ieiv9-0004p1-BA for pgsql-general@arkaria.postgresql.org; Tue, 10 Dec 2019 17:03:35 +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 1ieiv8-0004nY-U5 for pgsql-general@lists.postgresql.org; Tue, 10 Dec 2019 17:03:35 +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 1ieiv6-0002K4-Ge for pgsql-general@lists.postgresql.org; Tue, 10 Dec 2019 17:03:33 +0000 Received: from panix5.panix.com (panix5.panix.com [166.84.1.5]) by mailbackend.panix.com (Postfix) with ESMTP id 47XRGW2Scvz1HnN; Tue, 10 Dec 2019 12:03:31 -0500 (EST) Received: by panix5.panix.com (Postfix, from userid 17622) id 47XRGW15BPzfYc; Tue, 10 Dec 2019 12:03:31 -0500 (EST) Date: Tue, 10 Dec 2019 12:03:30 -0500 From: stan To: Ray O'Donnell Cc: pgsql-general@lists.postgresql.org Subject: Re: server will not start (Debian) Message-ID: <20191210170330.GA432@panix.com> References: <20191210114823.GA18735@panix.com> <20191210133635.GA24804@panix.com> <20191210153255.GA25615@panix.com> <2887a700-04ec-2168-4039-08752025352c@aklaver.com> <5d82c056-49a0-0512-2915-4aac6b25802b@rodonnell.ie> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5d82c056-49a0-0512-2915-4aac6b25802b@rodonnell.ie> 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 04:13:02PM +0000, Ray O'Donnell wrote: > On 10/12/2019 16:11, Adrian Klaver wrote: > > On 12/10/19 7:32 AM, stan wrote: > >> On Tue, Dec 10, 2019 at 08:55:02AM -0500, Justin wrote: > >>> Hi Stan > >>> > >>> Check security make sure V12 postgres?? has the correct credentials.... > >>> > >> OK, > >> > >> postgres@stantest:/var/run/postgresql$ ls -ld > >> drwxrwsr-x 2 postgres postgres 40 Dec 10 08:35 . > >> > >> Looks correct to me. > >> > >> This sundirectory 12-main.pg_stat_tmp keeps getting deleted. > >> > >> If I create it by hand as user psotgres, the DB starts up when I run: > >> > >> /usr/lib/postgresql/12/bin/postgres -D /var/lib/postgresql/12/main -c > >> config_file=/etc/postgresql/12/main/postgresql.conf > >> > >> But tring to start it with /etc/ini.d/postgresql start fails > >> > > > > How did you install Postgres 12? > > > > Why are you using the file in init.d/ instead of pg_ctlcluster? > > Or indeed systemctl? :-) OK, here is the latets. If I do sudo systemctl start postgresql@12-main the instance starts and works fine. However, if I reboot the machine, the instance is not started. Thoughts as to what to check next, appreciated. -- "They that would give up essential liberty for temporary safety deserve neither liberty nor safety." -- Benjamin Franklin