469,637 Members | 1,565 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,637 developers. It's quick & easy.

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

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 ma*******@postgresql.org)

Nov 23 '05 #1
2 13377
From: "Ying Lu" <yi*****@cs.concordia.ca>
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

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

Nov 23 '05 #2
Thank you gnari,

I deleted the postmaster.pid and /tmp/.s.PGSQL.5432.lock files; now it
works :)
gnari wrote:
From: "Ying Lu" <yi*****@cs.concordia.ca>

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

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

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

Nov 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by SoSaucily | last post: by
2 posts views Thread by phil | last post: by
5 posts views Thread by Dic4000 | last post: by
94 posts views Thread by Samuel R. Neff | last post: by
reply views Thread by =?Utf-8?B?eHl6X2phdA==?= | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.