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

    Fog Client "Middleware::Response Private key path not found"

    Scheduled Pinned Locked Moved
    FOG Problems
    2
    5
    339
    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
      turtledillpickle
      last edited by turtledillpickle

      I’m trying to register some Windows 10 hosts so that I can power them off with Fog (server runs Ubuntu 20.04), but I seem to be getting a cert related error in the client’s logs. I have tried the following solutions I saw in other posts with no luck:

      • changing the permissions of /opt/fog/snapins/ssl to 777 (its already owned by fogproject:ww-data)
      • reinstalling the client
      • wiping and reinstalling the fog server
      • checking the ssl path for the node, this is set to /opt/fog/snapins/ssl, if I check on the filesystem that is a valid path, with the following files/permissions:
      drwxrwxrwx 3 fogproject www-data 4096 Nov 30 17:02 ../
      drwxrwxrwx 2 fogproject www-data 4096 Nov 30 17:02 CA/
      -rwxrwxrwx 1 fogproject www-data   85 Dec  1 10:56 ca.cnf*
      -rwxrwxrwx 1 fogproject www-data 1647 Dec  1 10:56 fog.csr*
      -rwxrwxrwx 1 fogproject www-data  215 Dec  1 10:56 req.cnf*
      -rwxrwxrwx 1 fogproject www-data 3243 Dec  1 10:56 .srvprivate.key*```
      
      
      Is there anything else I am missing?
      Here is a snippet from the client logs: 
      
      

      12/1/2022 10:58:57 AM Middleware::Response Private key path not found


      --------------------------------Authentication--------------------------------

      12/1/2022 10:58:57 AM Client-Info Version: 0.12.0
      12/1/2022 10:58:57 AM Client-Info OS: Windows
      12/1/2022 10:58:57 AM Middleware::Authentication Waiting for authentication timeout to pass
      12/1/2022 11:00:56 AM Middleware::Communication Download: http://172.16.3.10/fog/management/other/ssl/srvpublic.crt
      12/1/2022 11:00:56 AM Data::RSA FOG Server CA cert found
      12/1/2022 11:00:56 AM Middleware::Authentication Cert OK
      12/1/2022 11:00:56 AM Middleware::Authentication No token found at C:\Program Files (x86)\FOG\token.dat, this is expected if the client has not authenticated before
      12/1/2022 11:00:56 AM Middleware::Authentication ERROR: Could not get security token
      12/1/2022 11:00:56 AM Middleware::Authentication ERROR: Could not find file ‘C:\Program Files (x86)\FOG\token.dat’.
      12/1/2022 11:00:56 AM Middleware::Communication POST URL: http://172.16.3.10/fog/management/index.php?sub=requestClientInfo&authorize&newService
      12/1/2022 11:00:57 AM Middleware::Response Private key path not found


      --------------------------------Authentication--------------------------------

      12/1/2022 11:00:57 AM Client-Info Version: 0.12.0
      12/1/2022 11:00:57 AM Client-Info OS: Windows
      12/1/2022 11:00:57 AM Middleware::Authentication Waiting for authentication timeout to pass
      12/1/2022 11:02:56 AM Middleware::Communication Download: http://172.16.3.10/fog/management/other/ssl/srvpublic.crt
      12/1/2022 11:02:56 AM Data::RSA FOG Server CA cert found
      12/1/2022 11:02:56 AM Middleware::Authentication Cert OK
      12/1/2022 11:02:56 AM Middleware::Authentication No token found at C:\Program Files (x86)\FOG\token.dat, this is expected if the client has not authenticated before
      12/1/2022 11:02:56 AM Middleware::Authentication ERROR: Could not get security token
      12/1/2022 11:02:56 AM Middleware::Authentication ERROR: Could not find file ‘C:\Program Files (x86)\FOG\token.dat’.
      12/1/2022 11:02:56 AM Middleware::Communication POST URL: http://172.16.3.10/fog/management/index.php?sub=requestClientInfo&authorize&newService
      12/1/2022 11:02:56 AM Middleware::Response Private key path not found


      --------------------------------Authentication--------------------------------

      12/1/2022 11:02:56 AM Client-Info Version: 0.12.0
      12/1/2022 11:02:56 AM Client-Info OS: Windows
      12/1/2022 11:02:56 AM Middleware::Authentication Waiting for authentication timeout to pass
      12/1/2022 11:04:56 AM Middleware::Communication Download: http://172.16.3.10/fog/management/other/ssl/srvpublic.crt
      12/1/2022 11:04:56 AM Data::RSA FOG Server CA cert found
      12/1/2022 11:04:56 AM Middleware::Authentication Cert OK
      12/1/2022 11:04:56 AM Middleware::Authentication No token found at C:\Program Files (x86)\FOG\token.dat, this is expected if the client has not authenticated before
      12/1/2022 11:04:56 AM Middleware::Authentication ERROR: Could not get security token
      12/1/2022 11:04:56 AM Middleware::Authentication ERROR: Could not find file ‘C:\Program Files (x86)\FOG\token.dat’.
      12/1/2022 11:04:56 AM Middleware::Communication POST URL: http://172.16.3.10/fog/management/index.php?sub=requestClientInfo&authorize&newService
      12/1/2022 11:04:57 AM Middleware::Response Private key path not found


      --------------------------------Authentication--------------------------------

      12/1/2022 11:04:57 AM Client-Info Version: 0.12.0
      12/1/2022 11:04:57 AM Client-Info OS: Windows
      12/1/2022 11:04:57 AM Middleware::Authentication Waiting for authentication timeout to pass
      12/1/2022 11:06:56 AM Middleware::Communication Download: http://172.16.3.10/fog/management/other/ssl/srvpublic.crt
      12/1/2022 11:06:56 AM Data::RSA FOG Server CA cert found
      12/1/2022 11:06:56 AM Middleware::Authentication Cert OK
      12/1/2022 11:06:56 AM Middleware::Authentication No token found at C:\Program Files (x86)\FOG\token.dat, this is expected if the client has not authenticated before
      12/1/2022 11:06:56 AM Middleware::Authentication ERROR: Could not get security token
      12/1/2022 11:06:56 AM Middleware::Authentication ERROR: Could not find file ‘C:\Program Files (x86)\FOG\token.dat’.
      12/1/2022 11:06:56 AM Middleware::Communication POST URL: http://172.16.3.10/fog/management/index.php?sub=requestClientInfo&authorize&newService
      12/1/2022 11:06:57 AM Middleware::Response Private key path not found

      12/1/2022 11:06:57 AM Middleware::Communication URL: http://172.16.3.10/fog/management/index.php?sub=requestClientInfo&configure&newService&json
      12/1/2022 11:06:57 AM Middleware::Response Success
      12/1/2022 11:06:57 AM Middleware::Communication URL: http://172.16.3.10/fog/management/index.php?sub=requestClientInfo&mac=00:0C:29:97:B7:59|DC:41:A9:FA:1C:33&newService&json
      12/1/2022 11:06:57 AM Middleware::Authentication Waiting for authentication timeout to pass

      Tom ElliottT 1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott @turtledillpickle
        last edited by

        @turtledillpickle It seems, to me, that it’s not able to download the private key, and I’m not quite sure why, maybe because it’s failing to get registered with a security token? This could be because the token is already defined for this host.

        Please try finding the registered host in the UI and click the Reset Host Encryption button.

        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

        T 2 Replies Last reply Reply Quote 0
        • T
          turtledillpickle @Tom Elliott
          last edited by

          @tom-elliott I’ve seen that button for other hosts before, but dont see it on this one for some reason. I did have a pending MAC address that I just approved, but that didnt seem to make any difference fb8a16bb-de08-45e6-aad5-d3b3613ee26f-image.png

          1 Reply Last reply Reply Quote 0
          • T
            turtledillpickle @Tom Elliott
            last edited by

            @tom-elliott After approving the MAC address, the logs on the client seem to be complaining about something else now

            12/1/2022 11:42:24 AM Middleware::Response Private key path not found
             12/1/2022 11:42:24 AM Middleware::Response Success
             12/1/2022 11:42:24 AM Middleware::Communication URL: http://172.16.3.10/fog/service/getversion.php?clientver&newService&json
             12/1/2022 11:42:25 AM Middleware::Communication URL: http://172.16.3.10/fog/service/getversion.php?newService&json
            
             12/1/2022 11:42:25 AM Service Creating user agent cache
             12/1/2022 11:42:25 AM Middleware::Response ERROR: Unable to get subsection
             12/1/2022 11:42:25 AM Middleware::Response ERROR: Object reference not set to an instance of an object.
             12/1/2022 11:42:25 AM Middleware::Response ERROR: Unable to get subsection
             12/1/2022 11:42:25 AM Middleware::Response ERROR: Object reference not set to an instance of an object.
             12/1/2022 11:42:25 AM Middleware::Response ERROR: Unable to get subsection
             12/1/2022 11:42:25 AM Middleware::Response ERROR: Object reference not set to an instance of an object.
            
            ------------------------------------------------------------------------------
            ---------------------------------ClientUpdater--------------------------------
            ------------------------------------------------------------------------------
             12/1/2022 11:42:25 AM Client-Info Client Version: 0.12.0
             12/1/2022 11:42:25 AM Client-Info Client OS:      Windows
             12/1/2022 11:42:25 AM Client-Info Server Version: 1.5.9
             12/1/2022 11:42:25 AM Middleware::Response Success
            ------------------------------------------------------------------------------
            
            
            ------------------------------------------------------------------------------
            ----------------------------------TaskReboot----------------------------------
            ------------------------------------------------------------------------------
             12/1/2022 11:42:25 AM Client-Info Client Version: 0.12.0
             12/1/2022 11:42:25 AM Client-Info Client OS:      Windows
             12/1/2022 11:42:25 AM Client-Info Server Version: 1.5.9
             12/1/2022 11:42:25 AM Middleware::Response ERROR: Unable to get subsection
             12/1/2022 11:42:25 AM Middleware::Response ERROR: Object reference not set to an instance of an object.
            
            ------------------------------------------------------------------------------
            --------------------------------HostnameChanger-------------------------------
            ------------------------------------------------------------------------------
             12/1/2022 11:42:25 AM Client-Info Client Version: 0.12.0
             12/1/2022 11:42:25 AM Client-Info Client OS:      Windows
             12/1/2022 11:42:25 AM Client-Info Server Version: 1.5.9
             12/1/2022 11:42:25 AM Middleware::Response ERROR: Unable to get subsection
             12/1/2022 11:42:25 AM Middleware::Response ERROR: Object reference not set to an instance of an object.
            
            ------------------------------------------------------------------------------
            ---------------------------------SnapinClient---------------------------------
            ------------------------------------------------------------------------------
             12/1/2022 11:42:25 AM Client-Info Client Version: 0.12.0
             12/1/2022 11:42:25 AM Client-Info Client OS:      Windows
             12/1/2022 11:42:25 AM Client-Info Server Version: 1.5.9
             12/1/2022 11:42:25 AM Middleware::Response ERROR: Unable to get subsection
             12/1/2022 11:42:25 AM Middleware::Response ERROR: Object reference not set to an instance of an object.
            
            ------------------------------------------------------------------------------
            --------------------------------PrinterManager--------------------------------
            ------------------------------------------------------------------------------
             12/1/2022 11:42:25 AM Client-Info Client Version: 0.12.0
             12/1/2022 11:42:25 AM Client-Info Client OS:      Windows
             12/1/2022 11:42:25 AM Client-Info Server Version: 1.5.9
             12/1/2022 11:42:25 AM Middleware::Response ERROR: Unable to get subsection
             12/1/2022 11:42:25 AM Middleware::Response ERROR: Object reference not set to an instance of an object.
            
            ------------------------------------------------------------------------------
            --------------------------------PowerManagement-------------------------------
            ------------------------------------------------------------------------------
             12/1/2022 11:42:25 AM Client-Info Client Version: 0.12.0
             12/1/2022 11:42:25 AM Client-Info Client OS:      Windows
             12/1/2022 11:42:25 AM Client-Info Server Version: 1.5.9
             12/1/2022 11:42:25 AM Middleware::Response ERROR: Unable to get subsection
             12/1/2022 11:42:25 AM Middleware::Response ERROR: Object reference not set to an instance of an object.
            
            ------------------------------------------------------------------------------
            ----------------------------------UserTracker---------------------------------
            ------------------------------------------------------------------------------
             12/1/2022 11:42:25 AM Client-Info Client Version: 0.12.0
             12/1/2022 11:42:25 AM Client-Info Client OS:      Windows
             12/1/2022 11:42:25 AM Client-Info Server Version: 1.5.9
             12/1/2022 11:42:25 AM Middleware::Response ERROR: Unable to get subsection
             12/1/2022 11:42:25 AM Middleware::Response ERROR: Object reference not set to an instance of an object.
             12/1/2022 11:42:25 AM Service Sleeping for 143 seconds
            
            
            T 1 Reply Last reply Reply Quote 0
            • T
              turtledillpickle @turtledillpickle
              last edited by

              I was able to resolve this by removing my prepopulated /opt/fog/.fogsettings file and going through the prompts from the installer. I suspect the line causing my issues was caCreated='yes'. I had copied this over from another installation.

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

              148

              Online

              12.0k

              Users

              17.3k

              Topics

              155.2k

              Posts
              Copyright © 2012-2024 FOG Project