@Tom-Elliott latest pull resolved the issue. Appreciate your help on this!
Latest posts made by christop
-
RE: Multicast De-Sync When Resizing Disksposted in FOG Problems
-
RE: Multicast De-Sync When Resizing Disksposted in FOG Problems
@Tom-Elliott apologies for the delay but I now had time to test and found the following:
I am using Ubuntu 24.04
I updated FOG to version: 1.5.10.1732I then tested a multicast and confirmed that partclone is still stuck at the first screen.
When I run:
sudo systemctl -l status FOGMulticastManager.serviceI see the following:
Nov 03 13:22:12 fog-syd001 systemd[1]: FOGMulticastManager.service: Scheduled restart job, restart counter is at 1. Nov 03 13:22:12 fog-syd001 systemd[1]: Started FOGMulticastManager.service - FOGMulticastManager. Nov 03 13:22:13 fog-syd001 env[24152]: PHP Fatal error: Uncaught Error: Call to undefined function int() in /var/www/fog/lib/service/multicasttask.class.php:460 Nov 03 13:22:13 fog-syd001 env[24152]: Stack trace: Nov 03 13:22:13 fog-syd001 env[24152]: #0 /var/www/fog/lib/service/multicasttask.class.php(689): MulticastTask->getCMD() Nov 03 13:22:13 fog-syd001 env[24152]: #1 /var/www/fog/lib/service/multicastmanager.class.php(322): MulticastTask->startTask() Nov 03 13:22:13 fog-syd001 env[24152]: #2 /var/www/fog/lib/service/multicastmanager.class.php(639): MulticastManager->_serviceLoop() Nov 03 13:22:13 fog-syd001 env[24152]: #3 /opt/fog/service/FOGMulticastManager/FOGMulticastManager(37): MulticastManager->serviceRun() Nov 03 13:22:13 fog-syd001 env[24152]: #4 {main} Nov 03 13:22:13 fog-syd001 env[24152]: thrown in /var/www/fog/lib/service/multicasttask.class.php on line 460 -
RE: Multicast De-Sync When Resizing Disksposted in FOG Problems
Just to provide more details. It seems that the multicast service is not functioning post update.
Here is a sample of the log file:
[10-23-25 10:34:19 am] * Starting MulticastManager Service [10-23-25 10:34:19 am] * Checking for new items every 10 seconds [10-23-25 10:34:19 am] * Starting service loopThe service is starting but seems to be stuck starting the service loop and never proceeds. I restarted the service, but the issue persists.
-
RE: Multicast De-Sync When Resizing Disksposted in FOG Problems
@Tom-Elliott thank you for the detailed response and quick change.
Two things to note:
- Multiplying the value of UDPCAST_MAXWAIT by 10 worked in v.1726 resolving the issue.
- I performed the update to .1727 and attempted a multicast but it was stuck on the initial multicast screen advising there are no multicast task jobs created, or no task numbers assigned. I am curious if anyone’s multicast is currently working in the updated dev branch.
Let me know if you need me to perform further tests upon review.
-
Multicast De-Sync When Resizing Disksposted in FOG Problems
Hello everyone,
I am currently facing a challenge when multicasting an older desktop (Lenovo M800). When the desktop is imaged using a deploy task it will complete as expected (just take a fair amount of time). When it is grouped with more modern computers it will all start out fine, it will make it through the first phase of part clone but as soon as it gets to the resizing phase, the modern computers will quickly complete this task, while the older desktop takes a minute.
As soon as the modern computers resize their disks, wait at the last partclone screen for ~30 seconds, they will then complete and go to postdownload scripts. The desktop however hangs on resizing for around a minute, and by the time it makes it to the last partclone screen it will wait indefinitely as I believe it is left behind.
From the log perspective (/opt/fog/log/multicast.log) I see that as soon as the modern computer finishes it begins stating “$Groupname is no longer running”. On the contrary the multicast task will continue to show in the GUI for the stuck host.
I have adjusted UDPCAST MAXWAIT setting but it seems this just affects the first screen. I have also tried rebooting the stuck host, and it will return to the multicast screen and continue to wait indefinitely.
FOG Version: 1.5.10.1726
I am looking for input on how others have dealt with this before.
-
RE: Subnet Groups Plugin | Dynamic Groups Not Workingposted in General Problems
@Tom-Elliott, disregard this request.
I edited ‘addsubnetgroup.hook.php’ which simplified getting the client IP and adding the host to the respective group. I understand this also removes certain checks that were in place but for my environment it is now working as intended.
Old ‘addSubnetgroupHost’ function:
public function addSubnetgroupHost($arguments) { if (!in_array($this->node, (array)self::$pluginsinstalled)) { return; } $Host = $arguments['Host']; $mac = $Host->get('mac'); if (!isset($mac)) { return; } // Setup for tests $name = $ipn = $Host->get('name'); $ip = $Host->get('ip'); $ipr = self::resolveHostname($name); // Perform all tests. $ip1t = filter_var($ip, FILTER_VALIDATE_IP); $ip2t = filter_var($ipn, FILTER_VALIDATE_IP); $ip3t = filter_var($ipr, FILTER_VALIDATE_IP); // If resolve hostname returns a valid IP, set IP appropriately. // Otherwise, if the name is valid, use it. // Otherwise, return if base $ip is false. if (false !== $ip3t) { $ip = $ipr; } elseif (false !== $ip2t) { $ip = $ipn; } elseif (false === $ip1t) { return; } // Now list our subnet groups. Route::listem('subnetgroup'); $SNGroups = json_decode(Route::getData()); foreach ($SNGroups->subnetgroups as &$SNGroup) { if (in_array($SNGroup->groupID, $Host->get('groups'))) { $Host->removeGroup($SNGroup->groupID)->save(); } $subnetList = str_replace(' ', '', $SNGroup->subnets); $subnets = explode(',', $subnetList); foreach ($subnets as &$subnet) { if ($this->_ipCIDRCheck($ip, $subnet)) { $Host->addGroup($SNGroup->groupID)->save(); unset($subnet); continue 2; } unset($subnet); } unset($SNGroup); } }New code:
public function addSubnetgroupHost($arguments) { if (!in_array($this->node, (array)self::$pluginsinstalled)) { return; } $Host = $arguments['Host']; $mac = $Host->get('mac'); if (!isset($mac)) { return; } // Use the real source IP from the request $ip = $_SERVER['REMOTE_ADDR']; // Now list our subnet groups. Route::listem('subnetgroup'); $SNGroups = json_decode(Route::getData()); foreach ($SNGroups->subnetgroups as &$SNGroup) { if (in_array($SNGroup->groupID, $Host->get('groups'))) { $Host->removeGroup($SNGroup->groupID)->save(); } $subnetList = str_replace(' ', '', $SNGroup->subnets); $subnets = explode(',', $subnetList); foreach ($subnets as &$subnet) { if ($this->_ipCIDRCheck($ip, $subnet)) { $Host->addGroup($SNGroup->groupID)->save(); unset($subnet); continue 2; } unset($subnet); } unset($SNGroup); } } -
RE: Subnet Groups Plugin | Dynamic Groups Not Workingposted in General Problems
I’ve done some trivial troubleshooting, and it seems that the ‘RequestClientInfo’ action is not taking place thus the plugin is never being called to run.
I’ve tried installing the FOG Client (rather than relying on the machine booting to fog via PXE), and power cycling a test machine, but this did not make a difference.
Reviewing previous forum post @mattmurdock78 had a similar issue and wrote a trigger, unfortunately the file he attached is not available.
@Tom-Elliott, I understand you were not the main author of the plugin but if you have the opportunity to review and advise if the plugin ‘should’ be working or is deprecated and potentially how I can try to proceed it would be greatly appreciated.
-
Subnet Groups Plugin | Dynamic Groups Not Workingposted in General Problems
Hello, I have a FOG server setup on version 1.5.10.1719.
I have multicast working across VLANS/Subnets and it’s all splendid.
My challenge now is that I want to provision a subset of computers based on what subnet they are on. As different labs will need different images pushed to them and computers can get moved between labs at any time.
I saw that the ‘Subnet Groups’ add-in existed and thought this was the exact answer I needed! I added it, I created a group with the address range of one of my test machines, and booted it into FOG, but alas it was never added to the group.
I don’t quite grasp how the add-in works and how it interacts with the hosts IP addresses.
If anyone has any insight into this it would be greatly appreciated!
-
RE: Multicasting Stuck on Partclone Screenposted in FOG Problems
My RP address was not pointing to my FOG server

Once this was adjusted, multicast is functional. Definitely a good reminder to start small.
-
RE: Multicasting Stuck on Partclone Screenposted in FOG Problems
I was able to create a multicast task from the FOG server, and while the main client was stuck in the partclone screen, I was able to launch another client on the same VLAN in debug mode and run “udp-receiver --portbase <PORT FROM LOGS>” and it was receiving the stream of traffic and showed up in the ‘multicast.log.udpcast’ logs.
This makes me curious as to what udp-receiver command the client is running when booting into partclone as it never joins the session and just sits at that screen indefinitely.