Connecting Tech Pros Worldwide Forums | Help | Site Map

About "lock file postmaster.pid" Error , cannot setup postmaster

Ying Lu
Guest
 
Posts: n/a
#1: Nov 23 '05
Hello all,

I met a problem about cannot start postmaster.

The situation I met is that I was running postmaster, but because of the
server closed all my konsole. As a result, I did not shutdown postmaster
successfully. Next time, when I tried to run
postmaster -D /usr/local/postgresql/data, I got the following error:

FATAL: lock file "/usr/local/postgresql/data/postmaster.pid" already exists

Thanks in advance,
Emi



---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)


gnari
Guest
 
Posts: n/a
#2: Nov 23 '05

re: About "lock file postmaster.pid" Error , cannot setup postmaster


From: "Ying Lu" <ying_lu@cs.concordia.ca>[color=blue]
> The situation I met is that I was running postmaster, but because of the
> server closed all my konsole. As a result, I did not shutdown postmaster
> successfully. Next time, when I tried to run
> postmaster -D /usr/local/postgresql/data, I got the following error:
>
> FATAL: lock file "/usr/local/postgresql/data/postmaster.pid" already[/color]
exists

did you try to rm /usr/local/postgresql/data/postmaster.pid ?

gnari



---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Ying Lu
Guest
 
Posts: n/a
#3: Nov 23 '05

re: About "lock file postmaster.pid" Error , cannot setup postmaster


Thank you gnari,

I deleted the postmaster.pid and /tmp/.s.PGSQL.5432.lock files; now it
works :)


gnari wrote:
[color=blue]
>From: "Ying Lu" <ying_lu@cs.concordia.ca>
>
>[color=green]
>>The situation I met is that I was running postmaster, but because of the
>>server closed all my konsole. As a result, I did not shutdown postmaster
>>successfully. Next time, when I tried to run
>>postmaster -D /usr/local/postgresql/data, I got the following error:
>>
>>FATAL: lock file "/usr/local/postgresql/data/postmaster.pid" already
>>
>>[/color]
>exists
>
>did you try to rm /usr/local/postgresql/data/postmaster.pid ?
>
>gnari
>
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>
>[/color]


---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

Closed Thread