<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I seem to have got it working by reinstalling everything using nxsetup --clean --install<br><br>
However, I get a new error now when initially trying to start a session after rebooting the main server.<br><br><i>"cannot stat /var/lib/nxserver/db/running/{somenumber} no such file or directory"</i><br>
<br>After I run these commands a session does startup:<br><br><i>[root@vt network-scripts]# cd /var/lib/nxserver/<br>[root@vt nxserver]# ls -ali<br>total 16<br>401581 drwx------. 4 nx root 4096 Jul 30 17:22 .<br>131084 drwxr-xr-x. 49 root root 4096 Jul 30 20:03 ..<br>
393262 drwxrwxr-x. 5 nx root 4096 Jul 30 17:22 db<br>401592 drwx------. 3 nx root 4096 Jul 30 22:49 home<br>[root@vt nxserver]# cd db<br>[root@vt db]# ls -ali<br>total 20<br>393262 drwxrwxr-x. 5 nx root 4096 Jul 30 17:22 .<br>
401581 drwx------. 4 nx root 4096 Jul 30 17:22 ..<br>399339 drwxrwxr-x. 2 nx root 4096 Jul 30 20:03 closed<br>400960 drwxrwxr-x. 2 nx root 4096 Jul 30 22:50 failed<br>399388 drwxrwxr-x. 2 nx root 4096 Jul 30 22:50 running<br>
[root@vt db]# cd running<br>[root@vt running]# ls -ali<br>total 8<br>399388 drwxrwxr-x. 2 nx root 4096 Jul 30 22:50 .<br>393262 drwxrwxr-x. 5 nx root 4096 Jul 30 17:22 ..<br>[root@vt running]# pwd<br>/var/lib/nxserver/db/running<br>
[root@vt running]# cd ..<br>[root@vt db]# cd ..<br>[root@vt nxserver]# chown -R nx:root db<br>[root@vt nxserver]# chmod 775 -R db</i><br><br>Why am I having to run this all the time before freenx sessions are successfully created? The permissions looked correct from the get-go?<br>
</blockquote></div><br><br>The log shows this:<br><i><br>server_nxnode_echo: NX> 1004 Error: NX Agent exited with exit status 1. To troubleshoot set SESSION_LOG_CLEAN=0 in node.conf and investigate "/home/user/.nx/F-C-vt-1000-C3AD0301B4AC7A75961E2BA00CBC8E02/session". You might also want to try: ssh -X myserver; /usr/bin/nxnode --agent to test the basic functionality. Session log follows:<br>
session_close C3AD0301B4AC7A75961E2BA00CBC8E02<br>server_nxnode_echo: NX> 1006 Session status: closed<br>NX> 1001 Bye.<br>server_nxnode_echo: NX> 1001 Bye.<br></i><br>So, then I try:<i><br><br>[root@vt nx]# cd /home/user/.nx/F-C-vt-1000-C3AD0301B4AC7A75961E2BA00CBC8E02/session<br>
-bash: cd: /home/user/.nx/F-C-vt-1000-C3AD0301B4AC7A75961E2BA00CBC8E02/session: No such file or directory<br></i><br>Guess I can't really investigate it. But again, <i>chown -R nx:root /var/lib/nxserver/db</i> and <i>chmod -R 775 nx:root </i><i>/var/lib/nxserver/db </i>fixes it. I have no idea why this is.<i><br>
</i>