All services are globally disabled
-
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 disabledI 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.
-
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/FOGImageReplicatorFeb 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/FOGSnapinReplicatorFeb 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 -
I was able to fix the:
PHP Warning: DateTime::modify(): Failed to parse time string (+ second) at position 0 (+): Unexpected character in FOGImageSizeReplace:
$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' ) -
@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?
-
@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 -
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 secondsfogreplicator.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 secondsfogscheduler.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 disabledThe same for these logs as well.
fogimagesize.log
fogsnapinhash.log
fogsnapinrep.log
pinghost.logI 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. -
@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>