Knowledge Base
Searching in : Trouble report
ID:TR08S10339
Added on: 2021-08-20
Last Update: 2023-06-12
Affects: 7
Due to be solved in: 7.x
Platform: All Platforms
Product: NoMachine Server
Severity: Minor
Status: Open
Print this article

Error "connection to the server was lost" or timeout occurs when NoMachine log rotation is enabled

This problem is related to the 'nxserver --daemon' process checking for logs in users' home directories during the logrotate procedure and occurs when home directories are mounted by network.  In this case the check procedure can take long time. During that time 'nxserver --daemon' is not able to provide access to database for new nxsever process and users get error or timeout.

Logs report:
3522438 3522438 2021-08-18 08:57:05 376.966 NXSERVER WARNING! NXRedis: waiting for acquire timeout: 180 reached.

Possible workaround is:

- disable logrotate
sudo /etc/NX/nxserver --logrotatedel

- and restart NoMachine
sudo /etc/NX/nxserver --restart

or kill -9 the nxserver --daemon process, so that it will be restarted.