FOG 1.6.0-beta.2134 - Host won't add automatically
-
Installed the FOG client and its started but its not adding the host to “Pending Hosts” on FOG dashboard. We sometimes manually add the FOG client on devices that have no ethernet port to push out snapins etc in line with our networked devices.
Error in client is below:
------------------------------------------------------------------------------ --------------------------------Authentication-------------------------------- ------------------------------------------------------------------------------ 16/10/2024 10:38:42 Client-Info Version: 0.13.0 16/10/2024 10:38:42 Client-Info OS: Windows 16/10/2024 10:38:42 Middleware::Authentication Waiting for authentication timeout to pass 16/10/2024 10:40:40 Middleware::Communication Download: http://10.xx.xx.xx/fog/management/other/ssl/srvpublic.crt 16/10/2024 10:40:40 Middleware::Authentication Cert OK 16/10/2024 10:40:40 Middleware::Authentication No token found at C:\Program Files (x86)\FOG\token.dat, this is expected if the client has not authenticated before 16/10/2024 10:40:40 Middleware::Authentication ERROR: Could not get security token 16/10/2024 10:40:40 Middleware::Authentication ERROR: Could not find file 'C:\Program Files (x86)\FOG\token.dat'. 16/10/2024 10:40:40 Middleware::Communication POST URL: http://10.xx.xx.xx/fog/management/index.php?sub=requestClientInfo&authorize&newService 16/10/2024 10:40:41 Middleware::Response Invalid host 16/10/2024 10:40:41 Middleware::Communication URL: http://10.xx.xx.xx/fog/service/register.php?hostname=XXX-LAP-28&mac=E8:D8:D1:53:BE:12|98:AF:65:9C:AE:6A|9A:AF:65:9C:AE:69|98:AF:65:9C:AE:69|98:AF:65:9C:AE:6D&newService&json
Many thanks!
-
@sideone I just pushed what I hope might help with this. I cannot guarantee it will fix it, but it should give more forward progress.
-
EDIT to add: navigating to http://10.xx.xx.xx/fog/service/register.php on the main server IP returns:
#!im
-
@sideone I don’t believe this is a bug in FOG 1.6.0 specifically, I suspect, you’d run into a similar issue using any other version just as much as this 1.6.0
That said, the issue is Invalid host.
Are you not seeing this host show up in “pending”? IIt might be one of the mac’s this machine is sending is registered to another machine that’s in a pending status?
-
@Tom-Elliott there’s nothing showing in Pending Hosts at all.
None of these MACs are showing in Pending MACs either.
E8:D8:D1:53:BE:12|98:AF:65:9C:AE:6A|9A:AF:65:9C:AE:69|98:AF:65:9C:AE:69|98:AF:65:9C:AE:6D
It has been working up until quite recently, but I can’t say exactly when Pending Hosts stopped receiving devices.
Thanks
-
@sideone So I see it getting invalid host, then trying to register.
Is there, by chance, a php-fpm log around the same time?
Specifically hoping to see an error or even a warning.
Is there anything after the registration attempt?
-
@Tom-Elliott Am I looking in /var/log/php-fpm?
If so, in error.log:
[13-Oct-2024 03:34:06] NOTICE: error log file re-opened [16-Oct-2024 08:07:18] NOTICE: Terminating ... [16-Oct-2024 08:07:18] NOTICE: exiting, bye-bye! [16-Oct-2024 08:07:38] NOTICE: fpm is running, pid 3879423 [16-Oct-2024 08:07:38] NOTICE: ready to handle connections [16-Oct-2024 08:07:38] NOTICE: systemd monitor interval set to 10000ms
in www-error.log around the time:
[16-Oct-2024 09:42:37 UTC] PHP Warning: Undefined array key "menuAccess" in /var/www/html/fog/lib/fog/bootmenu.class.php on line 335 [16-Oct-2024 09:42:37 UTC] PHP Warning: Undefined array key "menuAccess" in /var/www/html/fog/lib/fog/bootmenu.class.php on line 340 [16-Oct-2024 09:42:37 UTC] PHP Warning: Undefined array key "menuAccess" in /var/www/html/fog/lib/fog/bootmenu.class.php on line 398 [16-Oct-2024 09:42:42 UTC] PHP Warning: Undefined array key "menuAccess" in /var/www/html/fog/lib/fog/bootmenu.class.php on line 335 [16-Oct-2024 09:42:42 UTC] PHP Warning: Undefined array key "menuAccess" in /var/www/html/fog/lib/fog/bootmenu.class.php on line 340 [16-Oct-2024 09:42:42 UTC] PHP Warning: Undefined array key "menuAccess" in /var/www/html/fog/lib/fog/bootmenu.class.php on line 398 [16-Oct-2024 09:44:07 UTC] PHP Warning: Undefined property: stdClass::$clientload in /var/www/html/fog/lib/fog/storagegroup.class.php on line 319 [16-Oct-2024 09:44:07 UTC] PHP Warning: Undefined property: stdClass::$clientload in /var/www/html/fog/lib/fog/storagegroup.class.php on line 319 [16-Oct-2024 09:44:21 UTC] PHP Warning: Undefined property: stdClass::$clientload in /var/www/html/fog/lib/fog/storagegroup.class.php on line 319 [16-Oct-2024 09:44:21 UTC] PHP Warning: Undefined property: stdClass::$clientload in /var/www/html/fog/lib/fog/storagegroup.class.php on line 319 [16-Oct-2024 09:44:30 UTC] PHP Warning: Undefined property: stdClass::$clientload in /var/www/html/fog/lib/fog/storagegroup.class.php on line 319 [16-Oct-2024 09:44:30 UTC] PHP Warning: Undefined property: stdClass::$clientload in /var/www/html/fog/lib/fog/storagegroup.class.php on line 319 [16-Oct-2024 09:44:38 UTC] PHP Warning: Undefined property: stdClass::$clientload in /var/www/html/fog/lib/fog/storagegroup.class.php on line 319 [16-Oct-2024 09:44:38 UTC] PHP Warning: Undefined property: stdClass::$clientload in /var/www/html/fog/lib/fog/storagegroup.class.php on line 319 [16-Oct-2024 09:44:40 UTC] PHP Warning: Undefined property: stdClass::$clientload in /var/www/html/fog/lib/fog/storagegroup.class.php on line 319 [16-Oct-2024 09:44:40 UTC] PHP Warning: Undefined property: stdClass::$clientload in /var/www/html/fog/lib/fog/storagegroup.class.php on line 319 [16-Oct-2024 09:44:41 UTC] PHP Warning: Undefined property: stdClass::$clientload in /var/www/html/fog/lib/fog/storagegroup.class.php on line 319 [16-Oct-2024 09:44:41 UTC] PHP Warning: Undefined property: stdClass::$clientload in /var/www/html/fog/lib/fog/storagegroup.class.php on line 319 [16-Oct-2024 09:44:50 UTC] PHP Warning: Undefined property: stdClass::$clientload in /var/www/html/fog/lib/fog/storagegroup.class.php on line 319 [16-Oct-2024 09:44:50 UTC] PHP Warning: Undefined property: stdClass::$clientload in /var/www/html/fog/lib/fog/storagegroup.class.php on line 319 [16-Oct-2024 09:45:23 UTC] PHP Warning: Undefined array key "menuAccess" in /var/www/html/fog/lib/fog/bootmenu.class.php on line 335
Is there anything after the registration attempt?
Nothing in the FOG.log on the client, just repeated attempts to register every 2 minutes.
Thanks -
@sideone I just pushed what I hope might help with this. I cannot guarantee it will fix it, but it should give more forward progress.
-
@Tom-Elliott the device is showing in pending devices now, thank you!
-