Is your Debian a headless system? Please send output following commands:
grep CreateDisplay /usr/NX/etc/server.cfg
grep DefaultDesktopCommand /usr/NX/etc/node.cfg
If you don’t have a headless system and CreateDisplay key is set to “1”, please edit server.cfg and set key to following value:
CreateDisplay 0
If it’s not the case, please enable debug, restart nxserver (sudo /usr/NX/bin/nxserver --restart
), reproduce problem, collect logs and send them to forum[at]nomachine[dot]com? Instructions about debug and collecting logs you can find there: https://www.nomachine.com/DT10O00163.