• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

FOG Client: Athentication Error: Unable to get token

Scheduled Pinned Locked Moved Solved
FOG Problems
5
7
2.3k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T
    TomcatKZN
    last edited by Wayne Workman Jan 22, 2018, 2:19 PM Jan 22, 2018, 7:56 PM

    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.

    W 1 Reply Last reply Jan 22, 2018, 8:26 PM Reply Quote 0
    • W
      Wayne Workman @TomcatKZN
      last edited by Jan 22, 2018, 8:26 PM

      @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

      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
      Daily Clean Installation Results:
      https://fogtesting.fogproject.us/
      FOG Reporting:
      https://fog-external-reporting-results.fogproject.us/

      1 Reply Last reply Reply Quote 0
      • J
        Joe Schmitt Senior Developer
        last edited by Joe Schmitt Jan 22, 2018, 5:15 PM Jan 22, 2018, 11:14 PM

        @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.

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        T 1 Reply Last reply Jan 22, 2018, 11:29 PM Reply Quote 1
        • T
          Tom Elliott @Joe Schmitt
          last edited by Jan 22, 2018, 11:29 PM

          @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.

          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

          1 Reply Last reply Reply Quote 1
          • T
            TomcatKZN
            last edited by Jan 23, 2018, 7:44 PM

            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.

            1 Reply Last reply Reply Quote 0
            • T
              TomcatKZN
              last edited by Jan 24, 2018, 2:51 AM

              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.

              1 Reply Last reply Reply Quote 0
              • S
                Sebastian Roth Moderator
                last edited by Jan 24, 2018, 8:47 PM

                @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.

                Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                1 / 1
                • First post
                  6/7
                  Last post

                203

                Online

                12.0k

                Users

                17.3k

                Topics

                155.2k

                Posts
                Copyright © 2012-2024 FOG Project