Forum / NoMachine Terminal Server Products / Terminal Server won’t start: Can’t create directory ‘/var/NX/nx/.nx
- This topic has 2 replies, 2 voices, and was last updated 4 years, 7 months ago by david55.
-
AuthorPosts
-
April 10, 2020 at 13:55 #26655david55Participant
I am trying to install/test NoMachine Terminal Server (version nomachine-terminal-server_6.9.2_1_x86_64.rpm) on Scientific Linux 7.6 (a RHEL clone).
Our servers are semi-automatically managed by a configuration system, but I have installed the rpm manually for testing, seemingly successfully, although NoMachine does not run after installation.
systemctl start nxserver.service
seems to start it, but it terminates almost immediately:nxserver.service – NoMachine Server daemon
Loaded: loaded (/usr/lib/systemd/system/nxserver.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2020-04-09 14:41:02 BST; 454ms ago
Main PID: 13451 (nxserver.bin)
CGroup: /system.slice/nxserver.service
├─12192 /usr/NX/bin/nxhtd.bin -f /usr/NX/etc/htd.cfg -d /usr/NX -DNO_DETACH -k start
├─12231 /usr/NX/bin/nxhtd.bin -f /usr/NX/etc/htd.cfg -d /usr/NX -DNO_DETACH -k start
└─13451 /usr/NX/bin/nxserver.bin –daemonApr 09 14:41:02 systemd[1]: nxserver.service holdoff time over, scheduling restart.
Apr 09 14:41:02 systemd[1]: Stopped NoMachine Server daemon.
Apr 09 14:41:02 systemd[1]: Started NoMachine Server daemon.and then:
nxserver.service – NoMachine Server daemon
Loaded: loaded (/usr/lib/systemd/system/nxserver.service; enabled; vendor preset: enabled)
Active: failed (Result: start-limit) since Thu 2020-04-09 14:41:06 BST; 36s ago
Process: 13557 ExecStart=/etc/NX/nxserver –daemon (code=killed, signal=KILL)
Main PID: 13557 (code=killed, signal=KILL)
CGroup: /system.slice/nxserver.service
├─12192 /usr/NX/bin/nxhtd.bin -f /usr/NX/etc/htd.cfg -d /usr/NX -DNO_DETACH -k start
└─12231 /usr/NX/bin/nxhtd.bin -f /usr/NX/etc/htd.cfg -d /usr/NX -DNO_DETACH -k startApr 09 14:41:06 systemd[1]: nxserver.service holdoff time over, scheduling restart.
Apr 09 14:41:06 systemd[1]: Stopped NoMachine Server daemon.
Apr 09 14:41:06 systemd[1]: start request repeated too quickly for nxserver.service
Apr 09 14:41:06 systemd[1]: Failed to start NoMachine Server daemon.
Apr 09 14:41:06 systemd[1]: Unit nxserver.service entered failed state.
Apr 09 14:41:06 systemd[1]: nxserver.service failed./usr/NX/var/log/nxerror.log says:
13416 13449 14:41:02 588.466 DaemonParser/Parser: WARNING! Creating directory ‘/var/NX/nx/.nx’.
13416 13449 14:41:02 588.551 DaemonParser/Parser: ERROR! Can’t create directory ‘/var/NX/nx/.nx. Error is 13 ‘
Permission denied’.
Error: Can’t create directory ‘/var/NX/nx/.nx. Error is 13 ‘Permission denied’.
13416 13449 14:41:02 588.581 LocateClientApplication/Threadable: WARNING! Aborting threadable 0x5732f10.
13416 13449 14:41:02 588.592 LocateClientApplication/Threadable: WARNING! Error is 22, ‘Invalid argument’.
13416 13449 14:41:02 588.603 System/System: Abort called for system at 0x7fd008bee940.
13416 13449 14:41:02 588.614 System/System: Error is 22, ‘Invalid argument’.
13416 13449 14:41:02 588.625 System/System: ERROR! Killing the current program.
Error: Killing the current program.
13416 13449 14:41:02 588.643 Process: WARNING! Dumping stack for thread 13449:
13416 13449 14:41:02 588.643 Process: #0 libnx.so(_Z11ProcessKillv+0x10).
13416 13449 14:41:02 588.643 Process: #1 libnx.so(_ZNK6System5abortEi+0x1f3).
13416 13449 14:41:02 588.643 Process: #2 libnx.so(_ZNK10Threadable5abortEi+0xd2).
13416 13449 14:41:02 588.643 Process: #3 libnx.so(_ZNK6Object5abortEi+0x20).
13416 13449 14:41:02 588.643 Process: #4 libnx.so(_ZN6Parser11getRootPathEv+0x241).
13416 13449 14:41:02 588.643 Process: #5 libnx.so(_ZN6Parser14setDirectoriesEv+0x25).
13416 13449 14:41:02 588.643 Process: #6 libnxd.so(_ZN12DaemonParser19parseEncryptOptionsEv+0x1a).
13416 13449 14:41:02 588.643 Process: #7 libnxd.so(_ZN17DaemonApplication22parseEncryptionOptionsEv+0x20).
13416 13449 14:41:02 588.643 Process: #8 libnxd.so(_ZN23DaemonClientApplication3runEv+0x23).
13416 13449 14:41:02 588.643 Process: #9 libnxhs.so(_Z22ServerLocateClientMainiPPcS0_+0x54).
13416 13449 14:41:02 588.643 Process: #10 libnxc.so(+0x73d34).
13416 13449 14:41:02 588.643 Process: #11 libpthread.so.0(+0x7ea5).
13416 13449 14:41:02 588.643 Process: #12 libc.so.6(clone+0x6d).
13451 13485 14:41:03 630.472 DaemonParser/Parser: WARNING! Creating directory ‘/var/NX/nx/.nx’.
13451 13485 14:41:03 630.557 DaemonParser/Parser: ERROR! Can’t create directory ‘/var/NX/nx/.nx. Error is 13 ‘
Permission denied’.
Error: Can’t create directory ‘/var/NX/nx/.nx. Error is 13 ‘Permission denied’.
13451 13485 14:41:03 630.587 LocateClientApplication/Threadable: WARNING! Aborting threadable 0x4610f10.
13451 13485 14:41:03 630.599 LocateClientApplication/Threadable: WARNING! Error is 22, ‘Invalid argument’.
13451 13485 14:41:03 630.609 System/System: Abort called for system at 0x7fd2aaa14940.
13451 13485 14:41:03 630.621 System/System: Error is 22, ‘Invalid argument’.
13451 13485 14:41:03 630.631 System/System: ERROR! Killing the current program.
Error: Killing the current program.
13451 13485 14:41:03 630.648 Process: WARNING! Dumping stack for thread 13485:
13451 13485 14:41:03 630.648 Process: #0 libnx.so(_Z11ProcessKillv+0x10).
13451 13485 14:41:03 630.648 Process: #1 libnx.so(_ZNK6System5abortEi+0x1f3).
13451 13485 14:41:03 630.648 Process: #2 libnx.so(_ZNK10Threadable5abortEi+0xd2).
13451 13485 14:41:03 630.648 Process: #3 libnx.so(_ZNK6Object5abortEi+0x20).
13451 13485 14:41:03 630.648 Process: #4 libnx.so(_ZN6Parser11getRootPathEv+0x241).
13451 13485 14:41:03 630.648 Process: #5 libnx.so(_ZN6Parser14setDirectoriesEv+0x25).
13451 13485 14:41:03 630.648 Process: #6 libnxd.so(_ZN12DaemonParser19parseEncryptOptionsEv+0x1a).
13451 13485 14:41:03 630.648 Process: #7 libnxd.so(_ZN17DaemonApplication22parseEncryptionOptionsEv+0x20).
13451 13485 14:41:03 630.648 Process: #8 libnxd.so(_ZN23DaemonClientApplication3runEv+0x23).
13451 13485 14:41:03 630.648 Process: #9 libnxhs.so(_Z22ServerLocateClientMainiPPcS0_+0x54).
13451 13485 14:41:03 630.648 Process: #10 libnxc.so(+0x73d34).
13451 13485 14:41:03 630.648 Process: #11 libpthread.so.0(+0x7ea5).
13451 13485 14:41:03 630.648 Process: #12 libc.so.6(clone+0x6d).
13487 13520 14:41:04 609.458 DaemonParser/Parser: WARNING! Creating directory ‘/var/NX/nx/.nx’.
13487 13520 14:41:04 609.530 DaemonParser/Parser: ERROR! Can’t create directory ‘/var/NX/nx/.nx. Error is 13 ‘
Permission denied’.
Error: Can’t create directory ‘/var/NX/nx/.nx. Error is 13 ‘Permission denied’.
13487 13520 14:41:04 609.559 LocateClientApplication/Threadable: WARNING! Aborting threadable 0x4d0ff50.
13487 13520 14:41:04 609.570 LocateClientApplication/Threadable: WARNING! Error is 22, ‘Invalid argument’.
13487 13520 14:41:04 609.581 System/System: Abort called for system at 0x7fdac71a8940.
13487 13520 14:41:04 609.592 System/System: Error is 22, ‘Invalid argument’.
13487 13520 14:41:04 609.602 System/System: ERROR! Killing the current program.
Error: Killing the current program.
13487 13520 14:41:04 609.619 Process: WARNING! Dumping stack for thread 13520:
13487 13520 14:41:04 609.619 Process: #0 libnx.so(_Z11ProcessKillv+0x10).
13487 13520 14:41:04 609.619 Process: #1 libnx.so(_ZNK6System5abortEi+0x1f3).
13487 13520 14:41:04 609.619 Process: #2 libnx.so(_ZNK10Threadable5abortEi+0xd2).
13487 13520 14:41:04 609.619 Process: #3 libnx.so(_ZNK6Object5abortEi+0x20).
13487 13520 14:41:04 609.619 Process: #4 libnx.so(_ZN6Parser11getRootPathEv+0x241).
13487 13520 14:41:04 609.619 Process: #5 libnx.so(_ZN6Parser14setDirectoriesEv+0x25).
13487 13520 14:41:04 609.619 Process: #6 libnxd.so(_ZN12DaemonParser19parseEncryptOptionsEv+0x1a).
13487 13520 14:41:04 609.619 Process: #7 libnxd.so(_ZN17DaemonApplication22parseEncryptionOptionsEv+0x20).
13487 13520 14:41:04 609.619 Process: #8 libnxd.so(_ZN23DaemonClientApplication3runEv+0x23).
13487 13520 14:41:04 609.619 Process: #9 libnxhs.so(_Z22ServerLocateClientMainiPPcS0_+0x54).
13487 13520 14:41:04 609.619 Process: #10 libnxc.so(+0x73d34).
13487 13520 14:41:04 609.619 Process: #11 libpthread.so.0(+0x7ea5).
13487 13520 14:41:04 609.619 Process: #12 libc.so.6(clone+0x6d).
13522 13555 14:41:05 592.650 DaemonParser/Parser: WARNING! Creating directory ‘/var/NX/nx/.nx’.
13522 13555 14:41:05 592.735 DaemonParser/Parser: ERROR! Can’t create directory ‘/var/NX/nx/.nx. Error is 13 ‘
Permission denied’.
Error: Can’t create directory ‘/var/NX/nx/.nx. Error is 13 ‘Permission denied’.
13522 13555 14:41:05 592.775 LocateClientApplication/Threadable: WARNING! Aborting threadable 0x4626f50.
13522 13555 14:41:05 592.788 LocateClientApplication/Threadable: WARNING! Error is 22, ‘Invalid argument’.
13522 13555 14:41:05 592.799 System/System: Abort called for system at 0x7ffb51711940.
13522 13555 14:41:05 592.811 System/System: Error is 22, ‘Invalid argument’.
13522 13555 14:41:05 592.822 System/System: ERROR! Killing the current program.
Error: Killing the current program.
13522 13555 14:41:05 592.840 Process: WARNING! Dumping stack for thread 13555:
13522 13555 14:41:05 592.840 Process: #0 libnx.so(_Z11ProcessKillv+0x10).
13522 13555 14:41:05 592.840 Process: #1 libnx.so(_ZNK6System5abortEi+0x1f3).
13522 13555 14:41:05 592.840 Process: #2 libnx.so(_ZNK10Threadable5abortEi+0xd2).
13522 13555 14:41:05 592.840 Process: #3 libnx.so(_ZNK6Object5abortEi+0x20).
13522 13555 14:41:05 592.840 Process: #4 libnx.so(_ZN6Parser11getRootPathEv+0x241).
13522 13555 14:41:05 592.840 Process: #5 libnx.so(_ZN6Parser14setDirectoriesEv+0x25).
13522 13555 14:41:05 592.840 Process: #6 libnxd.so(_ZN12DaemonParser19parseEncryptOptionsEv+0x1a).
13522 13555 14:41:05 592.840 Process: #7 libnxd.so(_ZN17DaemonApplication22parseEncryptionOptionsEv+0x20).
13522 13555 14:41:05 592.840 Process: #8 libnxd.so(_ZN23DaemonClientApplication3runEv+0x23).
13522 13555 14:41:05 592.840 Process: #9 libnxhs.so(_Z22ServerLocateClientMainiPPcS0_+0x54).
13522 13555 14:41:05 592.840 Process: #10 libnxc.so(+0x73d34).
13522 13555 14:41:05 592.840 Process: #11 libpthread.so.0(+0x7ea5).
13522 13555 14:41:05 592.840 Process: #12 libc.so.6(clone+0x6d).
13557 13590 14:41:06 608.471 DaemonParser/Parser: WARNING! Creating directory ‘/var/NX/nx/.nx’.
13557 13590 14:41:06 608.549 DaemonParser/Parser: ERROR! Can’t create directory ‘/var/NX/nx/.nx. Error is 13 ‘
Permission denied’.
Error: Can’t create directory ‘/var/NX/nx/.nx. Error is 13 ‘Permission denied’.
13557 13590 14:41:06 608.579 LocateClientApplication/Threadable: WARNING! Aborting threadable 0x5601f10.
13557 13590 14:41:06 608.591 LocateClientApplication/Threadable: WARNING! Error is 22, ‘Invalid argument’.
13557 13590 14:41:06 608.601 System/System: Abort called for system at 0x7fcb3ed97940.
13557 13590 14:41:06 608.612 System/System: Error is 22, ‘Invalid argument’.
13557 13590 14:41:06 608.623 System/System: ERROR! Killing the current program.
Error: Killing the current program.
13557 13590 14:41:06 608.641 Process: WARNING! Dumping stack for thread 13590:
13557 13590 14:41:06 608.641 Process: #0 libnx.so(_Z11ProcessKillv+0x10).
13557 13590 14:41:06 608.641 Process: #1 libnx.so(_ZNK6System5abortEi+0x1f3).
13557 13590 14:41:06 608.641 Process: #2 libnx.so(_ZNK10Threadable5abortEi+0xd2).
13557 13590 14:41:06 608.641 Process: #3 libnx.so(_ZNK6Object5abortEi+0x20).
13557 13590 14:41:06 608.641 Process: #4 libnx.so(_ZN6Parser11getRootPathEv+0x241).
13557 13590 14:41:06 608.641 Process: #5 libnx.so(_ZN6Parser14setDirectoriesEv+0x25).
13557 13590 14:41:06 608.641 Process: #6 libnxd.so(_ZN12DaemonParser19parseEncryptOptionsEv+0x1a).
13557 13590 14:41:06 608.641 Process: #7 libnxd.so(_ZN17DaemonApplication22parseEncryptionOptionsEv+0x20).
13557 13590 14:41:06 608.641 Process: #8 libnxd.so(_ZN23DaemonClientApplication3runEv+0x23).
13557 13590 14:41:06 608.641 Process: #9 libnxhs.so(_Z22ServerLocateClientMainiPPcS0_+0x54).
13557 13590 14:41:06 608.641 Process: #10 libnxc.so(+0x73d34).
13557 13590 14:41:06 608.641 Process: #11 libpthread.so.0(+0x7ea5).
13557 13590 14:41:06 608.641 Process: #12 libc.so.6(clone+0x6d).The folder permissions appear to be OK, so I am unsure why NoMachine cannot create the folder it needs:
# ll -a /var/NX/nx
total 24
drwx—— 3 nx root 4096 Apr 9 14:03 .
drwx—— 4 root root 4096 Apr 9 14:04 ..
-rwx—— 1 nx root 24 Apr 9 14:03 .bash_logout
-rwx—— 1 nx root 191 Apr 9 14:03 .bash_profile
-rwx—— 1 nx root 124 Apr 9 14:03 .bashrc
-rwx—— 1 nx root 0 Apr 9 14:03 .hushlogin
drwx—— 2 nx root 4096 Apr 9 14:03 .sshCan anyone offer any advice?
Thank you,
David.
April 14, 2020 at 12:50 #26713zaqParticipantHello david555
Probably your problem is related to SELinux. To check this you can:
1) temporally set permission mode
sudo setenforce 0
2) run NoMachine:
sudo /etc/NX/nxserver --restart
3) try to reproduce the problem,
4) set SELinux’s enforce mode:
sudo setenforce 1
if you aren’t able to reproduce the problem, then we check deeper
SELinux logs.Anyway a standard set of logs will be helpful. Gather them like is
described in:https://www.nomachine.com/DT10O00163#1.1
and send to forum[at]nomachine[dot]com.
April 22, 2020 at 13:18 #26952david55ParticipantMy apologies, this project has been put on hold for the time being at our end. Thanks for your advice.
I’ll follow up when I am able to continue work setting it up.
-
AuthorPosts
This topic was marked as solved, you can't post.