Auto log off doesn't work
-
Hello,
I would like too test auto log off service but it doesn’ seem working.here are the log of the client:
------------------------------------------------------------------------------ --------------------------------PrinterManager-------------------------------- ------------------------------------------------------------------------------ 12/02/2018 18:12 Client-Info Client Version: 0.11.12 12/02/2018 18:12 Client-Info Client OS: Windows 12/02/2018 18:12 Client-Info Server Version: 1.4.4 12/02/2018 18:12 Middleware::Response No Printers ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ --------------------------------PowerManagement------------------------------- ------------------------------------------------------------------------------ 12/02/2018 18:12 Client-Info Client Version: 0.11.12 12/02/2018 18:12 Client-Info Client OS: Windows 12/02/2018 18:12 Client-Info Server Version: 1.4.4 12/02/2018 18:12 Middleware::Response Success 12/02/2018 18:12 PowerManagement Calculating tasks to unschedule 12/02/2018 18:12 PowerManagement Calculating tasks to schedule ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ----------------------------------UserTracker--------------------------------- ------------------------------------------------------------------------------ 12/02/2018 18:12 Client-Info Client Version: 0.11.12 12/02/2018 18:12 Client-Info Client OS: Windows 12/02/2018 18:12 Client-Info Server Version: 1.4.4 12/02/2018 18:12 Middleware::Response Success ------------------------------------------------------------------------------ 12/02/2018 18:12 Service Sleeping for 246 seconds 12/02/2018 18:16 Middleware::Communication URL: http://toto.univ-rennes1.fr/fog/management/index.php?sub=requestClientInfo&con e&json 12/02/2018 18:16 Middleware::Response Success 12/02/2018 18:16 Middleware::Communication URL: http://toto.univ-rennes1.fr/fog/management/index.php?sub=requestClientInfo&mac 1D&newService&json 12/02/2018 18:16 Middleware::Authentication Waiting for authentication timeout to pass 12/02/2018 18:16 Middleware::Communication Download: http://toto.univ-rennes1.fr/fog/management/other/ssl/srvpublic.crt 12/02/2018 18:16 Data::RSA FOG Server CA cert found 12/02/2018 18:16 Middleware::Authentication Cert OK 12/02/2018 18:16 Middleware::Communication POST URL: http://toto.univ-rennes1.fr/fog/management/index.php?sub=requestClientInf ervice 12/02/2018 18:16 Middleware::Response Success 12/02/2018 18:16 Middleware::Authentication Authenticated 12/02/2018 18:16 Middleware::Communication URL: http://toto.univ-rennes1.fr/fog/management/index.php?sub=requestClientInfo&mac 1D&newService&json 12/02/2018 18:16 Middleware::Response Success 12/02/2018 18:16 Middleware::Communication URL: http://toto.univ-rennes1.fr/fog/service/getversion.php?clientver&newService&js 12/02/2018 18:16 Middleware::Communication URL: http://toto.univ-rennes1.fr/fog/service/getversion.php?newService&json 12/02/2018 18:16 Service Creating user agent cache 12/02/2018 18:16 Middleware::Response Invalid time 12/02/2018 18:16 Middleware::Response No Printers 12/02/2018 18:16 Middleware::Response Module is disabled globally on the FOG server ------------------------------------------------------------------------------ ---------------------------------ClientUpdater-------------------------------- ------------------------------------------------------------------------------ 12/02/2018 18:16 Client-Info Client Version: 0.11.12 12/02/2018 18:16 Client-Info Client OS: Windows 12/02/2018 18:16 Client-Info Server Version: 1.4.4 12/02/2018 18:16 Middleware::Response Success ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ----------------------------------TaskReboot---------------------------------- ------------------------------------------------------------------------------ 12/02/2018 18:16 Client-Info Client Version: 0.11.12 12/02/2018 18:16 Client-Info Client OS: Windows 12/02/2018 18:16 Client-Info Server Version: 1.4.4 12/02/2018 18:16 Middleware::Response Success ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ --------------------------------HostnameChanger------------------------------- ------------------------------------------------------------------------------ 12/02/2018 18:16 Client-Info Client Version: 0.11.12 12/02/2018 18:16 Client-Info Client OS: Windows 12/02/2018 18:16 Client-Info Server Version: 1.4.4 12/02/2018 18:16 Middleware::Response Success 12/02/2018 18:16 HostnameChanger Checking Product Key Activation 12/02/2018 18:16 HostnameChanger Already activated with correct key 12/02/2018 18:16 HostnameChanger Checking Hostname 12/02/2018 18:16 HostnameChanger Hostname is correct ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ---------------------------------SnapinClient--------------------------------- ------------------------------------------------------------------------------ 12/02/2018 18:16 Client-Info Client Version: 0.11.12 12/02/2018 18:16 Client-Info Client OS: Windows 12/02/2018 18:16 Client-Info Server Version: 1.4.4 12/02/2018 18:16 Middleware::Response No snapins ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ --------------------------------PrinterManager-------------------------------- ------------------------------------------------------------------------------ 12/02/2018 18:16 Client-Info Client Version: 0.11.12 12/02/2018 18:16 Client-Info Client OS: Windows 12/02/2018 18:16 Client-Info Server Version: 1.4.4 12/02/2018 18:16 Middleware::Response No Printers ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ --------------------------------PowerManagement------------------------------- ------------------------------------------------------------------------------ 12/02/2018 18:16 Client-Info Client Version: 0.11.12 12/02/2018 18:16 Client-Info Client OS: Windows 12/02/2018 18:16 Client-Info Server Version: 1.4.4 12/02/2018 18:16 Middleware::Response Success 12/02/2018 18:16 PowerManagement Calculating tasks to unschedule 12/02/2018 18:16 PowerManagement Calculating tasks to schedule ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ ----------------------------------UserTracker--------------------------------- ------------------------------------------------------------------------------ 12/02/2018 18:16 Client-Info Client Version: 0.11.12 12/02/2018 18:16 Client-Info Client OS: Windows 12/02/2018 18:16 Client-Info Server Version: 1.4.4 12/02/2018 18:16 Middleware::Response Success ------------------------------------------------------------------------------ 12/02/2018 18:16 Service Sleeping for 275 seconds``` Could you help me. Would it work under linux ? Lebrun
-
@lebrun78 what time have you set? Anything below 5 minutes is invalid.
The message presented by the logs also says “Invalid time”
-
Thanks Tom,
Yes it’s working with 6 minutes.
Should it work with a linux client (fedora or centos) ? -
@lebrun78 it should yes.
-
@lebrun78 Do you see any issues logging users off on Linux machines? If not I’d mark this solved.
-
Hello,
on Fedora 25 - 26 and on CentOS-7, it doesn’t work.
The file fog.log does do contain the logout feature.
This file is:
[0_1519229981151_fog.log](Uploading 100%)
Thanks. -
@adrien17 the autologout module is contained in a different, user-specific, log
~/.fog_user.log
However, my gut reaction is that you’re missing the needed dependency for Linux autologout:
xprintidle
. Try installing that via your package manager (or even use a snapin to automate it!) (src: https://github.com/fogproject/fog-client#autologout). -
Hello,
I have installed libXScrnSaver-devel (by dnf) and xprintidle (by pip).
The file xprintidle.py is in /usr/lib64/python-2.7/site-packages.
But on the user log I have:
—AutoLogOut—
User ERROR: Unable to get user inactivity time
User ERROR: ApplicationName=‘xprintidle’, CommandLine=‘’, CurrentDirectory=‘’, Native error= Cannot find the specified fileI tried to install xprintidle under python3.5 by “pip3 install xprintidle” but this fails.
Thanks for all -
@adrien17 you need to install “xprintidle” from the package manager, exactly. The devel and python packages won’t work.
It’s in the Debian based repos by default, but you can still install it on REHL based systems (Fedora, CentOS,…). See https://ask.fedoraproject.org/en/question/96605/how-to-install-xprintidle-on-fedora-24/?answer=96623#post-id-96623 for a basic idea on how to do that.
-
Hello,
I have installed xprintidle by rpm. Now there is no more error in the user log; however, the auto-logout does not happen.
In the user config, I activate the screensaver, but not the suspend. -
@adrien17 I sent you a chat message earlier with some further debugging information. You should be able to see it in the little chat button next to your profile picture on the top navbar.