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

    Mysql database passord must be reset to get Fog working again

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    4
    7
    1.9k
    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.
    • F
      Frode Woldsund
      last edited by

      Server
      • FOG Version: 1.4.0
      • OS: Ubuntu Server 16.04
      Client
      • Service Version: N/A
      • OS: Win 10 Pro 64bit
      Description

      Hi,

      We have a recurring issue where fog stops working and the webportal shows a database error message. All computers that are started after this point will go into a boot loop.

      The workaround is to reset the mysql password with the following command.
      ALTER USER ‘root’@‘localhost’ IDENTIFIED WITH mysql_native_password BY ‘’;

      We have tested fog project version 1.3.0, 1.4.0 with ubuntu server 16.04.
      During installation we used the following command: sudo php_ver=‘7.0’ php_verAdds=‘-7.0’ ./installfog.sh -y

      Is this a problem the fogproject is aware of, or have we done something completely wrong in our setup.

      The mysql password we use is blank, would that be a problem?

      Please let me know what other information I need to provide to find a solution for this problem, or if there are anything you want me to test. I do not have a way to reproduce the issue other than waiting for it to happen again, which is usually once a month on one of our servers.

      1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by

        @Frode-Woldsund Might be caused by unattended upgrades, see here: https://forums.fogproject.org/topic/10006/ubuntu-is-fog-s-enemy

        Depending on when the issue comes up (e.g. after running the FOG installer) this might also be caused by passwords not matching up in the two different files /opt/fog/.fogsettings (settings used by the installer) and /var/www/fog/lib/fog/config.class.php (the active PHP config used to connect to the DB).

        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

        F 1 Reply Last reply Reply Quote 1
        • Wayne WorkmanW
          Wayne Workman
          last edited by

          To avoid this issue altogether, I’d suggest your next FOG server use Debian or CentOS.

          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!
          Daily Clean Installation Results:
          https://fogtesting.fogproject.us/
          FOG Reporting:
          https://fog-external-reporting-results.fogproject.us/

          F 1 Reply Last reply Reply Quote 2
          • F
            Frode Woldsund @Wayne Workman
            last edited by

            @Wayne-Workman Thanks, I will surly try using debian as our default setup, if that is a more recomanded OS for the fog project.

            1 Reply Last reply Reply Quote 1
            • F
              Frode Woldsund @Sebastian Roth
              last edited by

              @Sebastian-Roth Thanks, It is much possible that this is due to unattended upgrades. I’ll have a look at the forum tread you posted and also check our configuration files. But as @Wayne-Workman said, switching to debian might just solve this more permanent.

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

                @Frode-Woldsund Or you could set a mysql password and just use it… This particular issue only occurs on DB’s that have no password defined. I don’t like that ubuntu keeps forcing the code after the user has defined it, but this should not be the case if the password is already set.

                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

                F 1 Reply Last reply Reply Quote 1
                • F
                  Frode Woldsund @Tom Elliott
                  last edited by

                  Hi @Tom-Elliott,
                  That might just be the solution. Not sure why, but I had the perception that having a db with no password was the recomanded way. Again, thanks for helping me out and for developing and giving support to this fantastic tool!

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

                  300

                  Online

                  12.0k

                  Users

                  17.3k

                  Topics

                  155.2k

                  Posts
                  Copyright © 2012-2024 FOG Project