Remove validation on MAC address to allow for wildcards as well
-
https://github.com/FOGProject/fogproject/commit/5c3f30a2c80d571af9c029ac598888562f3243ba
Im getting errors with some devices not joining FOG
The authentication part Response Invalid security token.
How do I implement the link above.
-
@tesparza said in Remove validation on MAC address to allow for wildcards as well:
https://github.com/FOGProject/fogproject/commit/5c3f30a2c80d571af9c029ac598888562f3243ba
How do I implement the link above.I don’t think the above commit will help you.
Im getting errors with some devices not joining FOG
The authentication part Response Invalid security token.Usually that is solved be pressing the “Reset Encryption” button in the FOG web UI for these particular hosts you see the error in the fog-client log.
-
@sebastian-roth This is what Im getting
------------------------------------------------------------------------------ ----------------------------------UserTracker--------------------------------- ------------------------------------------------------------------------------ 2/9/2022 4:00:48 PM Client-Info Client Version: 0.12.0 2/9/2022 4:00:48 PM Client-Info Client OS: Windows 2/9/2022 4:00:48 PM Client-Info Server Version: 1.5.9 2/9/2022 4:00:48 PM Middleware::Response ERROR: Unable to get subsection 2/9/2022 4:00:48 PM Middleware::Response ERROR: Object reference not set to an instance of an object. 2/9/2022 4:00:48 PM Service Sleeping for 333 seconds 2/9/2022 4:06:21 PM Middleware::Communication URL: http://10.154.28.159/fog/management/index.php?sub=requestClientInfo&configure&newService&json 2/9/2022 4:06:21 PM Middleware::Response Success 2/9/2022 4:06:21 PM Middleware::Communication URL: http://10.154.28.159/fog/management/index.php?sub=requestClientInfo&mac=00:E0:4C:68:02:3E|60:E3:2B:C3:2F:22|62:E3:2B:C3:2F:21|60:E3:2B:C3:2F:21|60:E3:2B:C3:2F:25&newService&json 2/9/2022 4:06:21 PM Middleware::Authentication Waiting for authentication timeout to pass 2/9/2022 4:06:21 PM Middleware::Communication Download: http://10.154.28.159/fog/management/other/ssl/srvpublic.crt 2/9/2022 4:06:21 PM Data::RSA FOG Server CA cert found 2/9/2022 4:06:21 PM Middleware::Authentication Cert OK 2/9/2022 4:06:21 PM Middleware::Authentication No token found at C:\Program Files (x86)\FOG\token.dat, this is expected if the client has not authenticated before 2/9/2022 4:06:21 PM Middleware::Authentication ERROR: Could not get security token 2/9/2022 4:06:21 PM Middleware::Authentication ERROR: Could not find file 'C:\Program Files (x86)\FOG\token.dat'. 2/9/2022 4:06:21 PM Middleware::Communication POST URL: http://10.154.28.159/fog/management/index.php?sub=requestClientInfo&authorize&newService 2/9/2022 4:06:21 PM Middleware::Response Invalid security token 2/9/2022 4:06:21 PM Middleware::Response Success 2/9/2022 4:06:21 PM Middleware::Communication URL: http://10.154.28.159/fog/service/getversion.php?clientver&newService&json 2/9/2022 4:06:22 PM Middleware::Communication URL: http://10.154.28.159/fog/service/getversion.php?newService&json 2/9/2022 4:06:22 PM Service Creating user agent cache 2/9/2022 4:06:22 PM Middleware::Response ERROR: Unable to get subsection 2/9/2022 4:06:22 PM Middleware::Response ERROR: Object reference not set to an instance of an object. 2/9/2022 4:06:22 PM Middleware::Response ERROR: Unable to get subsection 2/9/2022 4:06:22 PM Middleware::Response ERROR: Object reference not set to an instance of an object. 2/9/2022 4:06:22 PM Middleware::Response ERROR: Unable to get subsection 2/9/2022 4:06:22 PM Middleware::Response ERROR: Object reference not set to an instance of an object. ------------------------------------------------------------------------------ ---------------------------------ClientUpdater-------------------------------- ------------------------------------------------------------------------------ 2/9/2022 4:06:22 PM Client-Info Client Version: 0.12.0 2/9/2022 4:06:22 PM Client-Info Client OS: Windows 2/9/2022 4:06:22 PM Client-Info Server Version: 1.5.9 2/9/2022 4:06:22 PM Middleware::Response Success ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ----------------------------------TaskReboot---------------------------------- ------------------------------------------------------------------------------ 2/9/2022 4:06:22 PM Client-Info Client Version: 0.12.0 2/9/2022 4:06:22 PM Client-Info Client OS: Windows 2/9/2022 4:06:22 PM Client-Info Server Version: 1.5.9 2/9/2022 4:06:22 PM Middleware::Response ERROR: Unable to get subsection 2/9/2022 4:06:22 PM Middleware::Response ERROR: Object reference not set to an instance of an object. ------------------------------------------------------------------------------ --------------------------------HostnameChanger------------------------------- ------------------------------------------------------------------------------ 2/9/2022 4:06:22 PM Client-Info Client Version: 0.12.0 2/9/2022 4:06:22 PM Client-Info Client OS: Windows 2/9/2022 4:06:22 PM Client-Info Server Version: 1.5.9 2/9/2022 4:06:22 PM Middleware::Response ERROR: Unable to get subsection 2/9/2022 4:06:22 PM Middleware::Response ERROR: Object reference not set to an instance of an object. ------------------------------------------------------------------------------ ---------------------------------SnapinClient--------------------------------- ------------------------------------------------------------------------------ 2/9/2022 4:06:22 PM Client-Info Client Version: 0.12.0 2/9/2022 4:06:22 PM Client-Info Client OS: Windows 2/9/2022 4:06:22 PM Client-Info Server Version: 1.5.9 2/9/2022 4:06:22 PM Middleware::Response ERROR: Unable to get subsection 2/9/2022 4:06:22 PM Middleware::Response ERROR: Object reference not set to an instance of an object. ------------------------------------------------------------------------------ --------------------------------PrinterManager-------------------------------- ------------------------------------------------------------------------------ 2/9/2022 4:06:22 PM Client-Info Client Version: 0.12.0 2/9/2022 4:06:22 PM Client-Info Client OS: Windows 2/9/2022 4:06:22 PM Client-Info Server Version: 1.5.9 2/9/2022 4:06:22 PM Middleware::Response ERROR: Unable to get subsection 2/9/2022 4:06:22 PM Middleware::Response ERROR: Object reference not set to an instance of an object. ------------------------------------------------------------------------------ --------------------------------PowerManagement------------------------------- ------------------------------------------------------------------------------ 2/9/2022 4:06:22 PM Client-Info Client Version: 0.12.0 2/9/2022 4:06:22 PM Client-Info Client OS: Windows 2/9/2022 4:06:22 PM Client-Info Server Version: 1.5.9 2/9/2022 4:06:22 PM Middleware::Response ERROR: Unable to get subsection 2/9/2022 4:06:22 PM Middleware::Response ERROR: Object reference not set to an instance of an object. ------------------------------------------------------------------------------ ----------------------------------UserTracker--------------------------------- ------------------------------------------------------------------------------ 2/9/2022 4:06:22 PM Client-Info Client Version: 0.12.0 2/9/2022 4:06:22 PM Client-Info Client OS: Windows 2/9/2022 4:06:22 PM Client-Info Server Version: 1.5.9 2/9/2022 4:06:22 PM Middleware::Response ERROR: Unable to get subsection 2/9/2022 4:06:22 PM Middleware::Response ERROR: Object reference not set to an instance of an object. 2/9/2022 4:06:22 PM Service Sleeping for 318 seconds
-
@tesparza Did you “Reset Encryption” in the web UI. That should fix this issue.
Edit: Oh well, re-reading your message I finally see what you mean. This is an unregistered host and you want it to auto-register (join FOG) through the fog-client software, right?
I guess there is something going wrong with the registration but we don’t see that in the log file you posted. Please stop the FOGService (Windows service management) on this machine, rename
C:\fog.log
toC:\fog2.log
and start the FOGService again. At the same time while the service starts again you want to take a look at the Apache and PHP-FPM logs on you FOG server. Please post all log information here. -
@sebastian-roth
fog.log2/10/2022 1:41:49 PM Main Overriding exception handling 2/10/2022 1:41:49 PM Main Bootstrapping Zazzles 2/10/2022 1:41:49 PM Controller Initialize 2/10/2022 1:41:49 PM Controller Start 2/10/2022 1:41:49 PM Service Starting service 2/10/2022 1:41:51 PM Bus Became bus server 2/10/2022 1:41:51 PM Bus Emmiting message on channel: Status 2/10/2022 1:41:51 PM Service Invoking early JIT compilation on needed binaries ------------------------------------------------------------------------------ --------------------------------Authentication-------------------------------- ------------------------------------------------------------------------------ 2/10/2022 1:41:51 PM Client-Info Version: 0.12.0 2/10/2022 1:41:51 PM Client-Info OS: Windows 2/10/2022 1:41:51 PM Middleware::Authentication Waiting for authentication timeout to pass 2/10/2022 1:41:51 PM Middleware::Communication Download: http://10.154.28.159/fog/management/other/ssl/srvpublic.crt 2/10/2022 1:41:51 PM Data::RSA FOG Server CA cert found 2/10/2022 1:41:51 PM Middleware::Authentication Cert OK 2/10/2022 1:41:51 PM Middleware::Authentication No token found at C:\Program Files (x86)\FOG\token.dat, this is expected if the client has not authenticated before 2/10/2022 1:41:51 PM Middleware::Authentication ERROR: Could not get security token 2/10/2022 1:41:51 PM Middleware::Authentication ERROR: Could not find file 'C:\Program Files (x86)\FOG\token.dat'. 2/10/2022 1:41:51 PM Middleware::Communication POST URL: http://10.154.28.159/fog/management/index.php?sub=requestClientInfo&authorize&newService 2/10/2022 1:41:51 PM Middleware::Response Invalid MAC address format ------------------------------------------------------------------------------ --------------------------------Authentication-------------------------------- ------------------------------------------------------------------------------ 2/10/2022 1:41:51 PM Client-Info Version: 0.12.0 2/10/2022 1:41:51 PM Client-Info OS: Windows 2/10/2022 1:41:51 PM Middleware::Authentication Waiting for authentication timeout to pass 2/10/2022 1:43:51 PM Middleware::Communication Download: http://10.154.28.159/fog/management/other/ssl/srvpublic.crt 2/10/2022 1:43:51 PM Data::RSA FOG Server CA cert found 2/10/2022 1:43:51 PM Middleware::Authentication Cert OK 2/10/2022 1:43:51 PM Middleware::Authentication No token found at C:\Program Files (x86)\FOG\token.dat, this is expected if the client has not authenticated before 2/10/2022 1:43:51 PM Middleware::Authentication ERROR: Could not get security token 2/10/2022 1:43:51 PM Middleware::Authentication ERROR: Could not find file 'C:\Program Files (x86)\FOG\token.dat'. 2/10/2022 1:43:51 PM Middleware::Communication POST URL: http://10.154.28.159/fog/management/index.php?sub=requestClientInfo&authorize&newService 2/10/2022 1:43:51 PM Middleware::Response Invalid MAC address format ------------------------------------------------------------------------------ --------------------------------Authentication-------------------------------- ------------------------------------------------------------------------------ 2/10/2022 1:43:51 PM Client-Info Version: 0.12.0 2/10/2022 1:43:51 PM Client-Info OS: Windows 2/10/2022 1:43:51 PM Middleware::Authentication Waiting for authentication timeout to pass
php-fpm
[11-Feb-2022 01:43:10 UTC] PHP Fatal error: Uncaught Exception: #!im in /var/www/html/fog/lib/fog/fogbase.class.php:584 Stack trace: #0 /var/www/html/fog/lib/client/registerclient.class.php(46): FOGBase::getHostItem(true, false, false, true) #1 /var/www/html/fog/lib/fog/fogpage.class.php(3031): RegisterClient->json() #2 /var/www/html/fog/lib/fog/fogpage.class.php(249): FOGPage->requestClientInfo() #3 /var/www/html/fog/lib/pages/dashboardpage.class.php(76): FOGPage->__construct('Dashboard') #4 /var/www/html/fog/lib/fog/loadglobals.class.php(67): DashboardPage->__construct() #5 /var/www/html/fog/lib/fog/loadglobals.class.php(81): LoadGlobals::_init() #6 /var/www/html/fog/commons/base.inc.php(49): LoadGlobals->__construct() #7 /var/www/html/fog/management/index.php(22): require('/var/www/html/f...') #8 {main} thrown in /var/www/html/fog/lib/fog/fogbase.class.php on line 584 [11-Feb-2022 01:44:04 UTC] PHP Fatal error: Uncaught Error: Call to a member function isValid() on null in /var/www/html/fog/lib/fog/host.class.php:775 Stack trace: #0 /var/www/html/fog/lib/fog/host.class.php(789): Host->_setAlo() #1 /var/www/html/fog/lib/client/autologout.class.php(43): Host->getAlo() #2 /var/www/html/fog/lib/fog/fogpage.class.php(3123): Autologout->json() #3 /var/www/html/fog/lib/fog/fogpage.class.php(249): FOGPage->requestClientInfo() #4 /var/www/html/fog/lib/pages/dashboardpage.class.php(76): FOGPage->__construct('Dashboard') #5 /var/www/html/fog/lib/fog/loadglobals.class.php(67): DashboardPage->__construct() #6 /var/www/html/fog/lib/fog/loadglobals.class.php(81): LoadGlobals::_init() #7 /var/www/html/fog/commons/base.inc.php(49): LoadGlobals->__construct() #8 /var/www/html/fog/management/index.php(22): require('/var/www/html/f...') #9 {main} thrown in /var/www/html/fog/lib/fog/host.class.php on line 775 [11-Feb-2022 01:45:09 UTC] PHP Fatal error: Uncaught Error: Call to a member function isValid() on null in /var/www/html/fog/lib/fog/host.class.php:775 Stack trace: #0 /var/www/html/fog/lib/fog/host.class.php(789): Host->_setAlo() #1 /var/www/html/fog/lib/client/autologout.class.php(43): Host->getAlo() #2 /var/www/html/fog/lib/fog/fogpage.class.php(3123): Autologout->json() #3 /var/www/html/fog/lib/fog/fogpage.class.php(249): FOGPage->requestClientInfo() #4 /var/www/html/fog/lib/pages/dashboardpage.class.php(76): FOGPage->__construct('Dashboard') #5 /var/www/html/fog/lib/fog/loadglobals.class.php(67): DashboardPage->__construct() #6 /var/www/html/fog/lib/fog/loadglobals.class.php(81): LoadGlobals::_init() #7 /var/www/html/fog/commons/base.inc.php(49): LoadGlobals->__construct() #8 /var/www/html/fog/management/index.php(22): require('/var/www/html/f...') #9 {main} thrown in /var/www/html/fog/lib/fog/host.class.php on line 775 [11-Feb-2022 01:45:16 UTC] PHP Fatal error: Uncaught Exception: #!im in /var/www/html/fog/lib/fog/fogbase.class.php:584 Stack trace: #0 /var/www/html/fog/lib/client/registerclient.class.php(46): FOGBase::getHostItem(true, false, false, true) #1 /var/www/html/fog/lib/fog/fogpage.class.php(3031): RegisterClient->json() #2 /var/www/html/fog/lib/fog/fogpage.class.php(249): FOGPage->requestClientInfo() #3 /var/www/html/fog/lib/pages/dashboardpage.class.php(76): FOGPage->__construct('Dashboard') #4 /var/www/html/fog/lib/fog/loadglobals.class.php(67): DashboardPage->__construct() #5 /var/www/html/fog/lib/fog/loadglobals.class.php(81): LoadGlobals::_init() #6 /var/www/html/fog/commons/base.inc.php(49): LoadGlobals->__construct() #7 /var/www/html/fog/management/index.php(22): require('/var/www/html/f...') #8 {main} thrown in /var/www/html/fog/lib/fog/fogbase.class.php on line 584
-
@tesparza Thanks for the details. Will look into this.
By chance we might have someone else who just reported the same thing: https://forums.fogproject.org/topic/16039/fog-client-not-auto-registering-hosts
Though I am not sure this was fixed in the developer version already. Stay tuned.
-
Found a bit of time to look into this. Just in case anyone comes across the
Middleware::Response Invalid MAC address format
on unregistered clients again. This happens when a MAC address filter (FOG Configuration -> FOG Settings -> FOG Client - Host Register -> QUICKREG PENDING MAC FILTER) is defined so that a newly registering client’s MAC matches the filter.Just for the record, fog-client auto registration currently works (FOG 1.5.9.200 - fog-client 0.12.2).