This issue happend again, here's a list of related processes running:<div><br></div><div><div><div>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</div>
<div>user1 365 0.0 0.0 64380 1220 ? S 11:21 0:00 /bin/bash /usr/bin/nxnode --resumesession</div><div>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</div>
<div>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</div><div>user1 24838 0.0 0.0 64252 216 ? S May14 0:00 /bin/bash /usr/bin/nxnode --slave</div>
<div>user1 24840 0.0 0.0 64380 964 ? S May14 0:00 /bin/bash /usr/bin/nxnode --startsession</div><div>user1 25115 0.0 0.0 64380 352 ? S May14 0:00 /bin/bash /usr/bin/nxnode --startsession</div>
<div>user1 25116 0.0 0.0 64500 644 ? S May14 0:00 /bin/bash /usr/bin/nxnode --startsession</div><div>user1 25117 0.0 0.0 64380 432 ? S May14 0:00 /bin/bash /usr/bin/nxnode --startsession</div>
<div>user1 25121 0.0 0.0 202836 20548 ? S May14 7:55 /usr/lib/NX/nxagent -persistent -D -name NX - <a href="http://user1@server1.vsemi.com:1012">user1@server1.vsemi.com:1012</a> - server1 (GPL Edition) -option /share/home/user1/.nx/C-server1.vsemi.com-1012-2A354EC51D061034A96D44E3E3575FFF/options -nolisten tcp :1012</div>
<div>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</div><div>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</div>
<div>user1 29402 0.0 0.0 64252 804 ? S 11:17 0:00 /bin/bash /usr/bin/nxnode --slave</div><div>user1 29404 0.0 0.0 64380 1728 ? S 11:17 0:00 /bin/bash /usr/bin/nxnode --resumesession</div>
<div>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</div><div>user1 29655 0.0 0.0 64380 1220 ? S 11:17 0:00 /bin/bash /usr/bin/nxnode --resumesession</div>
<div>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</div><div>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</div>
<div>user1 30871 0.0 0.0 64252 808 ? S 11:18 0:00 /bin/bash /usr/bin/nxnode --slave</div><div>user1 30873 0.0 0.0 64380 1728 ? S 11:18 0:00 /bin/bash /usr/bin/nxnode --resumesession</div>
<div>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</div><div>user1 31123 0.0 0.0 64380 1220 ? S 11:18 0:00 /bin/bash /usr/bin/nxnode --resumesession</div>
<div>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</div><div>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</div>
<div>user1 32553 0.0 0.0 64252 808 ? S 11:21 0:00 /bin/bash /usr/bin/nxnode --slave</div><div>user1 32556 0.0 0.0 64380 1728 ? S 11:21 0:00 /bin/bash /usr/bin/nxnode --resumesession</div>
</div><div><br></div><div><br></div><span style="font-family:'Times New Roman',serif;font-size:16px;line-height:18px"><font color="#333333">Regards,</font></span><span style="border-collapse:collapse"><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:1.65pt;font-family:arial,sans-serif;font-size:13px">
<span style="font-family:'Times New Roman',serif;font-size:16px;line-height:18px"><font color="#333333">Siamak Shafiei</font></span></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:1.65pt">
<font color="#666666" face="'Times New Roman', serif" size="3"><span style="line-height:18px"><br></span></font></p></span><br><div class="gmail_quote">On Tue, May 22, 2012 at 2:10 PM, Siamak Shafiei <span dir="ltr"><<a href="mailto:siamak.shafiei@vsemi.com" target="_blank">siamak.shafiei@vsemi.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hi Chris,</div><div class="im"><div><br></div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<font size="1" color="blue" face="Verdana">This session is of "Status" Running, not suspended.</font> <br><font size="1" color="blue" face="Verdana">When you see this issue you are reporting,</font> <br><font size="1" color="blue" face="Verdana">have you "disconnected" manually, are you purposefully re-connecting to a running session or did your session just disconnect without user intervantion ??</font> </blockquote>
<div><br></div></div><div>The status is sometimes suspended as well. Disconnection from the session could be either with or without user intervention and this problem could appear nonetheless.</div><div class="im"><div><br>
</div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<font size="1" color="blue" face="Verdana">Not sure why you highlight this.</font> <br><font size="1" color="blue" face="Verdana">It just means an encrypted link is selected (--encryption="1")</font> </blockquote>
<div><br></div></div><div>You are right, I thought it means SSL tunneling returned a 1 (error status). Please disregard the highlighted SSL line.</div><div class="im"><div><br></div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<font color="blue" face="sans-serif">Try waiting 5 mins & re-connecting a few times before giving up.</font> </blockquote><div><br></div></div><div>I once tried reconnecting for 30 minutes with no success. </div><div class="im">
<div><br></div>
<blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><font color="blue" face="sans-serif">If that doen't work look at the contents of the session file</font> </blockquote>
<div><br></div></div><div>I always look at the content of the session file, and also try changing the status from 'Suspended' to 'Running' or vice versa. I have also done diffs between session file of working sessions and the problematic session, I see no unexpected differences (just the values of startTime, sessionId, creationTime and shadowcookie).</div>
<div class="im">
<div><br></div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<font color="blue" face="sans-serif">and</font> <br><font color="blue" face="sans-serif">what's still running for user "XXXX"</font> <br><font color="blue" face="sans-serif">e.g.</font> <br><font color="blue" face="sans-serif"> ps -ef | egrep "^XXXX.*nx[a-z]{3,}" </font><br>
<span style="color:blue;font-family:sans-serif">as a start . . . .</span><span style="color:blue;font-family:sans-serif"> </span> </blockquote><div> </div></div><div>I did check if nxagent is still running, but I didn't check other nx related processes. I'll make sure to check that next time.</div>
<div class="im">
<div><br></div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<font color="blue" face="sans-serif">If you run "top", is any process running away with the CPU ??</font> </blockquote><div><br></div></div><div>Don't know, I'll have to check next time. </div><div><br>
</div><div>
By the way, here's some lines from nxserver.log for another lost session (this one was suspended):</div><div><br></div><div><div class="im"><div>NX> 105 hello NXCLIENT - Version 3.2.0</div><div>NX> 134 Accepted protocol: 3.2.0</div>
<div>NX> 105 SET SHELL_MODE SHELL</div><div>NX> 105 SET AUTH_MODE PASSWORD</div><div>NX> 105 login</div></div><div>NX> 101 User: user1</div><div>NX> 102 Password: </div><div>NX> 103 Welcome to: server1 user: user1</div>
<div>NX> 105 listsession --user="user1" --status="suspended,running" --geometry="1920x1080x32+render" --type="unix-kde"</div><div>NX> 127 Sessions list of user 'user1' for reconnect:</div>
<div class="im">
<div><br></div><div>Display Type Session ID Options Depth Screen Status Session Name</div><div>------- ---------------- -------------------------------- -------- ----- -------------- ----------- ------------------------------</div>
</div><div>1007 unix-kde 18893A29659C27A431817FC555F3ECE2 -RD--PSA 24 1914x1012 Suspended server1</div><div><br></div><div><br></div><div>NX> 148 Server capacity: not reached for user: user1</div>
<div>NX> 105 restoresession --link="adsl" --backingstore="1" --encryption="1" --cache="128M" --images="512M" --shmem="1" --shpix="1" --strict="0" --composite="1" --media="0" --session="server1" --type="unix-kde" --geometry="1914x1012" --client="winnt" --keyboard="pc102/en_US" --id="18893A29659C27A431817FC555F3ECE2" --resize="1" </div>
<div class="im">
<div><br></div><div>NX> 1000 NXNODE - Version 3.2.0-74-SVN OS (GPL, using backend: not detected)</div></div><div>NX> 700 Session id: server1-1007-18893A29659C27A431817FC555F3ECE2</div><div class="im"><div>NX> 705 Session display: 1007</div>
<div>NX> 703 Session type: unix-kde</div></div><div>NX> 701 Proxy cookie: 19aee97dd3107baf6174b10c274f207e</div><div class="im"><div>NX> 702 Proxy IP: 127.0.0.1</div></div><div>NX> 706 Agent cookie: 19aee97dd3107baf6174b10c274f207e</div>
<div class="im">
<div>NX> 704 Session cache: unix-kde</div><div>NX> 707 SSL tunneling: 1</div></div><div class="im"><div>NX> 1004 Error: Session did not start.</div></div><div class="im"><div>NX> 596 Session resume failed.</div>
</div><div>NX> 999 Bye</div><div>Info: Closing connection to slave with pid 26167.</div>
<div>1001 Bye.</div></div><div><br></div><div><span style="border-collapse:collapse"><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:1.65pt;font-family:arial,sans-serif;font-size:13px"><span style="font-family:'Times New Roman',serif;font-size:16px;line-height:18px"><font color="#333333">Thanks for your response,</font></span></p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:1.65pt;font-family:arial,sans-serif;font-size:13px"><span style="color:rgb(51,51,51);font-family:'Times New Roman',serif;font-size:16px;line-height:18px">Siamak Shafiei</span></p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:1.65pt"><font color="#666666" face="'Times New Roman', serif" size="3"><span style="line-height:18px"><br></span></font></p></span><div class="gmail_quote">
<br></div></div>
</blockquote></div><br></div>