Users cannot start a NoMachine session because "the connection with the server was lost"

Added On: 2019-10-24 Last Modified: 2019-11-28
ID: TR10Q09445 Status: Open
Severity: Minor Products:
Target: Platform: All Linux Platforms

This problem occurred when field "nodeHost" and/or "nodePort" are missing in the session entry registered in the NoMachine session db and affects NoMachine servers with support for profile rules enabled.

While listing the available sessions for the connected user, due to the lack of information about node/port the server is unable to check if there are profile rules associated to that node for that user. The procedure to convert username to SID fails and the server closes the connection with the client.

Server logs reports:

2019-10-14 11:32:40 193.092  9612 NXSERVER WARNING! NXLogin: Cannot retrieve absolute username for user: ,USERNAME.

 

As a temporary workaround, you may add the following line to the /usr/NX/etc/server.cfg file, which disables the username conversion to SID username:

DisableUsernameConversion 1

There's no need to restart the server.