Re: could not bind IPv4 socket

From: Grzegorz Buś <gall(at)p-team(dot)org>
To: "'Adrian Klaver'" <aklaver(at)comcast(dot)net>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: could not bind IPv4 socket
Date: 2009-05-04 13:41:59
Message-ID: 000901c9ccbe$1d3ba330$57b2e990$@org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ok., that's it. After deleting this files everything works fine. Thanks ;)

--
Kind Regards,
Grzegorz Bus

-----Original Message-----
From: Adrian Klaver [mailto:aklaver(at)comcast(dot)net]
Sent: Monday, May 04, 2009 3:19 PM
To: pgsql-general(at)postgresql(dot)org
Cc: Grzegorz Buś
Subject: Re: [GENERAL] could not bind IPv4 socket
Importance: High

On Monday 04 May 2009 4:29:27 am Grzegorz Buś wrote:
> When I run separately start/stop commands I still get "could not bind
> socket" message:
>
> # service postgresql stop
> Stopping postgresql service: [ OK ]
> # netstat -plunt | grep 5432
> # ps -A | grep postmaster
> # rm /var/lib/pgsql/pgstartup.log
> rm: remove regular file `/var/lib/pgsql/pgstartup.log'? y
> # service postgresql start
> Starting postgresql service: [ OK ]
> # cat /var/lib/pgsql/pgstartup.log
> LOG: could not bind IPv4 socket: Address already in use
> HINT: Is another postmaster already running on port 5432? If not, wait a
> few seconds and retry.
>
> --
> Kind Regards,
> Grzegorz Bus
>
> -----Original Message-----
>

In my /tmp directory I have the following when the server is running. These
files are removed on shutdown. When you do your shutdown, check and see if they
are still there and what there timestamp is. Could be there are left over files
from your previous version.

/tmp$
srwxrwxrwx 1 postgres postgres 0 2009-05-04 05:51 .s.PGSQL.5432
-rw------- 1 postgres postgres 27 2009-05-04 05:51 .s.PGSQL.5432.lock

--
Adrian Klaver
aklaver(at)comcast(dot)net

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Markus Wollny 2009-05-04 13:43:57 Re: diff-/patch-functionality for text-type data inside PostgreSQL
Previous Message Martijn van Oosterhout 2009-05-04 13:30:23 Re: diff-/patch-functionality for text-type data inside PostgreSQL