fog client on ubuntu 18.04
-
@jc35 This is a known but so far unsolved issue: https://github.com/FOGProject/fog-client/issues/93
I have worked on this last weekend a lot but still haven’t found a proper solution yet. Please give it a bit more time and we should be able to find and fix what is causing this.
-
Ok, thanks for your answer.
-
@jc35 Got around to hopefully get this fixed. Before officially releasing it we need more testing. Please download https://github.com/FOGProject/fog-client/releases/download/0.11.19/SmartInstaller_Linux_stop_hang_fixed.exe and test on your Ubuntu 18.04 install. I have tested on pre-20.04 myself and therefore don’t have a clue if this updated fog-client will run in Ubuntu 18.04 using .Net 4.5.2 now. Please give it a try and let us know.
-
@Sebastian-Roth Hi,
I install SmartInstaller_Linux_stop_hang_fixed.exe
mono /opt/SmartInstaller_Linux_stop_hang_fixed.exe --server="fogserver" --webroot="/fog" -s -t 0
06/04/2020 11:01:04 Main Overriding exception handling 06/04/2020 11:01:05 Main Bootstrapping Zazzles 06/04/2020 11:01:05 Controller Initialize 06/04/2020 11:01:05 Controller Start 06/04/2020 11:01:05 Service Starting service 06/04/2020 11:01:05 Bus Became bus server 06/04/2020 11:01:05 Bus Emmiting message on channel: Status 06/04/2020 11:01:05 Service Invoking early JIT compilation on needed binaries ------------------------------------------------------------------------------ --------------------------------Authentication-------------------------------- ------------------------------------------------------------------------------ 06/04/2020 11:01:05 Client-Info Version: 0.11.19 06/04/2020 11:01:05 Client-Info OS: Linux 06/04/2020 11:01:05 Middleware::Authentication Waiting for authentication timeout to pass 06/04/2020 11:01:05 Middleware::Communication Download: http://fogserver/fog/management/other/ssl/srvpublic.crt 06/04/2020 11:01:05 Data::RSA FOG Server CA cert found 06/04/2020 11:01:05 Middleware::Authentication Cert OK 06/04/2020 11:01:05 Middleware::Authentication No token found at /opt/fog-service/token.dat, this is expected if the client has not authenticated before 06/04/2020 11:01:05 Middleware::Authentication ERROR: Could not get security token 06/04/2020 11:01:05 Middleware::Authentication ERROR: Could not find file "/opt/fog-service/token.dat". 06/04/2020 11:01:05 Middleware::Communication POST URL: http://fogserver/fog/management/index.php?sub=requestClientInfo&authorize&newService 06/04/2020 11:01:05 Middleware::Response Invalid security token ------------------------------------------------------------------------------ --------------------------------Authentication-------------------------------- ------------------------------------------------------------------------------ 06/04/2020 11:01:05 Client-Info Version: 0.11.19 06/04/2020 11:01:05 Client-Info OS: Linux 06/04/2020 11:01:05 Middleware::Authentication Waiting for authentication timeout to pass
-
@jc35 The next of log:
I06/04/2020 11:09:05 Middleware::Communication URL: http://fogserver/fog/management/index.php?sub=requestClientInfo&configure&newService&json 06/04/2020 11:09:05 Middleware::Response Success 06/04/2020 11:09:05 Middleware::Communication URL: http://fogserver/fog/management/index.php?sub=requestClientInfo&mac=18:03:73:3F:B4:FF&newService&json 06/04/2020 11:09:06 Middleware::Authentication Waiting for authentication timeout to pass 06/04/2020 11:11:05 Middleware::Communication Download: http://fogserver/fog/management/other/ssl/srvpublic.crt 06/04/2020 11:11:05 Data::RSA FOG Server CA cert found 06/04/2020 11:11:05 Middleware::Authentication Cert OK 06/04/2020 11:11:05 Middleware::Authentication No token found at /opt/fog-service/token.dat, this is expected if the client has not authenticated before 06/04/2020 11:11:05 Middleware::Authentication ERROR: Could not get security token 06/04/2020 11:11:05 Middleware::Authentication ERROR: Could not find file "/opt/fog-service/token.dat". 06/04/2020 11:11:05 Middleware::Communication POST URL: http://fogserver/fog/management/index.php?sub=requestClientInfo&authorize&newService 06/04/2020 11:11:05 Middleware::Response Invalid security token 06/04/2020 11:11:05 Middleware::Response Success 06/04/2020 11:11:05 Middleware::Communication URL: http://fogserver/fog/service/getversion.php?clientver&newService&json 06/04/2020 11:11:05 Middleware::Communication URL: http://fogserver/fog/service/getversion.php?newService&json 06/04/2020 11:11:06 Service Creating user agent cache 06/04/2020 11:11:06 Middleware::Response ERROR: Unable to get subsection 06/04/2020 11:11:06 Middleware::Response ERROR: Object reference not set to an instance of an object 06/04/2020 11:11:06 Middleware::Response ERROR: Unable to get subsection 06/04/2020 11:11:06 Middleware::Response ERROR: Object reference not set to an instance of an object 06/04/2020 11:11:06 Middleware::Response ERROR: Unable to get subsection 06/04/2020 11:11:06 Middleware::Response ERROR: Object reference not set to an instance of an object 06/04/2020 11:11:06 Service Initializing modules ------------------------------------------------------------------------------ ---------------------------------ClientUpdater-------------------------------- ------------------------------------------------------------------------------ 06/04/2020 11:11:06 Client-Info Client Version: 0.11.19 06/04/2020 11:11:06 Client-Info Client OS: Linux 06/04/2020 11:11:06 Client-Info Server Version: 1.5.8 06/04/2020 11:11:06 Middleware::Response Success ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ----------------------------------TaskReboot---------------------------------- ------------------------------------------------------------------------------ 06/04/2020 11:11:06 Client-Info Client Version: 0.11.19 06/04/2020 11:11:06 Client-Info Client OS: Linux 06/04/2020 11:11:06 Client-Info Server Version: 1.5.8 06/04/2020 11:11:06 Middleware::Response ERROR: Unable to get subsection 06/04/2020 11:11:06 Middleware::Response ERROR: Object reference not set to an instance of an object ------------------------------------------------------------------------------ --------------------------------HostnameChanger------------------------------- ------------------------------------------------------------------------------ 06/04/2020 11:11:06 Client-Info Client Version: 0.11.19 06/04/2020 11:11:06 Client-Info Client OS: Linux 06/04/2020 11:11:06 Client-Info Server Version: 1.5.8 06/04/2020 11:11:06 Middleware::Response ERROR: Unable to get subsection 06/04/2020 11:11:06 Middleware::Response ERROR: Object reference not set to an instance of an object ------------------------------------------------------------------------------ ---------------------------------SnapinClient--------------------------------- ------------------------------------------------------------------------------ 06/04/2020 11:11:06 Client-Info Client Version: 0.11.19 06/04/2020 11:11:06 Client-Info Client OS: Linux 06/04/2020 11:11:06 Client-Info Server Version: 1.5.8 06/04/2020 11:11:06 Middleware::Response ERROR: Unable to get subsection 06/04/2020 11:11:06 Middleware::Response ERROR: Object reference not set to an instance of an object ------------------------------------------------------------------------------ --------------------------------PrinterManager-------------------------------- ------------------------------------------------------------------------------ 06/04/2020 11:11:06 Client-Info Client Version: 0.11.19 06/04/2020 11:11:06 Client-Info Client OS: Linux 06/04/2020 11:11:06 Client-Info Server Version: 1.5.8 06/04/2020 11:11:06 Middleware::Response ERROR: Unable to get subsection 06/04/2020 11:11:06 Middleware::Response ERROR: Object reference not set to an instance of an object ------------------------------------------------------------------------------ --------------------------------PowerManagement------------------------------- ------------------------------------------------------------------------------ 06/04/2020 11:11:06 Client-Info Client Version: 0.11.19 06/04/2020 11:11:06 Client-Info Client OS: Linux 06/04/2020 11:11:06 Client-Info Server Version: 1.5.8 06/04/2020 11:11:06 Middleware::Response ERROR: Unable to get subsection 06/04/2020 11:11:06 Middleware::Response ERROR: Object reference not set to an instance of an object ------------------------------------------------------------------------------ ----------------------------------UserTracker--------------------------------- ------------------------------------------------------------------------------ 06/04/2020 11:11:06 Client-Info Client Version: 0.11.19 06/04/2020 11:11:06 Client-Info Client OS: Linux 06/04/2020 11:11:06 Client-Info Server Version: 1.5.8 06/04/2020 11:11:06 Middleware::Response ERROR: Unable to get subsection 06/04/2020 11:11:06 Middleware::Response ERROR: Object reference not set to an instance of an object 06/04/2020 11:11:06 Service Sleeping for 940 seconds 06/04/2020 11:26:46 Middleware::Communication URL: http://fogserver/fog/management/index.php?sub=requestClientInfo&configure&newService&json 06/04/2020 11:26:46 Middleware::Response Success 06/04/2020 11:26:46 Middleware::Communication URL: http://fogserver/fog/management/index.php?sub=requestClientInfo&mac=18:03:73:3F:B4:FF&newService&json 06/04/2020 11:26:47 Middleware::Authentication Waiting for authentication timeout to pass 06/04/2020 11:26:47 Middleware::Communication Download: http://fogserver/fog/management/other/ssl/srvpublic.crt 06/04/2020 11:26:47 Data::RSA FOG Server CA cert found 06/04/2020 11:26:47 Middleware::Authentication Cert OK 06/04/2020 11:26:47 Middleware::Authentication No token found at /opt/fog-service/token.dat, this is expected if the client has not authenticated before 06/04/2020 11:26:47 Middleware::Authentication ERROR: Could not get security token 06/04/2020 11:26:47 Middleware::Authentication ERROR: Could not find file "/opt/fog-service/token.dat". 06/04/2020 11:26:47 Middleware::Communication POST URL: http://fogserver/fog/management/index.php?sub=requestClientInfo&authorize&newService 06/04/2020 11:26:47 Middleware::Response Invalid security token 06/04/2020 11:26:47 Middleware::Response Success 06/04/2020 11:26:47 Middleware::Communication URL: http://fogserver/fog/service/getversion.php?clientver&newService&json 06/04/2020 11:26:47 Middleware::Communication URL: http://fogserver/fog/service/getversion.php?newService&json 06/04/2020 11:26:48 Service Creating user agent cache 06/04/2020 11:26:48 Middleware::Response ERROR: Unable to get subsection 06/04/2020 11:26:48 Middleware::Response ERROR: Object reference not set to an instance of an object 06/04/2020 11:26:48 Middleware::Response ERROR: Unable to get subsection 06/04/2020 11:26:48 Middleware::Response ERROR: Object reference not set to an instance of an object 06/04/2020 11:26:48 Middleware::Response ERROR: Unable to get subsection 06/04/2020 11:26:48 Middleware::Response ERROR: Object reference not set to an instance of an object ------------------------------------------------------------------------------ ---------------------------------ClientUpdater-------------------------------- ------------------------------------------------------------------------------ 06/04/2020 11:26:48 Client-Info Client Version: 0.11.19 06/04/2020 11:26:48 Client-Info Client OS: Linux 06/04/2020 11:26:48 Client-Info Server Version: 1.5.8 06/04/2020 11:26:48 Middleware::Response Success ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ----------------------------------TaskReboot---------------------------------- ------------------------------------------------------------------------------ 06/04/2020 11:26:48 Client-Info Client Version: 0.11.19 06/04/2020 11:26:48 Client-Info Client OS: Linux 06/04/2020 11:26:48 Client-Info Server Version: 1.5.8 06/04/2020 11:26:48 Middleware::Response ERROR: Unable to get subsection 06/04/2020 11:26:48 Middleware::Response ERROR: Object reference not set to an instance of an object ------------------------------------------------------------------------------ --------------------------------HostnameChanger------------------------------- ------------------------------------------------------------------------------ 06/04/2020 11:26:48 Client-Info Client Version: 0.11.19 06/04/2020 11:26:48 Client-Info Client OS: Linux 06/04/2020 11:26:48 Client-Info Server Version: 1.5.8 06/04/2020 11:26:48 Middleware::Response ERROR: Unable to get subsection 06/04/2020 11:26:48 Middleware::Response ERROR: Object reference not set to an instance of an object ------------------------------------------------------------------------------ ---------------------------------SnapinClient--------------------------------- ------------------------------------------------------------------------------ 06/04/2020 11:26:48 Client-Info Client Version: 0.11.19 06/04/2020 11:26:48 Client-Info Client OS: Linux 06/04/2020 11:26:48 Client-Info Server Version: 1.5.8 06/04/2020 11:26:48 Middleware::Response ERROR: Unable to get subsection 06/04/2020 11:26:48 Middleware::Response ERROR: Object reference not set to an instance of an object ------------------------------------------------------------------------------ --------------------------------PrinterManager-------------------------------- ------------------------------------------------------------------------------ 06/04/2020 11:26:48 Client-Info Client Version: 0.11.19 06/04/2020 11:26:48 Client-Info Client OS: Linux 06/04/2020 11:26:48 Client-Info Server Version: 1.5.8 06/04/2020 11:26:48 Middleware::Response ERROR: Unable to get subsection 06/04/2020 11:26:48 Middleware::Response ERROR: Object reference not set to an instance of an object ------------------------------------------------------------------------------ --------------------------------PowerManagement------------------------------- ------------------------------------------------------------------------------ 06/04/2020 11:26:48 Client-Info Client Version: 0.11.19 06/04/2020 11:26:48 Client-Info Client OS: Linux 06/04/2020 11:26:48 Client-Info Server Version: 1.5.8 06/04/2020 11:26:48 Middleware::Response ERROR: Unable to get subsection 06/04/2020 11:26:48 Middleware::Response ERROR: Object reference not set to an instance of an object ------------------------------------------------------------------------------ ----------------------------------UserTracker--------------------------------- ------------------------------------------------------------------------------ 06/04/2020 11:26:48 Client-Info Client Version: 0.11.19 06/04/2020 11:26:48 Client-Info Client OS: Linux 06/04/2020 11:26:48 Client-Info Server Version: 1.5.8 06/04/2020 11:26:48 Middleware::Response ERROR: Unable to get subsection 06/04/2020 11:26:48 Middleware::Response ERROR: Object reference not set to an instance of an object 06/04/2020 11:26:48 Service Sleeping for 972 secondsnsert Code Here
-
@jc35 said in fog client on ubuntu 18.04:
Middleware::Response Invalid security token
Do a “Reset Encryption Data” for this host in the FOG web GUI!
-
@Sebastian-Roth I try on 2 machines and it works.
-
@jc35 So shutdown is not hanging anymore and fog-client functions as expected? Did you also test scheduling a power task to shutdown or reboot the machines?
-
@jc35 Hi,
Yesterday I have the same problem on a machine, when a powerdown.
I retry this. The client can’t contact the server because the vpn is down.
Client updater works on Linux ? -
@jc35 said:
Client updater works on Linux ?
Really good question. I have not tried this myself I think. Not sure if it does. Will need to check.
-
@jc35 Found some time to look into the client updater on Linux and seems like there are a few issues with that unfortunately. I was able to find and fix the first one but it still needs more work.
-