FOG Client. Authentication ERROR: Could not get security token
-
@cojohnson
12/14/2016 12:35 PM Middleware::Authentication ERROR: Could not get security token
just means the client has never successfully authenticated before. It only receives a token after the first successful authentication.In general we recommend installing the client IN the image, as the tokens are automatically reset when an imaging task is performed. However, you should never have to continuously reset encryption data, only when you manually install / uninstall the client.
-
@Joe-Schmitt “In general we recommend installing the client IN the image, as the tokens are automatically reset when an imaging task is performed. However, you should never have to continuously reset encryption data, only when you manually install / uninstall the client.”
So, I am assuming, installing the FOG Client via a batch script after the image process is considered “manually installing”?
I am going to put the FOG client on the image.
-
@cojohnson said in FOG Client. Authentication ERROR: Could not get security token:
I am going to put the FOG client on the image.
That’s the correct answer.
-
I installed the latest FOG client 0.11.7 on my image. However, I am still having problems authenticating.
Any ideas or suggestions?
Thanks -
@cojohnson Do you see the certificate when you go to this address in a web browser:
http://10.21.0.105/fog/management/other/ssl/srvpublic.crt -
Also, this error makes me think you have DB issues:
Middleware::Response Error multiple hosts returned for list of mac addresses
The answer to the db issues is running these cleanup/maintenance queries against the fog db:
https://wiki.fogproject.org/wiki/index.php?title=Troubleshoot_MySQL#Hosts_think_they_are_not_registered_.2F_can.27t_register_.2F_Already_Registered_.2F_other_weirdness -
For this error here:
Authentication ERROR: Could not find file 'C:\Program Files (x86)\FOG\token.dat'.
Are you rebooting the reference machine after installing the client, but before capturing the image? This is very important, the fog client has to do stuff on it’s first run to work right later on when deployed. I always, always reboot after installing the client and then check the fog log for errors. If there are issues, an image is not captured until those are solved first.
-
@Wayne-Workman
Hmmnn, OK, I am going to clean my DB now and restore my “audit mode reference image” to see what the FOG Client is doing. I will keep you postedType 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> DELETE FROM `hosts` WHERE `hostID` = '0'; Query OK, 0 rows affected (0.00 sec) mysql> DELETE FROM `hostMAC` WHERE hmID = '0' OR `hmHostID` = '0'; Query OK, 0 rows affected (0.00 sec) mysql> DELETE FROM `groupMembers` WHERE `gmID` = '0' OR `gmHostID` = '0' OR `gmGroupID` = '0'; Query OK, 12 rows affected (0.05 sec) mysql> DELETE FROM `snapinGroupAssoc` WHERE `sgaID` = '0' OR `sgaSnapinID` = '0' OR `sgaStorageGroupID` = '0'; Query OK, 0 rows affected (0.00 sec) mysql> DELETE from `snapinAssoc` WHERE `saID` = '0' OR `saHostID` = '0' OR `saSnapinID` = '0'; Query OK, 11 rows affected (0.01 sec) mysql> DELETE FROM `hosts` WHERE `hostID` NOT IN (SELECT `hmHostID` FROM `hostMAC`); Query OK, 1 row affected (0.00 sec) mysql> DELETE FROM `hostMAC` WHERE `hmhostID` NOT IN (SELECT `hostID` FROM `hosts`); Query OK, 0 rows affected (0.00 sec) mysql> DELETE FROM `snapinAssoc` WHERE `saHostID` NOT IN (SELECT `hostID` FROM `hosts`); Query OK, 0 rows affected (0.00 sec) mysql> DELETE FROM `groupMembers` WHERE `gmHostID` NOT IN (SELECT `hostID` FROM `hosts`); Query OK, 0 rows affected (0.00 sec) mysql> quit
-
@Wayne-Workman @Joe-Schmitt
I am currently in Sysprep mode on my image and I am still getting the same error with the FOG client.
**Note, I restarted halfway into the log -
@cojohnson For the moment, let’s stop worrying about imaging, and just focus on the fog client. The goal is to fix the errors in the log. Try uninstalling it and reinstalling it first.