Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
postgresql hangs on reboot?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
dsomers
n00b
n00b


Joined: 25 Dec 2004
Posts: 48
Location: Luxembourg

PostPosted: Mon Jan 09, 2006 5:47 pm    Post subject: postgresql hangs on reboot? Reply with quote

I'm having some weirdness with postgresql (8.1.1).

I can manually stop the process using /etc/init.d/postgresql stop.

However, when I reboot my machine, it starts stopping the processes and freezes when it gets to postgresql (and I end up hitting the Big Red Switch).

Any ideas on why it freezes during a shutdown for reboot but not when manually stopped?
Back to top
View user's profile Send private message
TheAl
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jan 2004
Posts: 134

PostPosted: Wed Jan 11, 2006 11:32 am    Post subject: Reply with quote

please post here the content of your Pg log files (check the logfile name in /etc/conf.d/postgresql)

And pay attention that the normal Pg shutdown wait for all connexions to databases are down before closing the server.
This mean that if you still get a process connected to your DB, server wont shut down until you force it.
Back to top
View user's profile Send private message
dsomers
n00b
n00b


Joined: 25 Dec 2004
Posts: 48
Location: Luxembourg

PostPosted: Wed Jan 11, 2006 6:23 pm    Post subject: net stopped before postgresql stopped? Reply with quote

One thing I did notice was that during reboot, as the machine shuts down, the NET services (eth0, lo) are stopped before Gentoo attempts to stop PostgreSQL.

This is weird since PostgreSQL has a depend on NET, so I would have expected the NET services to be stopped after PostgreSQL has been stopped.
Back to top
View user's profile Send private message
mblakeman
n00b
n00b


Joined: 17 Apr 2004
Posts: 8

PostPosted: Wed Jun 07, 2006 9:49 am    Post subject: I'm having the same problem Reply with quote

Did anyone find a solution to this problem. I am having the same issue. Is it possible it is related to NIS?
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Wed Jun 07, 2006 10:11 am    Post subject: Reply with quote

Try setting e.g. RC_NET_STRICT_CHECKING="yes" in /etc/conf.d/rc
Back to top
View user's profile Send private message
mblakeman
n00b
n00b


Joined: 17 Apr 2004
Posts: 8

PostPosted: Wed Jun 07, 2006 11:10 am    Post subject: RC_NET_STRICT_CHECKING="yes" didn't work Reply with quote

Thanks for your tip but it didn't make a difference.

After making this change and rebooting I also ran

Code:
depscan.sh -u


Shutdown still hangs on "Stopping PostgreSQL" for about 8 minutes.

I have only just installed PostgreSQL and I have no databases so I can't see how it should take that long to stop.

The eth0 and lo are both stopped before PostgreSQL. Would this be the problem?

This PostgreSQL server is a NIS client but I can't see how that could be causing any problems either.

Stopping PostgreSQL manually using

Code:
/etc/init.d/postgresql stop

before shutdown works perfectly.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum