[FreeNX-kNX] freeNX periodic re-connection failure

chris at ccburton.com chris at ccburton.com
Thu May 24 12:22:55 UTC 2012


Siamak Shafiei <siamak.shafiei at vsemi.com> Sent by: 
freenx-knx-bounces at kde.org
Please respond to User Support for FreeNX Server and kNX Client 
<freenx-knx at kde.org>


This issue happend again, here's a list of related processes running:


nx         24330  0.0  0.0  28392   588 ?        Sl   May14   0:00 
/usr/bin/expect /usr/bin/nxnode-login -- ssh user1 22 /usr/bin/nxnode 
--slave
nx         24332  0.0  0.0  56344  2016 pts/67   Ss+  May14   0:00 ssh -2 
-x -l user1 127.0.0.1 -o NumberOfPasswordPrompts 1 -p 22 /usr/bin/nxnode 
--slave
user1      24838  0.0  0.0  64252   216 ?        S    May14   0:00 
/bin/bash /usr/bin/nxnode --slave
user1      24840  0.0  0.0  64380   964 ?        S    May14   0:00 
/bin/bash /usr/bin/nxnode --startsession
user1      25115  0.0  0.0  64380   352 ?        S    May14   0:00 
/bin/bash /usr/bin/nxnode --startsession
user1      25116  0.0  0.0  64500   644 ?        S    May14   0:00 
/bin/bash /usr/bin/nxnode --startsession
user1      25117  0.0  0.0  64380   432 ?        S    May14   0:00 
/bin/bash /usr/bin/nxnode --startsession
user1      25121  0.0  0.0 202836 20548 ?        S    May14   7:55 
/usr/lib/NX/nxagent -persistent -D -name NX - user1 at server1.vsemi.com:1012 
- server1 (GPL Edition) -option 
/share/home/user1/.nx/C-server1.vsemi.com-1012-2A354EC51D061034A96D44E3E3575FFF/options 
-nolisten tcp :1012


reconnect starts here . . . 

nx         28872  0.0  0.0  28392  1824 ?        Sl   11:17   0:00 
/usr/bin/expect /usr/bin/nxnode-login -- ssh user1 22 /usr/bin/nxnode 
--slave
nx         28874  0.0  0.0  56344  3148 pts/238  Ss+  11:17   0:00 ssh -2 
-x -l user1 127.0.0.1 -o NumberOfPasswordPrompts 1 -p 22 /usr/bin/nxnode 
--slave
user1      29402  0.0  0.0  64252   804 ?        S    11:17   0:00 
/bin/bash /usr/bin/nxnode --slave
user1      29404  0.0  0.0  64380  1728 ?        S    11:17   0:00 
/bin/bash /usr/bin/nxnode --resumesession
user1      29654  0.0  0.0  58936   568 ?        S    11:17   0:00 tail 
-n1 -f 
/share/home/user1/.nx/C-server1.vsemi.com-1012-2A354EC51D061034A96D44E3E3575FFF/session
user1      29655  0.0  0.0  64380  1220 ?        S    11:17   0:00 
/bin/bash /usr/bin/nxnode --resumesession

Whilst you can see the    "--resumesession" or the       "tail . . . 
/session", then there's no point in trying any more reconnections 

Instead, run  "cat  /share/homeuser1/.nx/C-  etc etc  /session" file to 
see how far it got.


If you look in the session file after a disconnect, don't worry about the 
garbage at its beginning.
It's caused by clearing the file with an echo > but then tee keeps writing 
where it left off . . .


In the session file you should see all or part of something like :-

Session: Resuming session at 'Wed May 23 11:17:00 2012'.
Info: Proxy running in server mode with pid '25121'.
Info: Waiting for connection from '127.0.0.1' on port '5012'.
Info: Accepted connection from '127.0.0.1'.
Info: Connection with remote proxy completed.


By 11:18 there ought to have been a child nxagent spawned by  25121 and/or 
a "netcat 127.0.0.1 5012" . . . 


nx         30333  0.0  0.0  28392  1828 ?        Sl   11:18   0:00 
/usr/bin/expect /usr/bin/nxnode-login -- ssh user1 22 /usr/bin/nxnode 
--slave
nx         30335  0.0  0.0  56344  3148 pts/245  Ss+  11:18   0:00 ssh -2 
-x -l user1 127.0.0.1 -o NumberOfPasswordPrompts 1 -p 22 /usr/bin/nxnode 
--slave
user1      30871  0.0  0.0  64252   808 ?        S    11:18   0:00 
/bin/bash /usr/bin/nxnode --slave
user1      30873  0.0  0.0  64380  1728 ?        S    11:18   0:00 
/bin/bash /usr/bin/nxnode --resumesession
user1      31122  0.0  0.0  58936   564 ?        S    11:18   0:00 tail 
-n1 -f 
/share/home/user1/.nx/C-server1.vsemi.com-1012-2A354EC51D061034A96D44E3E3575FFF/session
user1      31123  0.0  0.0  64380  1220 ?        S    11:18   0:00 
/bin/bash /usr/bin/nxnode --resumesession

nx         31971  0.0  0.0  28392  1828 ?        Sl   11:20   0:00 
/usr/bin/expect /usr/bin/nxnode-login -- ssh user1 22 /usr/bin/nxnode 
--slave
nx         31973  0.0  0.0  56344  3148 pts/246  Ss+  11:20   0:00 ssh -2 
-x -l user1 127.0.0.1 -o NumberOfPasswordPrompts 1 -p 22 /usr/bin/nxnode 
--slave
user1        364  0.0  0.0  58936   564 ?        S    11:21   0:00 tail 
-n1 -f 
/share/home/user1/.nx/C-server1.vsemi.com-1012-2A354EC51D061034A96D44E3E3575FFF/session
user1        365  0.0  0.0  64380  1220 ?        S    11:21   0:00 
/bin/bash /usr/bin/nxnode --resumesession
user1      32553  0.0  0.0  64252   808 ?        S    11:21   0:00 
/bin/bash /usr/bin/nxnode --slave
user1      32556  0.0  0.0  64380  1728 ?        S    11:21   0:00 
/bin/bash /usr/bin/nxnode --resumesession


Regards,
Siamak Shafiei



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/freenx-knx/attachments/20120524/91bd570d/attachment.html>


More information about the FreeNX-kNX mailing list