Thanks that worked<br><br><div class="gmail_quote">On Wed, Jul 31, 2013 at 5:22 AM, Chris <span dir="ltr"><<a href="mailto:chris@ccburton.com" target="_blank">chris@ccburton.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br><tt><font><a href="mailto:freenx-knx-bounces@kde.org" target="_blank">freenx-knx-bounces@kde.org</a> 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>It's (usually) a "race" caused by nxagent
not opening within the</font></tt>
<br><tt><font>timeout  due to a delay loading libraries when
first executed.</font></tt>
<br>
<br><tt><font>It doesn't get as far as creating the session directory
hence :-</font></tt>
<br><tt><font>        "No such
file or directory"</font></tt>
<br>
<br><tt><font>If it occurs, you mayn expect this to happen just
the first few times</font></tt>
<br><tt><font>( say 4 or 5 ) you try to connect after you boot up
or try to connect</font></tt>
<br><tt><font>to  FreeNX after not running it for some time</font></tt>
<br><tt><font>( i.e. nxagent is no longer in memory/swap )</font></tt>
<br>
<br>
<br>
<br><tt><font>> <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>A coincidence.</font></tt>
<br>
<br><tt><font>Notice the "owner:group" and "mode/permissions"
aren't changed . . .</font></tt>
<br>
<br>
<br><tt><font>If it becomes annoying add the line</font></tt>
<br><tt><font>        sleep 4</font></tt>
<br><tt><font>to</font></tt>
<br><tt><font>         /usr/bin/nxnode</font></tt>
<br><tt><font> at line 300 i.e.just before</font></tt>
<br>
<br><tt><font>        echo "Xft.dpi:
96" | DISPLAY= . . .</font></tt>
<br>
<br><tt><font>It's asynchronous, so you won't see the 4 second delay.</font></tt>
<br>
<br>
<br>
<br><br>________________________________________________________________<br>
     Were you helped on this list with your FreeNX problem?<br>
    Then please write up the solution in the FreeNX Wiki/FAQ:<br>
<br>
<a href="http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_FAQ" target="_blank">http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_FAQ</a><br>
<br>
         Don't forget to check the NX Knowledge Base:<br>
                 <a href="http://www.nomachine.com/kb/" target="_blank">http://www.nomachine.com/kb/</a><br>
<br>
________________________________________________________________<br>
       FreeNX-kNX mailing list --- <a href="mailto:FreeNX-kNX@kde.org">FreeNX-kNX@kde.org</a><br>
      <a href="https://mail.kde.org/mailman/listinfo/freenx-knx" target="_blank">https://mail.kde.org/mailman/listinfo/freenx-knx</a><br>
________________________________________________________________<br></blockquote></div><br>