Neither MySQL nor FOGMulticastManager runs at boot
-
When I first boot my server, I have to start MySQL manually and also stop, then start FOGMulticastManager manually. If I run service --status-all before I do anything with FMM, it has a question mark. If I try to start it, it shows Fail. If I stop it, then start it, it works.
Edit: Running FOG 1.2.0 with Ubuntu Server 14.04.2 x32
-
WHat Linux OS are you running? I am going to Guess Ubuntu. Also just incase it matters what FOG version?
-
Sorry. Thought I put that in there. Ubuntu server 14.04.2 x32 with fog 1.2.0
-
In that case I am pretty sure @Tom posted in another forum a potential solution, though I don’t think it covered both of the services you are having an issue with. I will see if I can find it.
-
Look at this post it has your fix: https://forums.fogproject.org/topic/5120/issue-with-fog-server-after-running-updates-on-ubuntu-14-04
-
Okay, so he said:
One of the things I hate about Ubuntu, lately, is exactly this.
Ever since moving to Upstart to control services, the services seem to no longer be controlled.
It will start services before the dependent services (Networking, Local system, etc…) is running.
This breaks other things as well, such as the linux side FOG Services (FOGMulticastManager,FOGScheduler, etc…)
What’s happening, from what I can see, is it starts mysql before networking is ready. It works for a small amount of time, but then when networking is ACTUALLY ready, the service fails. Upstart is supposed to handle restarting a crashed service, but it’s almost like it was completely forgotten about.But I don’t understand, am I supposed to find or know a way to delay or rearrange the order the servies start up?
-
@nengelhardt There’s more information in that thread than what I typed.
-
@nengelhardt Sorry, I should have added what you want is to look at the post above Tom’s. It is the link he just posted above. I was trying to give you all the info rather than just the fix.
-
Yeah. I don’t know how I missed that.
So I need to do:
sudo su - cd /var/lib/mysql mv ibdata1 ibdata1.bak mv ib_logfile0 ib_logfile0.bak mv ib_logfile1 ib_logfile1.bak cp -a ibdata1.bak ibdata1 cp -a ib_logfile0.bak ib_logfile0 cp -a ib_logfile1.bak ib_logfile1 service mysql restart
and
echo manual | sudo tee /etc/init/mysql.override
Edit the /etc/rc.local file before the exit 0; line add:
sleep 30 && start mysql
right?
-
That is what I did. I will say I haven’t rebooted in a while so not sure if it worked for me but that is what I did.