• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Neither MySQL nor FOGMulticastManager runs at boot

    Scheduled Pinned Locked Moved Unsolved
    FOG Problems
    3
    10
    3.2k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      nengelhardt
      last edited by nengelhardt

      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

      1 Reply Last reply Reply Quote 0
      • T
        Tim.Trageser
        last edited by

        WHat Linux OS are you running? I am going to Guess Ubuntu. Also just incase it matters what FOG version?

        1 Reply Last reply Reply Quote 0
        • N
          nengelhardt
          last edited by

          Sorry. Thought I put that in there. Ubuntu server 14.04.2 x32 with fog 1.2.0

          1 Reply Last reply Reply Quote 0
          • T
            Tim.Trageser
            last edited by

            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.

            1 Reply Last reply Reply Quote 0
            • T
              Tim.Trageser
              last edited by

              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

              1 Reply Last reply Reply Quote 0
              • N
                nengelhardt
                last edited by

                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?

                Tom ElliottT 1 Reply Last reply Reply Quote 0
                • Tom ElliottT
                  Tom Elliott @nengelhardt
                  last edited by

                  @nengelhardt There’s more information in that thread than what I typed.

                  https://github.com/fogproject/fogproject/issues/1

                  Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                  Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                  Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                  1 Reply Last reply Reply Quote 1
                  • T
                    Tim.Trageser
                    last edited by

                    @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.

                    1 Reply Last reply Reply Quote 0
                    • N
                      nengelhardt
                      last edited by

                      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?

                      1 Reply Last reply Reply Quote 0
                      • T
                        Tim.Trageser
                        last edited by

                        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.

                        1 Reply Last reply Reply Quote 0
                        • 1 / 1
                        • First post
                          Last post

                        193

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project