[FreeNX-kNX] Re: FreeNX server trying to write to wrong directory?

chris at ccburton.com chris at ccburton.com
Mon Jun 13 10:14:58 UTC 2011


Morris Jones <mojo at whiteoaks.com> wrote on 12/06/2011 19:12:05:

> I'm running Ubuntu Maverick on a laptop and a desktop.  On trying to 
> connect from the laptop to the desktop, I get this error in the session 
> file:
> 
> NXAGENT - Version 3.5.0

        First posting with 3.5.0 libaries/binaries, Hmmmm

> 
> Copyright (C) 2001, 2011 NoMachine.
> See http://www.nomachine.com/ for more information.
> 
> Info: Agent running with pid '13993'.
> Session: Starting session at 'Sun Jun 12 07:33:29 2011'.
> Loop: PANIC! Can't create directory 
> '/usr/NX/.nx/C-mojo-desktop-2001-7F1847F630C70C1CF3ADBB17B932280
> D. Error is 13 'Permission denied'.
> Error: Can't create directory 
> '/usr/NX/.nx/C-mojo-desktop-2001-7F1847F630C70C1CF3ADBB17B932280D. Err
> or is 13 'Permission denied'.

Why is it trying to create that in there ??
Normal users shouldn't have write access there . . . 

> Loop: PANIC! Cannot determine directory of NX session file.

This error message comes from

        libXcomp.so.x.y.z

Which on my machine (OpenSuSE)lives in 

        /usr/lib/NX/lib/

so it could be defaulting to it's own directory as a last resort
if yours is in /usr/NX etc etc

So

It might be an issue with the 3.5.0 libraries writing there
as a last resort, or the nomachine coders may have changed
something here in tis version.


> Error: Cannot determine directory of NX session file.
> Session: Session terminated at 'Sun Jun 12 07:33:29 2011'.
> 
> Any thoughts on what might be happening here?  Do I have a mixed up 
> version problem?  The /usr/NX tree is owned by root.  I tried changing 
> the ownership to "nx" with the same result.

Hmmm

If it can't create the session file directory, then where did you get
the session file from ???

As far as the server is concerned,
        you should have a session file in:-

/var/lib/nxserver/db/running/sessionId{ABCDEF1234567890ABCDEF1234567890}
created by user nx (unless ubuntu put it elsewhere)

        and :-
a session directory below your home directory eg.

/home/myuserid/.nx/C-server-1001-ABCDEF1234567890ABCDEF1234567890/


If you log on to the server and try the following:-

        sudo su -l -s /bin/bash -c "echo \$HOME" nx

        sudo egrep -i "(NOMACHINE_(SERVER|NX_HOME_DIR)|USER_FAKE_HOME)=" 
/etc/nxserver/node.conf /usr/bin/nxloadconfig
        ^ All on one line

        sudo find /var/lib/nxserver/ -type d -ls

        grep ":" /etc/passwd|cut -d":" -f6


. . . then the results will tell us what FreeNX thinks
it's doing as a first start.

Which versions of FreeNX are installed ??

Did you move up to 3.5.0, if so did it work before ??


> 
> Cheers,
> Mojo
> -- 
> Morris Jones, Monrovia, CA
> http://bridgemojo.com
> http://otastro.org
> http://mojo.whiteoaks.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/freenx-knx/attachments/20110613/638c10a5/attachment.html>


More information about the FreeNX-kNX mailing list