Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Developers' Forum

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 9th July 2009, 00:09
ahagadorn ahagadorn is offline
Junior Member
Join Date: Oct 2008
Posts: 22
Thanks: 1
Thanked 5 Times in 4 Posts
Default Issue with server.php lock file

My master server went down today, and after I brought it back up MySQL got a couple hundred connections from my slave server. I looked on the slave server, and there were a couple hundred server.sh processes running. Apparently they were all in the wait loop waiting for the master to come back. MySQL on the master ran out of connections, so there was no choice but to kill the processes on the slave.

So, after I did that everything was fine, but the server.sh processes started to build up again. there was a .ispconfig_lock file left behind because of the kills, and they were all waiting for it to clear, which of course it never will unless it is deleted manually. I killed the server.sh processes again, deleted the lock file, and now it's OK again.

This problem could be solved by putting the PID of the server.php process in the lock file. Then the next process in line can read it, and check to see if that process still exists. If not, it can replace it with it's own PID file, and it can go ahead and run. If the other process is still running, really it should die and let the next cron pick up rather than wait - the script is going to run in cron in another minute regardless.

Anyway, this is a potential headache every time a lock file is left behind, or the slave can not contact the master.
Reply With Quote
Sponsored Links
Old 9th July 2009, 09:52
Croydon Croydon is offline
ISPConfig Developer
Join Date: Jul 2007
Location: Koblenz, Germany
Posts: 932
Thanks: 16
Thanked 264 Times in 208 Posts

There have been some changes to this behaviour in the current svn version So it should be in the next release.
Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix delivery problem erebus Installation/Configuration 8 29th July 2014 21:17
All my mail is going to /var/mail/vmail _sluimers_ Installation/Configuration 21 10th January 2011 14:21
Chroot SSH + ISPConfig Norman Installation/Configuration 27 26th March 2007 04:40
Systemimager (rsync) doesn't copy all comedit HOWTO-Related Questions 11 19th January 2007 18:17
Howto suggestion suse PhP ver 4 + Ver 5 wwparrish Suggest HOWTO 11 7th August 2006 14:29

All times are GMT +2. The time now is 03:23.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.