Fog Client "Middleware::Response Private key path not found"
-
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 found12/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 - changing the permissions of
-
@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.
-
@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
-
@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
-
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 wascaCreated='yes'
. I had copied this over from another installation.