Re: Cannot Start Postgres After System Boot

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Cannot Start Postgres After System Boot
Date: 2010-10-21 04:40:33
Message-ID: AANLkTimBJZz9B_MVjRd-utFH6UyGvFTDdPoDuVD0vJCd@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Oct 20, 2010 at 4:53 PM, Rich Shepard <rshepard(at)appl-ecosys(dot)com> wrote:
>  For reasons I do not understand, the Slackware start-up file for postgres
> (/etc/rc.d/rc.postgresql) fails to work properly after I reboot the system.
> (Reboots normally occur only after a kernel upgrade or with a hardware
> failure that crashes the system.)
>
>  Trying to restart the system manually (su postgres -c 'postgres -D
> /var/lib/pgsql/data &') regardless of the presence of /tmp/.s.PGSQL.5432
> and /var/lib/pgsql/postmaster.pid. Here's what I see:
>
> [rshepard(at)salmo ~]$ su postgres -c 'postgres -D /var/lib/pgsql/data &'
> Password: [rshepard(at)salmo ~]$ 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.
> WARNING:  could not create listen socket for "localhost"
> FATAL:  could not create any TCP/IP sockets

Are you sure postgresql isn't getting started by some other init
script before this one runs? warnings that a port can't be bound to
is usually just that. something else is on it. What does lsof tell
you is running on that port?

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2010-10-21 04:47:39 Re: pg_temp implicit search path: functions vs. tables
Previous Message Fujii Masao 2010-10-21 04:39:26 Re: Problem with Postgresql 9.0 streaming replication on Solaris 10 (x86)