Re: postgres not starting

From: Azimuddin Mohammed <azimeiu(at)gmail(dot)com>
To: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
Cc: Alan Hodgson <ahodgson(at)lists(dot)simkin(dot)ca>, pgsql-admin(at)postgresql(dot)org
Subject: Re: postgres not starting
Date: 2018-02-16 06:23:49
Message-ID: CAKUuFd7_CFLgG1JDDQTmmoYq4jUkcYWbEfFoexvvo-vT7OKSLA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

I do not see anything running

On Feb 15, 2018 11:00 PM, "Laurenz Albe" <laurenz(dot)albe(at)cybertec(dot)at> wrote:

> 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
>
>

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message merina ghoghwani 2018-02-16 06:32:31 Re: Limiting the no. of logs file generated by postgreSQL
Previous Message Azimuddin Mohammed 2018-02-16 06:23:06 Re: postgres started without auto vaccum

Browse pgsql-general by date

  From Date Subject
Next Message Andreas Kretschmer 2018-02-16 06:37:29 Re: postgres started without auto vaccum
Previous Message Azimuddin Mohammed 2018-02-16 06:23:06 Re: postgres started without auto vaccum