PostGre SQL not starting up automatically

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

PostGre SQL not starting up automatically

Postby BillyTheBull » Tue Jun 17, 2008 2:24 am

I frequently have to start up PostGre SQL manually after my computer boots, even though I have it set up to load at boot up (at least I think so) . . . are there any settings/registry keys I can check or modify to make sure it's properly set up to load when Windows (XP Pro) boots?
BillyTheBull
 
Posts: 57
Joined: Wed Feb 06, 2008 6:16 pm
Location: Denver, CO

Re: PostGre SQL not starting up automatically

Postby keggler » Tue Jun 17, 2008 3:45 am

when you run the services.msc snap-in, what is the properties showing for the postgres service regards "startup type"?

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

Re: PostGre SQL not starting up automatically

Postby BillyTheBull » Sun Jun 22, 2008 7:38 pm

keggler wrote:when you run the services.msc snap-in, what is the properties showing for the postgres service regards "startup type"?
It shows Startup Type "automatic" and Log On As ".\postgres", yet it continues NOT to start up automatically; is there a setting I can change in the services menu to fix this?
BillyTheBull
 
Posts: 57
Joined: Wed Feb 06, 2008 6:16 pm
Location: Denver, CO

Re: PostGre SQL not starting up automatically

Postby keggler » Mon Jun 23, 2008 11:57 am

in the services snap-in, have you got a path to the executable that looks something like this:

"C:\Program Files\PostgreSQL\8.3\bin\pg_ctl.exe" runservice -w -N "pgsql-8.3" -D "C:\Program Files\PostgreSQL\8.3\data\"

also, is there anything in the Windows event log that might indicate the services starts at boot, then gets stopped [by something]?


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

Re: PostGre SQL not starting up automatically

Postby Wildebeest » Tue Jun 24, 2008 12:14 am

Ive having the same problem, in services, postgres is supposed to be starting automatically in startup...but it doesnt.
this problem has been occuring since my machine got dumped...
when i manually told it in start in that windows snapin thing, it said that the service 'started and then stopped'
Wildebeest
 
Posts: 20
Joined: Sun May 25, 2008 11:25 pm

Re: PostGre SQL not starting up automatically

Postby tarix » Tue Jun 24, 2008 1:46 am

A few things to check:

Run 'net user' from a command prompt. Do you see the postgres user there?

In the services snap-in:

Right click "PostgresSQL Database Sever ..."
Click Properties.
Click the Log On tab.

Check the following:
"This account:" selected and filled with ".\postgres"
Type and retype the password.
tarix
Developer
 
Posts: 3760
Joined: Tue May 20, 2008 2:49 pm

Re: PostGre SQL not starting up automatically

Postby Wildebeest » Tue Jun 24, 2008 3:45 am

postgres is there
and it still wont let me run it...
how do i reinstall without losing my database?
Wildebeest
 
Posts: 20
Joined: Sun May 25, 2008 11:25 pm

Re: PostGre SQL not starting up automatically

Postby tarix » Tue Jun 24, 2008 4:48 am

Wildebeest wrote:how do i reinstall without losing my database?


I suggest you don't. You need to look in the System Log and find out why it won't start.
tarix
Developer
 
Posts: 3760
Joined: Tue May 20, 2008 2:49 pm

Re: PostGre SQL not starting up automatically

Postby keggler » Tue Jun 24, 2008 3:06 pm

Wildebeest wrote:postgres is there
and it still wont let me run it...
how do i reinstall without losing my database?



you could always back your database up; and for good measure, make sure you have all the hh's backed up as well - then wack postgres and start a fresh with a new db, then restore or re-populate; but methinks the postgres service problem will persist even if you do that...

check the windows event log to see why it won't start and post back - it could be another app. with a lock on a folder on registry key that's inhibiting postgres from getting going...


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

Re: PostGre SQL not starting up automatically

Postby BillyTheBull » Wed Jun 25, 2008 10:04 pm

keggler wrote:in the services snap-in, have you got a path to the executable that looks something like this:

"C:\Program Files\PostgreSQL\8.3\bin\pg_ctl.exe" runservice -w -N "pgsql-8.3" -D "C:\Program Files\PostgreSQL\8.3\data\"

also, is there anything in the Windows event log that might indicate the services starts at boot, then gets stopped [by something]?
Yup, I do . . . after a few re-boots and paying closer attention, I'm now thinking PostGre is actually set up right, as it does start up about half the time . . . the other times, some other app must be interfering with it, but I haven't been able to figure out what might be the culprit. If I do figure that out, I'll update this post, as someone else might be having the same issue. . . .
BillyTheBull
 
Posts: 57
Joined: Wed Feb 06, 2008 6:16 pm
Location: Denver, CO

Next

Return to PostgreSQL [Read Only]

Who is online

Users browsing this forum: No registered users and 40 guests

cron