From: | Siddharth Jain <siddhsql(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-general(at)lists(dot)postgresql(dot)org |
Subject: | Re: could not bind IPv4 address "127.0.0.1": Address already in use |
Date: | 2023-03-08 16:45:49 |
Message-ID: | CAPqV3pT5aHtUZXv0xO7w9cfFjxhP3xxDCdT75QjGjJoRyy0QBw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Thanks Tom. found the problem.
On Tue, Mar 7, 2023 at 8:28 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Siddharth Jain <siddhsql(at)gmail(dot)com> writes:
> > But when I try to start the server I get this:
>
> > 2023-03-07 17:16:43.228 PST [25925] LOG: could not bind IPv6 address
> > "::1": Address already in use
> > 2023-03-07 17:16:43.228 PST [25925] HINT: Is another postmaster already
> > running on port 5432? If not, wait a few seconds and retry.
> > 2023-03-07 17:16:43.228 PST [25925] LOG: could not bind IPv4 address
> > "127.0.0.1": Address already in use
> > 2023-03-07 17:16:43.228 PST [25925] HINT: Is another postmaster already
> > running on port 5432? If not, wait a few seconds and retry.
>
> That's pretty clear I think: the ports are already bound.
>
> > I ran:
> > netstat -ln -p tcp | grep 5432
> > and there is no output.
>
> This is the wrong incantation for this purpose. Try
>
> netstat -an -p tcp | grep 5432
>
> I expect you'll see a couple of ports in LISTEN state. Unfortunately,
> netstat is not much help at locating the processes listening to such
> ports. This might be more help:
>
> lsof -n | grep 5432
>
> regards, tom lane
>
From | Date | Subject | |
---|---|---|---|
Next Message | Bryn Llewellyn | 2023-03-08 21:29:28 | Re: Behavior of PL/pgSQL function following drop and re-create of a table that it uses |
Previous Message | David G. Johnston | 2023-03-08 05:27:55 | Re: Behavior of PL/pgSQL function following drop and re-create of a table that it uses |