<br><tt><font size=2>freenx-knx-bounces@kde.org wrote on 31/07/2013 06:48:30:<br>
<br>
[SNIP]<br>
> <br>
> The log shows this:<br>
> <br>
> server_nxnode_echo: NX> 1004 Error: NX Agent exited with exit status<br>
> 1. To troubleshoot set SESSION_LOG_CLEAN=0 in node.conf and <br>
> investigate "/home/user/.nx/F-C-vt-1000-<br>
> C3AD0301B4AC7A75961E2BA00CBC8E02/session". You might also want
to <br>
> try: ssh -X myserver; /usr/bin/nxnode --agent to test the basic <br>
> 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>
> <br>
> So, then I try:<br>
> <br>
> [root@vt nx]# cd /home/user/.nx/F-C-vt-1000-<br>
> C3AD0301B4AC7A75961E2BA00CBC8E02/session<br>
> -bash: cd: /home/user/.nx/F-C-vt-1000-<br>
> C3AD0301B4AC7A75961E2BA00CBC8E02/session: No such file or directory<br>
</font></tt>
<br>
<br><tt><font size=2>It's (usually) a "race" caused by nxagent
not opening within the</font></tt>
<br><tt><font size=2>timeout due to a delay loading libraries when
first executed.</font></tt>
<br>
<br><tt><font size=2>It doesn't get as far as creating the session directory
hence :-</font></tt>
<br><tt><font size=2> "No such
file or directory"</font></tt>
<br>
<br><tt><font size=2>If it occurs, you mayn expect this to happen just
the first few times</font></tt>
<br><tt><font size=2>( say 4 or 5 ) you try to connect after you boot up
or try to connect</font></tt>
<br><tt><font size=2>to FreeNX after not running it for some time</font></tt>
<br><tt><font size=2>( i.e. nxagent is no longer in memory/swap )</font></tt>
<br>
<br>
<br>
<br><tt><font size=2>> <br>
> Guess I can't really investigate it. But again, chown -R nx:root
<br>
> /var/lib/nxserver/db and chmod -R 775 nx:root /var/lib/nxserver/db
<br>
> fixes it. I have no idea why this is.<br>
</font></tt>
<br><tt><font size=2>A coincidence.</font></tt>
<br>
<br><tt><font size=2>Notice the "owner:group" and "mode/permissions"
aren't changed . . .</font></tt>
<br>
<br>
<br><tt><font size=2>If it becomes annoying add the line</font></tt>
<br><tt><font size=2> sleep 4</font></tt>
<br><tt><font size=2>to</font></tt>
<br><tt><font size=2> /usr/bin/nxnode</font></tt>
<br><tt><font size=2> at line 300 i.e.just before</font></tt>
<br>
<br><tt><font size=2> echo "Xft.dpi:
96" | DISPLAY= . . .</font></tt>
<br>
<br><tt><font size=2>It's asynchronous, so you won't see the 4 second delay.</font></tt>
<br>
<br>
<br>
<br>