NoMachine Support

Your questions answered

Knowledge Base

Searching in: Trouble Reports
Filter the search results
Last update:
Affects:
Product:
Status:
Searching in: Trouble Reports
ID: TR03R09578
Added on: 2020-03-20
Last update: 2020-06-16
Solved in: 6.11.2
Platform: All Platforms
Product: NoMachine Server
Severity: Minor
Status: Closed
Not all the custom scripts are executed on the child server in a multi-server setup

Some custom scripts set on the child server are not executed when the client connections use the NX protocol.

Scripts which are not executed are:

UserScriptAfterLogin
UserScriptAfterLogout
UserScriptBeforeSessionReconnect
UserScriptAfterSessionReconnect
UserScriptBeforeSessionDisconnect
UserScriptAfterSessionDisconnect
UserScriptBeforeSessionFailure
UserScriptAfterSessionFailure

The following scripts are instead executed:

UserScriptBeforeLogin
UserScriptBeforeSessionStart
UserScriptAfterSessionStart
UserScriptBeforeSessionClose
UserScriptAfterSessionClose

Note: scripts related to disconnect/reconnect events apply only to NoMachine virtual desktops and are never executed on the Enterprise Desktop which allows only connections to the physical display.

As a workaround, force the forward method between Cloud Server and child server to 'system':

/etc/NX/nxserver --serveredit IP_OF_CHILD_SERVER:PORT --forward-nx-methods system

Connections by SSH are already forwarded by default with the 'system' method.
If a different method was set, the workaround must be applied also in this case:

/etc/NX/nxserver --serveredit IP_OF_CHILD_SERVER:PORT --forward-ssh-methods system