[FreeNX-kNX] Strange reconnecting failure
Tamás Pusztai
pusztai-nx at szfki.hu
Fri Feb 5 10:25:24 UTC 2010
Hi,
I have this extremely annoying problem since I use nx. I had the same problem with different nx server versions (both with FreeNx and with the NoMachine server) on different linux distributions (Gentoo and CentOS). I wonder if anybody could help.
The problem is, that everything works well, but only for a while. After some time of active usage (typically 1-7 days) I suddenly cannot reconnect to the same session (that worked well previously) from my laptop with NoMachine OSX client any more. I don't get any failure messages, what's more, everything seems as if connection succeeded (session state changes to Running), but there's nothing appearing on my screen. Once this happens, I can never reconnect this session again, not even from another computer with another client. However, I can always start a new session and connect to that.
Let me provide some screen output from the server side (CentOS 5.4 with freenx-0.7.3-2.el5.centos), after my last such failure:
> [pusztai at guenhvyvar ~]$ ps xu |grep nx
> pusztai 3701 0.0 0.0 64232 1664 ? Ss Feb04 0:00 /bin/bash /usr/bin/nxnode --startsession
> pusztai 3964 0.0 0.0 64364 1068 ? S Feb04 0:00 /bin/bash /usr/bin/nxnode --startsession
> pusztai 3965 0.0 0.0 64368 1476 ? S Feb04 0:00 /bin/bash /usr/bin/nxnode --startsession
> pusztai 3966 0.0 0.0 64364 1180 ? S Feb04 0:00 /bin/bash /usr/bin/nxnode --startsession
> pusztai 3967 0.0 0.0 58892 548 ? S Feb04 0:00 tee /home/pusztai/.nx/C-guenhvyvar.xray.szfki.kfki.hu-1000-CF12B84405AAE7E0CA61DEE5B7BDF451/session
> pusztai 3972 0.0 0.0 64364 1240 ? S Feb04 0:00 /bin/bash /usr/bin/nxnode --startsession
> pusztai 3973 0.4 0.1 141448 69892 ? S Feb04 5:57 /usr/lib/NX/nxagent -persistent -D -name NX - pusztai at guenhvyvar.xray.szfki.kfki.hu:1000 - Guenhvyvar (GPL Edition) -option /home/pusztai/.nx/C-guenhvyvar.xray.szfki.kfki.hu-1000-CF12B84405AAE7E0CA61DEE5B7BDF451/options -keyboard query -geometry 640x480+297+149 -nolisten tcp :1000
> pusztai 15508 0.0 0.0 61156 748 pts/37 S+ 09:52 0:00 grep nx
> [root at guenhvyvar ~]# cat /var/lib/nxserver/db/running/sessionId\{CF12B84405AAE7E0CA61DEE5B7BDF451\}
> sessionName=Guenhvyvar
> display=1000
> status=Running
> startTime=1265275697
> foreignAddress=-
> sessionRootlessMode=0
> type=unix-kde
> sessionId=CF12B84405AAE7E0CA61DEE5B7BDF451
> creationTime=1265275697
> userName=pusztai
> serverPid=
> screeninfo=640x480x32+render
> geometry=640x480+297+149
> host=127.0.0.1
> shadowcookie=none
I don't know, how to extract detailed info from the OSX client, so I provide here the connection log as provided by qtnx, started from a vnc session running on the same computer that runs the nx server (qtnx-0.9.0-3.el5.centos):
> Process started
> stderr> NX> 203 NXSSH running with pid: 15598
> 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: 148.6.160.128 on port: 22
> NX> 202 Authenticating user: nx
> stdout> NX> 208 Using auth method: publickey
> stdout> HELLO NXSERVER - Version 3.2.0-73 OS (GPL, using backend: not detected)
> NX> 105
> stdin> hello NXCLIENT - Version 3.0.0
> stdout> hello NXCLIENT - Version 3.0.0
> stdout> NX> 134 Accepted protocol: 3.0.0
> NX> 105
> stdin> SET SHELL_MODE SHELL
> stdout> SET SHELL_MODE SHELL
> stdout> NX> 105
> stdin> SET AUTH_MODE PASSWORD
> stdout> SET AUTH_MODE PASSWORD
> stdout> NX> 105
> stdin> login
> stdout> login
> stdout> NX> 101 User:
> stdin> pusztai
> stdout> pusztai
> stdout> NX> 102 Password:
> Authenticating client
> stdin> ********
> stdout>
> stdout> NX> 103 Welcome to: guenhvyvar.xray.szfki.kfki.hu user: pusztai
> NX> 105
> stdin> listsession --user="pusztai" --status="suspended,running" --geometry="1000x750x24+render" --type="unix-kde"
> stdout> listsession --user="pusztai" --status="suspended,running" --geometry="1000x750x24+render" --type="unix-kde"stdout> NX> 127 Sessions list of user 'pusztai' for reconnect:
> Display Type Session ID Options Depth Screen Status Session Name
> ------- ---------------- -------------------------------- -------- ----- -------------- ----------- ------------------------------
> 1000 unix-kde CF12B84405AAE7E0CA61DEE5B7BDF451 -RD--PSA 24 640x480 Running Guenhvyvar
>
>
> NX> 148 Server capacity: not reached for user: pusztai
> NX> 105
This is the point when the dialog with the session comes up and I have to click Resume to continue:
> stdin> restoresession --id="CF12B84405AAE7E0CA61DEE5B7BDF451" --session="Guenhvyvar" --type="unix-kde" --cache="8M" --images="32M" --cookie="115471692465992878738826573909963656969" --link="modem" --kbtype="pc102/defkeymap" --nodelay="
> 1" --encryption="1" --backingstore="when_requested" --geometry="640x480+0+0" --media="0" --agent_server="" --agent_user="" --agent_password=""
> stdout> restoresession --id="CF12B84405AAE7E0CA61DEE5B7BDF451" --session="Guenhvyvar" --type="unix-kde" --cache="8M" --images="32M" --cookie="******" --link="modem" --kbtype="pc102/defkeymap" --nodelay="1" --encryption="1" --backingstor
> e="when_requested" --geometry="640x480+0+0" --media="0" --agent_server="" --agent_user="" --agent_password=""
>
> stdout> NX> 1000 NXNODE - Version 3.2.0-73 OS (GPL, using backend: not detected)
> stdout> NX> 700 Session id: guenhvyvar.xray.szfki.kfki.hu-1000-CF12B84405AAE7E0CA61DEE5B7BDF451
> NX> 705 Session display: 1000
> NX> 703 Session type: unix-kde
> NX> 701 Proxy cookie: a2a544cd27f1f016b7d09de11bce0c2c
> NX> 702 Proxy IP: 127.0.0.1
> NX> 706 Agent cookie: a2a544cd27f1f016b7d09de11bce0c2c
> NX> 704 Session cache: unix-kde
> NX> 707 SSL tunneling: 1
> stdout> NX> 1005 Session status: suspended
> stdout> NX> 1009 Session status: resuming
> NX> 710 Session status: running
> NX> 1002 Commit
> NX> 105
> Starting NX proxy
> Process started
> stdin> bye
> stderr> /usr/bin/nxserver: line 1531: 15926 Terminated sleep $AGENT_STARTUP_TIMEOUT
> NX> 1006 Session status: running
> stdout> bye
> stderr> Bye
> NX> 999 Bye
> stdin> NX> 299 Switch connection to: 127.0.0.1:5000 cookie: a2a544cd27f1f016b7d09de11bce0c2c
> stderr> NX> 285 Identified host: 127.0.0.1 port: 5000
> NX> 285 Identified cookie: a2a544cd27f1f016b7d09de11bce0c2c
>
> NX> 291 Connecting to: 127.0.0.1:5000
> NX> 285 Sending authentication cookie: A2A544CD27F1F016B7D09DE11BCE0C2C
> NX> 285 Switching descriptors: 5 and: 6 to: 8
>
> NX> 287 Redirected I/O to channel descriptors
> NX> 280 Proxy in: 5 out: 6 transport in: -1 out: -1
> [pusztai at guenhvyvar ~]$
I'd highly appreciate any comment, tip or even the solution :-) to this problem.
Regards,
Tamás
More information about the FreeNX-kNX
mailing list