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 1ieivU-0000lJ-3A for pgsql-general@arkaria.postgresql.org; Tue, 10 Dec 2019 17:03:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ieivS-0007if-Rd for pgsql-general@arkaria.postgresql.org; Tue, 10 Dec 2019 17:03:54 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ieivQ-0007i1-V2 for pgsql-general@lists.postgresql.org; Tue, 10 Dec 2019 17:03:54 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ieivM-0000Ya-Cg for pgsql-general@lists.postgresql.org; Tue, 10 Dec 2019 17:03:52 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 572B02230F; Tue, 10 Dec 2019 12:03:46 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 10 Dec 2019 12:03:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=P HKT0+rHymvUWidPK2OFzrRMSW+zcOgp4WAaslzPvQ8=; b=NScQgwcY1uWD9uTiZ cc57MGgvGBuBkqt3z9qE+lNSSkmDBVWk8azYgUXV/MOetrz17t38hYdNw3xG6pnA EO9x8rBLMdN349dAitbJ/jGtD6FC4y18V5NrwWW+exrELuWpeJEwIHM9CYOTimmI B/lM9+TyTCWbheLN13wWX4rsKDcr9h7oZHMp2pH6S/yi7Wl8jiTYIAu12n8gCAZn ZQg0R73V7fn29oY7GZ/NfeTrrm0CC7K/6DinXkOszQO9XFw8sP8D7+AX1IBJV6l9 5fdfjd2qCRBB7BtJBhyVVY5eljdw2oRFMxs22V7dj8+PE1Y1wri4XviS6BnUkmW+ HCWSw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=PHKT0+rHymvUWidPK2OFzrRMSW+zcOgp4WAaslzPv Q8=; b=UgUbvbT4juymvQkU8q9C3fLk54YeXqZVZsrcLFA9wP/0M/WxJCjo+R9Sq ly0nbtLbQvqPkP6vIBJo+Il6NybfKYWH9dM+KGYf0GOugBnqy/jKxDwlJfl2yQEg xjCNArvdT7xc7fa/nsIZgwnYtC6vd6b11OOrlgRf95Ep/hoQekxvzuGlOw9juj4e dTcWrriqhR8wwbNyIlKIxao9mF1TB3LxBEAAlKXA63HsqJ69DHIUyKKpWqi180E5 irdPqueYCNxJJUkouFhLC1f7eZRzQ3y3uHJvEI8Y+GvWF5vdaGr4xQ5wEfGxaiKy kGwbgJ3bKO6fU1PHnneAHmLcEf0Qg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudelfedgleehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtje ertddtfeejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecuffhomhgrihhnpehpohhsthhgrhgvsh hqlhdrohhrghenucfkphephedtrdduleejrdektddrvdenucfrrghrrghmpehmrghilhhf rhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomhenucevlhhush htvghrufhiiigvpedt X-ME-Proxy: Received: from ranger.suse (50-197-80-2-static.hfc.comcastbusiness.net [50.197.80.2]) by mail.messagingengine.com (Postfix) with ESMTPA id 6D5A580059; Tue, 10 Dec 2019 12:03:45 -0500 (EST) Subject: Re: server will not start (Debian) To: stan , Ray O'Donnell Cc: pgsql-general@lists.postgresql.org 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> <20191210162442.GB17040@panix.com> From: Adrian Klaver Message-ID: Date: Tue, 10 Dec 2019 09:03:44 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 In-Reply-To: <20191210162442.GB17040@panix.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 12/10/19 8:24 AM, stan wrote: > > 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? > > sudo apt-get install pointed at: > > deb http://apt.postgresql.org/pub/repos/apt/ bionic-pgdg main > >>> >>> Why are you using the file in init.d/ instead of pg_ctlcluster? >> >> Or indeed systemctl? :-) > > I tried that also. did not remeber > > also: > > postgres@ica-db:~$ pg_ctlcluster 12 main start > Warning: the cluster will not be running as a systemd service. Consider > using systemctl: > sudo systemctl start postgresql@12-main > Cluster is already running. You need to do the above as root: aklaver@arkansas:~$ pg_lsclusters Ver Cluster Port Status Owner Data directory Log file 11 main 5431 down postgres /var/lib/postgresql/11/main /var/log/postgresql/postgresql-11-main.log 12 main 5432 online postgres /var/lib/postgresql/12/main /var/log/postgresql/postgresql-12-main.log aklaver@arkansas:~$ pg_ctlcluster 11 main start Warning: the cluster will not be running as a systemd service. Consider using systemctl: sudo systemctl start postgresql@11-main Error: You must run this program as the cluster owner (postgres) or root aklaver@arkansas:~$ sudo pg_ctlcluster 11 main start [sudo] password for aklaver: aklaver@arkansas:~$ pg_lsclusters Ver Cluster Port Status Owner Data directory Log file 11 main 5431 online postgres /var/lib/postgresql/11/main /var/log/postgresql/postgresql-11-main.log 12 main 5432 online postgres /var/lib/postgresql/12/main /var/log/postgresql/postgresql-12-main.log Also the cluster is already running. To confirm what you have running do: ps ax | grep post > >> >> Ray. >> >> -- >> Raymond O'Donnell // Galway // Ireland >> ray@rodonnell.ie > -- Adrian Klaver adrian.klaver@aklaver.com