FOG Client: Athentication Error: Unable to get token
-
Please can someone help. am going nuts.
On my presysprep image of win10 1709, I installed the client 0.11.12. (Fog server 1.5.0 RC10)
First off, I got the could not inatall Ca Certificate.
I changed the fogserver address to use the FQDN, and then the install worked.
Then I rebooted the client.
Fog log:--------------------------------Authentication-------------------------------- ------------------------------------------------------------------------------ 2018/01/22 21:08 Client-Info Version: 0.11.12 2018/01/22 21:08 Client-Info OS: Windows 2018/01/22 21:08 Middleware::Authentication Waiting for authentication timeout to pass 2018/01/22 21:10 Middleware::Communication Download: http://fogserver2.ehs.local/fog/management/other/ssl/srvpublic.crt 2018/01/22 21:10 Data::RSA FOG Server CA cert found 2018/01/22 21:10 Middleware::Authentication Cert OK 2018/01/22 21:10 Middleware::Authentication ERROR: Could not get security token 2018/01/22 21:10 Middleware::Authentication ERROR: Could not find file 'C:\Program Files (x86)\FOG\token.dat'. 2018/01/22 21:10 Middleware::Communication POST URL: http://fogserver2.ehs.local/fog/management/index.php?sub=requestClientInfo&authorize&newService 2018/01/22 21:10 Middleware::Response Private key path not found 2018/01/22 21:10 Middleware::Communication URL: http://fogserver2.ehs.local/fog/management/index.php?sub=requestClientInfo&configure&newService&json 2018/01/22 21:10 Middleware::Response Success 2018/01/22 21:10 Middleware::Communication URL: http://fogserver2.ehs.local/fog/management/index.php?sub=requestClientInfo&mac=00:15:5D:67:1F:1D|00:15:5D:67:1F:1E||00:00:00:00:00:00:00:E0&newService&json 2018/01/22 21:10 Middleware::Authentication Waiting for authentication timeout to pass 2018/01/22 21:12 Middleware::Communication Download: http://fogserver2.ehs.local/fog/management/other/ssl/srvpublic.crt 2018/01/22 21:12 Data::RSA FOG Server CA cert found 2018/01/22 21:12 Middleware::Authentication Cert OK 2018/01/22 21:12 Middleware::Authentication ERROR: Could not get security token 2018/01/22 21:12 Middleware::Authentication ERROR: Could not find file 'C:\Program Files (x86)\FOG\token.dat'. 2018/01/22 21:12 Middleware::Communication POST URL: http://fogserver2.ehs.local/fog/management/index.php?sub=requestClientInfo&authorize&newService 2018/01/22 21:12 Middleware::Response Private key path not found 2018/01/22 21:12 Middleware::Response Success 2018/01/22 21:12 Middleware::Communication URL: http://fogserver2.ehs.local/fog/service/getversion.php?clientver&newService&json 2018/01/22 21:12 Middleware::Communication URL: http://fogserver2.ehs.local/fog/service/getversion.php?newService&json 2018/01/22 21:12 Service Creating user agent cache 2018/01/22 21:12 Middleware::Response ERROR: Unable to get subsection 2018/01/22 21:12 Middleware::Response ERROR: Object reference not set to an instance of an object. 2018/01/22 21:12 Middleware::Response ERROR: Unable to get subsection 2018/01/22 21:12 Middleware::Response ERROR: Object reference not set to an instance of an object. 2018/01/22 21:12 Middleware::Response ERROR: Unable to get subsection 2018/01/22 21:12 Middleware::Response ERROR: Object reference not set to an instance of an object. 2018/01/22 21:12 Service Initializing modules
Mod edited to use code block.
-
@tomcatkzn I searched the forums with your exact error from your log:
Authentication ERROR: Could not find file 'C:\Program Files (x86)\FOG\token.dat'.
I found these related threads, please read through them:
- https://forums.fogproject.org/topic/9761/fog-1-3-4-invalid-security-token-help-please
- https://forums.fogproject.org/topic/9468/fog-get-machine-to-join-domain
- https://forums.fogproject.org/topic/5088/could-not-get-security-token-token-dat
- https://forums.fogproject.org/topic/8398/can-t-find-the-reset-encryption-data-button-on-any-hosts
- https://forums.fogproject.org/topic/10959/client-server-token-issues?page=1
- https://forums.fogproject.org/topic/9046/fog-client-can-t-connect-to-server
-
@TomcatKZN @Wayne-Workman that error just means the client hasn’t authenticated with the sever yet and doesnt have a token.
The real error here is
2018/01/22 21:10 Middleware::Response Private key path not found
. Try rerunning your fog server install script. @Tom-Elliott would be of help debugging this issue here. -
@joe-schmitt This is indeed a server side error.
Basically it’s saying it cannot find your FOG Server’s private key, which is how it knows how to decrypt the information passed by the client.
Please re-run the FOG installer using the argument(s):
./installfog.sh -KY
You MUST NOT recreate the CA at this point as the client is already aware of it. The -K will simply recreate the missing private key using the current CA, and all should start working immediately.
-
Thanks for the response guys. I was at training workshop all day so haven’t been able to try this yet. Will do so first thing. Thank you.
-
Hi Guys
Ran the install with -KY on FOG server. Completed Successfully.
Uninstalled the client on the Presysprepped image Virtual Machine.
Rebooted
Reinstalled the client pointing to FQDN of FOG server.
Rebooted
First iteration of authentication failed as before. A few minutes later when I checked the log again it had successfully authenticated and the client appears to be working correctly.
I have sysprepped this image and am busy capturing it. (For some reason the capture process always drops to about 300Mb/s, while Deploy always runs at full speed), will report back once I have done an install, in the morning. -
@TomcatKZN I marked this thread solved as it sounds like the suggested fixes did the trick. If you see the client authentication issue in the log post here again. If you have a different problem with the capture speed I would ask you to open a new thread on that topic.