NoMachine Support

Your questions answered

Knowledge Base

Searching in: Trouble Reports
Filter the search results
Last update:
Searching in: Trouble Reports
ID: TR03Q09204
Added on: 2019-03-25
Last update: 2019-05-23
Solved in: 6.7.6
Platform: All Linux Platforms
Product: NoMachine Server
Severity: Minor
Status: Closed
The nxerror.log file is recreated with wrong permissions

When the nxerror.log file is manually removed for some reasons, it's recreated in a few seconds by the running nx processes but with wrong access rights, 600.

As a consequence it will be no longer possible to create new virtual desktops or reconnect them and no physical desktop will be available.

When trying to create new virtual desktops, the nxserver.log reports messages like: 

2019-04-24 16:22:28 321.654 10833 NXSERVER ERROR! Received error message from node 'localhost:4000', 'NX> 596 Error: Cannot open /usr/NX/var/log/nxerror.log - 'Permission denied'.n'

and for physical desktops:
2019-03-21 17:05:42 156.943  1376 NXSERVER Parse local node message 'NX> 596 Error: Cannot open /usr/NX/var/log/nxerror.log - 'Permission denied'. ' on FD#21.

As a workaround, restart the NoMachine server:
sudo /etc/NX/nxserver --restart

This operation will set proper permissions and ownership to the nxerror.log file.

As an alternative, you can set them by hand:

chmod 662 /usr/NX/var/log/nxerror.log
chown nx:root /usr/NX/var/log/nxerror.log