Sessions don't start on the remote Linux host when the user's home is NFS mounted

Added On: 2020-12-23 Last Modified: 2021-02-03
ID: TR12R09991 Status: Closed
Severity: Minor Products:
Target: Platform: All Linux Platforms

Since NoMachine v. 7, logs of processes running as the logged-in user are stored in the user's home/.nx directory.

When the user's home is NFS mounted, however, NoMachine is unable to lock the nxserver.log file in the .nx directory in the user's home. As a consequence, the nxnode process fails during startup and the session doesn't start.

The nxerror.log file in the user's home/.nx directory reports a message like:

23813 23813 16:55:23 743.409 File: ERROR! Can't lock FD#7 with mask 0x5.
23813 23813 16:55:23 743.506 File: ERROR! Error is 9, 'Bad file descriptor'.
Error: Cannot lock log file '/home/user01/.nx/nxserver.log'

As a temporary workaround, enable logging to system logs in the server and node configuration files (/usr/NX/etc/server.cfg and /usr/NX/etc/node.cfg respectively).

Remove the pre-pending # from the key name and set:

EnableSyslogSupport 1


As an alternative, you can enable the CommonLogDirectory key in the node configuration file and set it to a local directory path, writable by all users who connect by NoMachine.