Postmaster refuses to start

PostgreSQL is the database server used to store information. Do you have a question or are you having problem with PostgreSQL? If so, post them here.

Moderator: Moderators

Postmaster refuses to start

Postby fussie » Sun Jul 20, 2008 8:29 am

Yesterday, I got this message when I started PT3:

Unable to login to database. Reason: could not connect to server: connection refused. Is the host running on localhost ...

I then noticed that the postmaster service could not be started. If i try to manually start it from services.msc, I get the following message:

Windows could not start the PostgreSQL service on Local Computer.
Error 1053: The service did not respond to the start or control request in a timely fashion.


I've tried to see what's going on with Procmon but it doesn't make much sense to me. I can't find any programs (like a firewall) that is blocking the postmaster service.

However for "pg_ctl.exe", I get a lot of "NAME NOT FOUND" and "FAST IO DISALLOWED" results. Could this be the problem? Any help appreciated. I can also post screenshots if that helps.

Thanks
fussie
 
Posts: 3
Joined: Sun May 11, 2008 4:48 am

Re: Postmaster refuses to start

Postby WhiteRider » Sun Jul 20, 2008 8:40 am

Have a look in the Database / Postgres FAQ and search for postmaster - there was a recommendation from someone about a similar sounding issue.
WhiteRider
Moderator
 
Posts: 54018
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Postmaster refuses to start

Postby fussie » Sun Jul 20, 2008 9:24 am

Yes, I've already tried doing that but it does not work. The service just refuses to start, wether I try it via services.msc or the "start service" command in the postgreSQL dir.

EDIT: i can't find a postmaster.pid file on my pc either.
fussie
 
Posts: 3
Joined: Sun May 11, 2008 4:48 am

Re: Postmaster refuses to start

Postby fussie » Sun Jul 20, 2008 9:50 am

Alright, I just fixed the problem myself:

The postmaster.pid file was hidden for some reason?! That's why I couldnt find it on my pc. After turning on "View hidden files and folders", I was able to find it in the ./Program Files/postgresql/8.2/data folder.

If other people have this same problem, this is how I fixed it.

Thanks for your help WhiteRider.
fussie
 
Posts: 3
Joined: Sun May 11, 2008 4:48 am

Re: Postmaster refuses to start

Postby WhiteRider » Sun Jul 20, 2008 9:59 am

No problem - glad you got it fixed. I'll add that to the FAQ, thanks.
WhiteRider
Moderator
 
Posts: 54018
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Postmaster refuses to start

Postby davey0725 » Wed Jul 23, 2008 1:32 pm

I'm having the same problem but I am unable to find the postmaster.pid file, even in hidden files. I put in a support ticket but was just wondering if anyone had any quick ideas to try.
davey0725
 
Posts: 3
Joined: Wed May 14, 2008 9:07 pm

Re: Postmaster refuses to start

Postby keggler » Wed Jul 23, 2008 4:58 pm

gonna have to take you down the procmon route i'm afraid... i'll walk you through it if you like...


susan
keggler
 
Posts: 640
Joined: Sun Jun 01, 2008 4:53 am

Re: Postmaster refuses to start

Postby davey0725 » Wed Jul 23, 2008 6:56 pm

I figured it out... I turned off some things on my computer to make it start up faster and I unchecked the Postgres box. Everything is working good now.
davey0725
 
Posts: 3
Joined: Wed May 14, 2008 9:07 pm

Re: Postmaster refuses to start

Postby keggler » Wed Jul 23, 2008 7:04 pm

hi davey,

glad you got it sorted...

if you can spare the time to post back what you "turned off" (i guess in msconfig?) and post them up here, we can add them to the FAQ on this problem, which can be a real sod to sort out... it's quite often anti-virus or spam filter software; but not always...


susan
keggler
 
Posts: 640
Joined: Sun Jun 01, 2008 4:53 am

Re: Postmaster refuses to start

Postby davey0725 » Wed Jul 23, 2008 10:15 pm

msconfig - services - PostgresSQL Database Server 8.2
davey0725
 
Posts: 3
Joined: Wed May 14, 2008 9:07 pm


Return to PostgreSQL [Read Only]

Who is online

Users browsing this forum: No registered users and 20 guests

cron