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

    All services are globally disabled

    Scheduled Pinned Locked Moved Unsolved FOG Problems
    7 Posts 2 Posters 453 Views
    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.
    • Greg PlamondonG
      Greg Plamondon Testers
      last edited by

      stable version 1.5.10.1754

      I am spinning up a new fogserver on a new host and I am seeing all services are globally disabled in the logs.

      [02-11-26 6:42:34 pm] * Starting ImageSize Service
      [02-11-26 6:42:34 pm] * Checking for new items every 3600 seconds
      [02-11-26 6:42:34 pm] * Starting service loop
      [02-11-26 6:42:34 pm] * * Image size is globally disabled

      [02-11-26 6:42:34 pm] * Starting SnapinReplicator Service
      [02-11-26 6:42:34 pm] * Checking for new items every 600 seconds
      [02-11-26 6:42:34 pm] * Starting service loop
      [02-11-26 6:42:34 pm] * * Snapin replication is globally disabled

      [02-11-26 6:42:34 pm] * Starting ImageReplicator Service
      [02-11-26 6:42:34 pm] * Checking for new items every 600 seconds
      [02-11-26 6:42:34 pm] * Starting service loop
      [02-11-26 6:42:34 pm] * * Image replication is globally disabled

      I have toggled the service off and on in fog settings but it still does not work.
      Any suggestions or troubleshooting steps would be greatly appreciated.

      Thanks.

      1 Reply Last reply Reply Quote 0
      • Greg PlamondonG
        Greg Plamondon Testers
        last edited by Greg Plamondon

        I found this also:

        ● FOGImageReplicator.service - FOGImageReplicator
        Loaded: loaded (/usr/lib/systemd/system/FOGImageReplicator.service; enabled; preset: disabled)
        Active: active (running) since Wed 2026-02-11 13:41:33 EST; 51min ago
        Main PID: 22945 (php)
        Tasks: 2 (limit: 100404)
        Memory: 15.8M (peak: 18.9M)
        CPU: 1.704s
        CGroup: /system.slice/FOGImageReplicator.service
        ├─22945 php /opt/fog/service/FOGImageReplicator/FOGImageReplicator
        └─22962 php /opt/fog/service/FOGImageReplicator/FOGImageReplicator

        Feb 11 13:41:33 10fogserver systemd[1]: Started FOGImageReplicator.
        Feb 11 13:42:34 10fogserver env[22962]: PHP Warning: DateTime::modify(): Failed to parse time string (+ second) at position 0 (+): Unexpected character in /opt/fog/service/FOGImageReplicator/FOGImageReplicator on line 44
        Feb 11 13:42:34 10fogserver env[22962]: PHP Warning: DateTime::modify(): Failed to parse time string (+ second) at position 0 (+): Unexpected character in /opt/fog/service/FOGImageReplicator/FOGImageReplicator on line 58

        ● FOGSnapinReplicator.service - FOGSnapinReplicator
        Loaded: loaded (/usr/lib/systemd/system/FOGSnapinReplicator.service; enabled; preset: disabled)
        Active: active (running) since Wed 2026-02-11 13:41:33 EST; 52min ago
        Main PID: 22964 (php)
        Tasks: 2 (limit: 100404)
        Memory: 15.8M (peak: 18.9M)
        CPU: 1.794s
        CGroup: /system.slice/FOGSnapinReplicator.service
        ├─22964 php /opt/fog/service/FOGSnapinReplicator/FOGSnapinReplicator
        └─23075 php /opt/fog/service/FOGSnapinReplicator/FOGSnapinReplicator

        Feb 11 13:41:33 10fogserver systemd[1]: Started FOGSnapinReplicator.
        Feb 11 13:42:34 10fogserver env[23075]: PHP Warning: DateTime::modify(): Failed to parse time string (+ second) at position 0 (+): Unexpected character in /opt/fog/service/FOGSnapinReplicator/FOGSnapinReplicator on line 44
        Feb 11 13:42:34 10fogserver env[23075]: PHP Warning: DateTime::modify(): Failed to parse time string (+ second) at position 0 (+): Unexpected character in /opt/fog/service/FOGSnapinReplicator/FOGSnapinReplicator on line 58

        Greg PlamondonG 1 Reply Last reply Reply Quote 0
        • Greg PlamondonG
          Greg Plamondon Testers @Greg Plamondon
          last edited by

          I was able to fix the:

          PHP Warning: DateTime::modify(): Failed to parse time string (+ second) at position 0 (+): Unexpected character in FOGImageSize
          

          Replace:

          $ServiceClass::$zzz != 1 ? '' : 's'
          

          with

          $ServiceClass::$zzz == 1 ? '' : 's'
          

          The same for FOGImageReplicator,FOGImageSize.

          FOGPingHosts:

          Replace:

          $ServiceClass::$zzz != 1 ? '' : 's'
          

          with:

          sprintf(
              '+%s second%s',
              $ServiceClass::$zzz,
              $ServiceClass::$zzz != 1 ? '' : 's'
          )
          
          Tom ElliottT 1 Reply Last reply Reply Quote 0
          • Tom ElliottT
            Tom Elliott @Greg Plamondon
            last edited by

            @Greg-Plamondon I’m not sure I fully understand:

            When I look at the dev-branch files I see that the sprintf method you are doing for PingHosts is what is happening for ImageSize/ImageReplicator

            The code you’re changing is within the sprintf stanzas?

            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

            Greg PlamondonG 1 Reply Last reply Reply Quote 0
            • Greg PlamondonG
              Greg Plamondon Testers @Tom Elliott
              last edited by Greg Plamondon

              @Tom-Elliott
              That may be my problem Tom. I switched to the Stable build, I may have inconsistant DB schema between the two?
              The GUI says I am on Version 1.5.10.1763

              Greg PlamondonG 1 Reply Last reply Reply Quote 0
              • Greg PlamondonG
                Greg Plamondon Testers @Greg Plamondon
                last edited by

                I switched back to the dev-branch because fearing there may be a schema mismatch, but i still have the same issues with all the services being globally disabled.

                Fogsnapinrep.log
                [02-25-26 2:44:26 pm] Interface Ready with IP Address: x.x.x.x
                [02-25-26 2:44:26 pm] Interface Ready with IP Address: 10fogserver
                [02-25-26 2:44:26 pm] Interface Ready with IP Address: 127.0.0.1
                [02-25-26 2:44:26 pm] Interface Ready with IP Address: 127.0.1.1
                [02-25-26 2:44:26 pm] * Starting SnapinReplicator Service
                [02-25-26 2:44:26 pm] * Checking for new items every 600 seconds
                [02-25-26 2:44:26 pm] * Starting service loop
                [02-25-26 2:44:26 pm] * * Snapin replication is globally disabled
                [02-25-26 2:44:26 pm] | Sleep time has changed to seconds
                [02-25-26 2:44:26 pm] * * Snapin replication is globally disabled
                [02-25-26 2:44:26 pm] * * Snapin replication is globally disabled
                [02-25-26 2:44:26 pm] | Sleep time has changed to seconds
                [02-25-26 2:54:26 pm] * * Snapin replication is globally disabled
                [02-25-26 2:54:26 pm] | Sleep time has changed to seconds
                [02-25-26 3:04:26 pm] * * Snapin replication is globally disabled
                [02-25-26 3:04:26 pm] | Sleep time has changed to seconds

                fogreplicator.log
                [02-25-26 2:44:26 pm] Interface Ready with IP Address: x.x.x.x
                [02-25-26 2:44:26 pm] Interface Ready with IP Address: 10fogserver
                [02-25-26 2:44:26 pm] Interface Ready with IP Address: 127.0.0.1
                [02-25-26 2:44:26 pm] Interface Ready with IP Address: 127.0.1.1
                [02-25-26 2:44:26 pm] * Starting ImageReplicator Service
                [02-25-26 2:44:26 pm] * Checking for new items every 600 seconds
                [02-25-26 2:44:26 pm] * Starting service loop
                [02-25-26 2:44:26 pm] * * Image replication is globally disabled
                [02-25-26 2:44:26 pm] | Sleep time has changed to seconds
                [02-25-26 2:44:26 pm] * * Image replication is globally disabled
                [02-25-26 2:44:26 pm] * * Image replication is globally disabled
                [02-25-26 2:44:26 pm] | Sleep time has changed to seconds
                [02-25-26 2:54:26 pm] * * Image replication is globally disabled
                [02-25-26 2:54:26 pm] | Sleep time has changed to seconds
                [02-25-26 3:04:26 pm] * * Image replication is globally disabled
                [02-25-26 3:04:26 pm] | Sleep time has changed to seconds

                fogscheduler.log
                [02-25-26 2:44:26 pm] Interface Ready with IP Address: x.x.x.x
                [02-25-26 2:44:26 pm] Interface Ready with IP Address: 10fogserver
                [02-25-26 2:44:26 pm] Interface Ready with IP Address: 127.0.0.1
                [02-25-26 2:44:26 pm] Interface Ready with IP Address: 127.0.1.1
                [02-25-26 2:44:26 pm] * Starting TaskScheduler Service
                [02-25-26 2:44:26 pm] * Checking for new items every 60 seconds
                [02-25-26 2:44:26 pm] * Starting service loop
                [02-25-26 2:44:26 pm] * No tasks found!
                [02-25-26 2:45:26 pm] * Task Scheduler is globally disabled
                [02-25-26 2:45:26 pm] | Sleep time has changed to seconds
                [02-25-26 2:46:26 pm] * Task Scheduler is globally disabled
                [02-25-26 2:46:26 pm] | Sleep time has changed to seconds
                [02-25-26 2:47:26 pm] * Task Scheduler is globally disabled
                [02-25-26 2:47:26 pm] | Sleep time has changed to seconds
                [02-25-26 2:48:26 pm] * Task Scheduler is globally disabled
                [02-25-26 2:48:26 pm] | Sleep time has changed to seconds
                [02-25-26 2:49:26 pm] * Task Scheduler is globally disabled
                [02-25-26 2:49:26 pm] | Sleep time has changed to seconds
                [02-25-26 2:50:26 pm] * Task Scheduler is globally disabled
                [02-25-26 2:50:26 pm] | Sleep time has changed to seconds
                [02-25-26 2:51:26 pm] * Task Scheduler is globally disabled
                [02-25-26 2:51:26 pm] | Sleep time has changed to seconds
                [02-25-26 2:52:26 pm] * Task Scheduler is globally disabled
                [02-25-26 2:52:26 pm] | Sleep time has changed to seconds
                [02-25-26 2:53:26 pm] * Task Scheduler is globally disabled
                [02-25-26 2:53:26 pm] | Sleep time has changed to seconds
                [02-25-26 2:54:26 pm] * Task Scheduler is globally disabled

                The same for these logs as well.
                fogimagesize.log
                fogsnapinhash.log
                fogsnapinrep.log
                pinghost.log

                I have checked the mysql DB

                SELECT settingID, settingKey, settingValue
                FROM globalSettings
                WHERE settingKey LIKE '%ENABLED%';
                
                "settingID"	"settingKey"	"settingValue"
                "33"	"FOG_CLIENT_DIRECTORYCLEANER_ENABLED"	"0"
                "35"	"FOG_CLIENT_USERCLEANUP_ENABLED"	"0"
                "36"	"FOG_CLIENT_GREENFOG_ENABLED"	"0"
                "37"	"FOG_CLIENT_AUTOLOGOFF_ENABLED"	"0"
                "38"	"FOG_CLIENT_DISPLAYMANAGER_ENABLED"	"0"
                "45"	"FOG_CLIENT_HOSTNAMECHANGER_ENABLED"	"1"
                "46"	"FOG_CLIENT_SNAPIN_ENABLED"	"1"
                "48"	"FOG_CLIENT_CLIENTUPDATER_ENABLED"	"0"
                "49"	"FOG_CLIENT_HOSTREGISTER_ENABLED"	"1"
                "50"	"FOG_CLIENT_PRINTERMANAGER_ENABLED"	"0"
                "51"	"FOG_CLIENT_TASKREBOOT_ENABLED"	"1"
                "52"	"FOG_CLIENT_USERTRACKER_ENABLED"	"1"
                "58"	"FOG_PLUGINSYS_ENABLED"	"1"
                "121"	"FOG_REGISTRATION_ENABLED"	"1"
                "156"	"FOG_CLIENT_POWERMANAGEMENT_ENABLED"	"1"
                "174"	"IMAGEREPLICATORGLOBALENABLED"	"1"
                "175"	"SNAPINREPLICATORGLOBALENABLED"	"1"
                "176"	"SNAPINHASHGLOBALENABLED"	"1"
                "177"	"PINGHOSTGLOBALENABLED"	"1"
                "178"	"SCHEDULERGLOBALENABLED"	"1"
                "179"	"MULTICASTGLOBALENABLED"	"1"
                "182"	"IMAGESIZEGLOBALENABLED"	"1"
                "187"	"FOG_TASKING_ADV_SHUTDOWN_ENABLED"	"0"
                "188"	"FOG_TASKING_ADV_WOL_ENABLED"	"1"
                "189"	"FOG_TASKING_ADV_DEBUG_ENABLED"	"0"
                "190"	"FOG_API_ENABLED"	"1"
                "197"	"FOG_SNAPIN_LOCATION_SEND_ENABLED"	"1"
                "200"	"FOG_REPLICATOR_GLOBAL_ENABLED"	"1"
                "201"	"FOG_SNAPINREPLICATOR_GLOBAL_ENABLED"	"1"
                "203"	"FOG_TASK_SCHEDULER_ENABLED"	"1"
                

                Any hepl would greatly be appreciated…
                Thanks!
                P.S. I am not apposed to restarting from scratch as long as i can save my snapins and images.

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

                  @Greg-Plamondon I’m going to try delving into this but I’ve been very busy with other things and just haven’t gotten around.

                  I do appreciate the patience and assistance.

                  The changes you were doing that fixed the problem, please implement them again and you should be back to functional

                  Once that is done, do you mind doing a diff between that file and the relevant file in the git repository side:

                  Files I think you changed were under: <path>/<to>/<installer>/packages/service/<servicename>/<servicefile>

                  I’m not seeing any issues on my test systems.

                  not really sure why it isn’t working either.

                  I believe you were editing the files in /opt/fog/service/<servicename>/<servicefile>

                  So you would do:

                  diff -u <path>/<to>/<installer>/packages/service/<servicename>/<servicefile> /opt/fog/service/<servicename>/<servicefile>
                  

                  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
                  • First post
                    Last post

                  113

                  Online

                  12.6k

                  Users

                  17.5k

                  Topics

                  156.3k

                  Posts
                  Copyright © 2012-2026 FOG Project