From: | Lennin Caro <lennin(dot)caro(at)yahoo(dot)com> |
---|---|
To: | Rich Shepard <rshepard(at)appl-ecosys(dot)com>, reid(dot)thompson(at)ateb(dot)com |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Cannot Start Postgres After System Boot |
Date: | 2010-10-21 17:36:54 |
Message-ID: | 531108.83992.qm@web59511.mail.ac4.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
--- On Thu, 10/21/10, Reid Thompson <reid(dot)thompson(at)ateb(dot)com> wrote:
From: Reid Thompson <reid(dot)thompson(at)ateb(dot)com>
Subject: Re: [GENERAL] Cannot Start Postgres After System Boot
To: "Rich Shepard" <rshepard(at)appl-ecosys(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Date: Thursday, October 21, 2010, 4:28 AM
On 10/20/2010 6:53 PM, Rich Shepard 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
>
> If someone would be kind enough to point out what I'm doing incorrectly
> (e.g., removing /tmp/.s.PGSQL.5432 and postmaster.pid when the startup
> process complains they're not right) I'll save this information for the next
> time. I can also provide the 'start' section of the Slackware init file so I
> could learn why it's not working properly.
>
> TIA,
>
> Rich
>
what does
$ netstat -an|grep 5432
return?
what does
$ ps -ef|grep post
return?
The above indicates that the tcp ipv4 socket is already bound by some process
--
Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
Try to delete the files like this
.s.PGSQL.5432
.s.PGSQL.5432.lock
8.x-main.pid
and restart postmaster
From | Date | Subject | |
---|---|---|---|
Next Message | Rich Shepard | 2010-10-21 17:41:11 | Re: Cannot Start Postgres After System Boot |
Previous Message | Rich Shepard | 2010-10-21 17:35:43 | Re: Cannot Start Postgres After System Boot |