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

    All services are globally disabled

    Scheduled Pinned Locked Moved Unsolved FOG Problems
    4 Posts 2 Posters 41 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

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

            174

            Online

            12.5k

            Users

            17.5k

            Topics

            156.2k

            Posts
            Copyright © 2012-2026 FOG Project