[FreeNX-kNX] Cannot reconnect to session

Michael Schmarck michael.schmarck at habmalnefrage.de
Tue Oct 7 07:02:48 UTC 2008


Hi.

I'm using NX Free Edition for Solaris 3.2.0-16 with
nxclient-3.2.0-13 and nxnode-3.2.0-14 (ie. the current
versions) on a Solaris 10 U5 Sparc system.

When there are no sessions running (at all or at
least for my user), I can start a NX session just fine.
Then, mostly in the evening, I shut down my NX
client (nx-common 3.2.0-1 & nxclient 3.2.0.13-2 on
an ArchLinux i686 system), which disconnects the
session.

Now, in the morning, I try to reconnect to the session.
But this fails.

Further down, you can see what's shown in the NX
log window (available after clicking on the "Details"
button). The connection window shows "The NX client
received an error from the server." And sometimes it
just says "NX".

In the log output below, you can find:

NX> 596 NX> 596 stderr: /usr/X/bin/xauth:  error in locking authority
file /export/home/mike/.nx/C-sys06-1014-4964A3AED3AE97F6DD0931AB76E0F441/authority

--> /usr/X/bin/xauth:  error in locking authority file [...]

I also get that, when I try to do a normal ssh login
with X11 forwarding enabled:

/usr/openwin/bin/xauth:  error in locking authority file
/export/home/mike/.Xauthority

I do *NOT* get this error, when I don't use NX!

If you look closely, you see that there's a different
path to the xauth utility. But that means nothing, because:

--($ ~)-- ls -laid /usr/openwin/bin/xauth /usr/X/bin/xauth /usr/openwin /usr/X
  99377 drwxr-xr-x    9 root     bin           512 Mrz  5  2005 /usr/openwin
  99407 -rwxr-xr-x    1 root     bin         45940 Jan 23  2005
/usr/openwin/bin/xauth
  53580 lrwxrwxrwx    1 root     root            9 Sep 17 15:16 /usr/X
-> ./openwin
  99407 -rwxr-xr-x    1 root     bin         45940 Jan 23  2005 /usr/X/bin/xauth

After doing a "nxserver --terminate mike && rm -rf ~mike/.Xauthority \
~mike/.Xauthority-c ~mike/.Xauthority-l ~mike/.nx", I can
do SSH logins without errors and also start a new NX session.

Does anyone maybe have an idea about what's
going on there?

Thanks a lot,
Michael


NX> 203 NXSSH running with pid: 8769
NX> 285 Enabling check on switch command
NX> 285 Enabling skip of SSH config files
NX> 285 Setting the preferred NX options
NX> 200 Connected to address: 10.0.1.26 on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
HELLO NXSERVER - Version 3.2.0-16 - SFE
NX> 105 Hello NXCLIENT - Version 3.2.0
NX> 134 Accepted protocol: 3.2.0
NX> 105 Set shell_mode: shell
NX> 105 Set auth_mode: password
NX> 105 Login
NX> 101 User: mike
NX> 102 Password: ********
NX> 103 Welcome to: sys06 user: mike
NX> 105 Listsession --user="mike" --status="suspended\054running"
--geometry="1680x1050x24+render" --type="unix-gnome"
NX> 127 Available sessions:

Display Type             Session ID                       Options
Depth Screen         Status      Session Name
------- ---------------- -------------------------------- --------
----- -------------- ----------- ------------------------------
1014    unix-gnome       4964A3AED3AE97F6DD0931AB76E0F441 -RD--PSA
24 1500x1000      Suspended   sys06

NX> 148 Server capacity: not reached for user: mike
NX> 105 Restoresession --link="wan" --backingstore="1" --cache="64M"
--images="256M" --shmem="1" --shpix="1" --strict="0" --composite="1"
--media="0" --imagecompressionmethod="4" --imagecompressionlevel="7"
--render="1" --session="sys06" --type="unix-gnome"
--geometry="1500x1000+90+0" --client="linux" --keyboard="pc102\057ch"
--id="4964A3AED3AE97F6DD0931AB76E0F441"
NX> 596 NX> 596 ERROR: NXNODE Ver. 3.2.0-14  (Error id e774A0E)
NX> 596 NX> 596 ERROR: resume session: run commands
NX> 596 NX> 596 ERROR: execution of last command failed
NX> 596 NX> 596 last command: /bin/bash --login -c '/usr/X/bin/xauth
-v -f /export/home/mike/.nx/C-sys06-1014-4964A3AED3AE97F6DD0931AB76E0F441/authority
source /export/home/mike/.nx/C-sys06-1014-4964A3AED3AE97F6DD0931AB76E0F441/scripts/authority'
NX> 596 NX> 596 exit value: 1
NX> 596 NX> 596 stdout:
NX> 596 NX> 596 stderr: /usr/X/bin/xauth:  error in locking authority
file /export/home/mike/.nx/C-sys06-1014-4964A3AED3AE97F6DD0931AB76E0F441/authority
NX> 596 NX> 596 init: stdin arguments:
user=mike,userip=10%2e0%2e3%2e115,uniqueid=4964A3AED3AE97F6DD0931AB76E0F441,display=1014,composite=1,clipboard=both,virtualdesktop=1,imagecompressionmethod=4,rootless=0,backingstore=1,session=sys06,media=0,geometry=1500x1000%2b90%2b0,id=4964A3AED3AE97F6DD0931AB76E0F441,keyboard=pc102%2fch,render=1,link=wan,images=256M,shmem=1,strict=0,client=linux,imagecompressionlevel=7,shpix=1,type=unix-gnome,cache=64M,subscriptionid=None,productid=SFE,balance_host=10%2e0%2e1%2e26,balance_host_realip=10%2e0%2e1%2e26,encryption_mode=1,connection=local
NX> 280 Exiting on signal: 15



More information about the FreeNX-kNX mailing list