The latest version of NoMachine Server (Free edition – 5.2.21) stopped running on Ubuntu 14.04. I used to use it for a long time but after the update I cannot login any more to the NX server running on my Ubuntu laptop. After a bit of digging, the problem boils down to nxexec command always failing with “Could not retrieve NX scripts directory” error. In log files any command issued via nxexec fails with the same error.
Same if I try to run it manually:
🕠 [root@Lothlorien:/home/usr/NX/var/log] # /usr/NX/bin/nxexec nxfwget.sh iptables INPUT
Error: Could not retrieve NX scripts directory.
Stracing the problem does not bring any more info:
readlink(“/proc/17754/exe”, “/home/usr/NX/bin/nxexec”, 256) = 23
lstat(“/etc/NX/server/localhost/client.cfg”, {st_mode=S_IFREG|0644, st_size=607, …}) = 0
open(“/etc/NX/server/localhost/client.cfg”, O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=607, …}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fada4771000
read(3, “################################”…, 4096) = 607
read(3, “”, 4096) = 0
close(3) = 0
munmap(0x7fada4771000, 4096) = 0
lstat(“/etc/NX/node/localhost/client.cfg”, 0x7ffece9421c0) = -1 ENOENT (No such file or directory)
lstat(“/etc/NX/player/localhost/client.cfg”, 0x7ffece9421c0) = -1 ENOENT (No such file or directory)
write(2, “Error: Could not retrieve NX scr”…, 48Error: Could not retrieve NX scripts directory.
I tried to add the last files which were missing also providing the configuration files as they (I think) should be. Tried all the combinations.
I remove NoMachine completely (including manually removing all the /usr/NX/ /etc/NX etc. directories after uninstalling with dpkg. Clean install produces exactly the same errors. I reinstalled it using dpkg, later repeated it with .tar.gz. All the same. I always used standard directory structure.