Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1emY86-0004kI-L0 for pgsql-admin@arkaria.postgresql.org; Fri, 16 Feb 2018 05:00:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emY85-0007rS-Jz for pgsql-admin@arkaria.postgresql.org; Fri, 16 Feb 2018 05:00:13 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1emY85-0007rD-Cl for pgsql-admin@lists.postgresql.org; Fri, 16 Feb 2018 05:00:13 +0000 Received: from mx1.mailbox.org ([80.241.60.212]) by magus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1emY82-0007G8-8r for pgsql-admin@postgresql.org; Fri, 16 Feb 2018 05:00:12 +0000 Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id 9025042A3E; Fri, 16 Feb 2018 06:00:08 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp2.mailbox.org ([80.241.60.241]) by gerste.heinlein-support.de (gerste.heinlein-support.de [91.198.250.173]) (amavisd-new, port 10030) with ESMTP id dBn-0tmnvRg1; Fri, 16 Feb 2018 06:00:05 +0100 (CET) Message-ID: <1518757204.2909.7.camel@cybertec.at> Subject: Re: postgres not starting From: Laurenz Albe To: Alan Hodgson , pgsql-admin@postgresql.org Date: Fri, 16 Feb 2018 06:00:04 +0100 In-Reply-To: <1518756706.2909.4.camel@cybertec.at> References: <1518742460.11219.15.camel@lists.simkin.ca> <1518756706.2909.4.camel@cybertec.at> Organization: Cybertec Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I wrote: > Alan Hodgson wrote: > > On Thu, 2018-02-15 at 18:21 -0600, Azimuddin Mohammed wrote: > > > Hello, > > > I am unable to start postgres on one of the server > > > I am getting below error "HINT: is another postmaster already running on port 5432, if not wait a few seconds and retry" > > > I checked the processes nothing is running with postgres > > > > > > I think the error caused because I removed everything under /data directory before stopping the server. > > > Can someone help. > > > > kill -9 the old processes. The old postmaster is holding onto the port. > > And probably some of the old file handles, too, so you might want to re-init the new database > > cluster after really cleaning up the old one. > > This seems excessive - maybe the server he wants to start is already > running and there is no need to crash or wipe it. Apologies - I didn't see the part that "nothing is running". To find the process that is blocking the port, you can run the following: lsof -i TCP:5432 Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com