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

Possible bug with CentOS 7, MariaDB and FOG services.

Scheduled Pinned Locked Moved Solved
Bug Reports
3
5
2.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.
  • S
    SKasai
    last edited by SKasai Aug 12, 2015, 2:22 PM Aug 12, 2015, 8:18 PM

    May have found a possible bug with CentOS 7, with MariaDB and FOG build 4375…

    Rebooting CentOS 7, checking Systemctl, seeing the following:

    FOGImageReplicator.service loaded inactive dead FOGImageReplicator
    FOGMulticastManager.service loaded inactive dead FOGMulticastManager
    FOGScheduler.service loaded inactive dead FOGScheduler
    FOGSnapinReplicator.service loaded inactive dead FOGSnapinReplicator

    Doing a systemctl status on one of the services…

    FOGScheduler.service - FOGScheduler
    Loaded: loaded (/usr/lib/systemd/system/FOGScheduler.service; enabled)
    Active: inactive (dead) since Wed 2015-08-12 13:09:50 PDT; 3min 32s ago
    Process: 878 ExecStart=/opt/fog/service/FOGTaskScheduler/FOGTaskScheduler & (code=exited, status=0/SUCCESS)
    Main PID: 878 (code=exited, status=0/SUCCESS)
    CGroup: /system.slice/FOGScheduler.service

    Aug 12 13:09:43 control systemd[1]: Started FOGScheduler.
    Aug 12 13:09:50 control FOGTaskScheduler[878]: PHP Warning: mysqli::mysqli(): (HY000/2002): Connection refused in /var/www/html/fog/lib/db/MySQL.class.php on line 37
    Aug 12 13:09:50 control FOGTaskScheduler[878]: PHP Warning: mysqli::mysqli(): (HY000/2002): Connection refused in /var/www/html/fog/lib/db/MySQL.class.php on line 39
    Aug 12 13:09:50 control FOGTaskScheduler[878]: PHP Warning: mysqli::query(): Couldn’t fetch mysqli in /var/www/html/fog/lib/db/MySQL.class.php on line 63

    However, when you try and restart it, works fine. So this could be a timing issue with MariaDB and/or CentOS 7…

    1 Reply Last reply Reply Quote 0
    • T
      Tom Elliott
      last edited by Aug 12, 2015, 8:50 PM

      This is a known issue but not a known and nice method of actually fixing it. Particularly for centos 7, it’s fairly simple to just require mariadb service, but this is not necessarily the right approach as other systemd setups may not require mariadb.

      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 0
      • S
        SKasai
        last edited by Aug 12, 2015, 8:53 PM

        Ok… Then basically for now, just have a hack shellscript to do…

        #!/bin/sh
        /usr/bin/systemctl restart FOGImageReplicator.service
        /usr/bin/systemctl restart FOGMulticastManager.service
        /usr/bin/systemctl restart FOGScheduler.service
        /usr/bin/systemctl restart FOGSnapinReplicator.service

        Got it. 🙂 (Yes, I know it can be manually started, but easier just to do this for ‘deadhead’ purposes).

        W 1 Reply Last reply Aug 12, 2015, 10:02 PM Reply Quote 0
        • W
          Wayne Workman @SKasai
          last edited by Aug 12, 2015, 10:02 PM

          @SKasai There’s a similar issue with Fedora. Here is my fix that Tom helped me with this past spring. I’ve simply beautified the steps here lol. https://wiki.fogproject.org/wiki/index.php/Fedora_21_Server#Set_the_FOG_services_to_start_30_seconds_after_boot

          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/

          1 Reply Last reply Reply Quote 0
          • T
            Tom Elliott
            last edited by Aug 12, 2015, 10:49 PM

            I’m still working on it but current trunk should have a better mechanism to handle all of this. Hopefully.

            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 0
            • 1 / 1
            1 / 1
            • First post
              1/5
              Last post

            221

            Online

            12.0k

            Users

            17.3k

            Topics

            155.2k

            Posts
            Copyright © 2012-2024 FOG Project