Forum / NoMachine for Linux / How to kill server connection remotely from client?
- This topic has 5 replies, 2 voices, and was last updated 9 years, 12 months ago by Britgirl.
-
AuthorPosts
-
December 17, 2014 at 09:21 #5746dhfxParticipant
I am using 4.3.30 on Linux Mint with Cinnamon desktops (both ends). I had a recent experience in which I was connected remotely, and the client froze. I killed the client and attempted several times to reconnect; each time the server accepted my username and password and then (after several seconds with a black client screen) I got an “Oops” with error 110 (IIRC).
The next day, on accessing the server machine and finding nothing apparently wrong, I found that each successive login attempt had created a new connection. I cleared them all and looked at the logs; nothing obvious. It appears to me now that the first connection (when the client froze) was never terminated, and this is what caused the subsequent connection attempts to hang (is this likely?).
Evidently what I needed was a way of remotely clearing the initial connection on the server (e.g., by ssh access) before attempting to reconnect from the client. Is there a shell command that can be used for this purpose?
December 17, 2014 at 16:30 #5755BritgirlKeymasterCan you send us the server side logs? You submitted the client side ones but they don’t reveal anything strange.
December 18, 2014 at 10:12 #5757dhfxParticipantSome new information: It appears that the client-screen freeze was due to a glitch in my broadband connection; a new, stronger WiMax signal came online and my modem did a reacquire, interrupting the connection for a minute or so. Interestingly, I found that the modem password had reverted to the factory default. I thought the same glitch might have affected the port forwarding, but found nothing different. In any event, t seems to me that loss of port forwarding on the client side could not have been the cause since I am connecting via a VPN which uses port 4433 (IIRC), and the VPN was still operative – I was able to ping the server machine and SSH into it after the event occurred.
I had in mind to try reinstalling 4.3.30 at the client end, but found this morning that the computer had inexplicably died during the night, so the whole matter is temporarily academic until I can replace that box. Meanwhile thanks for your attention, and I would like to take the opportunity to put in another plug for a way to disable auto-scrolling in the client window – it’s the ONE feature of NoMachine that I find highly annoying.
– dhfx
December 18, 2014 at 16:19 #5769BritgirlKeymaster…..a way to disable auto-scrolling in the client window….
There’s a key for viewport scrolling in the player.cfg ($HOME/.nx/config/player.cfg). Set it to 0.
<option key=”Automatic viewport scrolling sensitive area size” value=”40″ />
December 29, 2014 at 09:38 #5818dhfxParticipant(Britgirl: Thanks for the suggestion re disabling auto-scrolling – I will try it as soon as I get things working again.)
Since my last post I have replaced the client-side computer that suddenly died, installed my VPN (I’m using Dell NetExtender), and installed freshly-downloaded NoMachine v4.4.1_1 free (the server version is still 4.3.30 free). When I try to connect to my server using the default setup, I get a normal-looking username/password entry form, then the window goes black for several seconds, after which I see:
The connection with the server was lost.
Error is 110: Connection timed out.
I clicked on “Save logs” and in my home/Documents I find an empty NoMachine directory.
Looking directly in /usr/NX/var on the client machine I find
tail /usr/NX/var/log/nxerror.log
ssh: connect to host 127.0.0.1 port 22: Connection refused
ssh: connect to host 127.0.0.1 port 22: Connection refusedI was able to ssh into the server machine and found
tail /usr/NX/var/log/nxd.log
Info: Connection from 192.168.161.7 port 56285 accepted on Sat Dec 27 21:46:54 2014.
Info: Connection from 192.168.161.7 port 56285 process 12651 started on Sat Dec 27 21:46:54 2014.
Warning: Handler process 14079 terminated by signal 1, SIGHUP.
Info: Connection from 192.168.161.5 port 51481 process 14079 closed on Sat Dec 27 21:47:14 2014.tail /usr/NX/var/log/nxerror.log
Info: Handler started with pid 14079 on Tue Dec 16 21:47:18 2014.
Info: Handling connection from 192.168.161.5 port 51481 on Tue Dec 16 21:47:18 2014.
Info: Connection from 192.168.161.5 port 51481 closed on Tue Dec 16 21:47:36 2014.
Info: Handler with pid 14079 terminated on Tue Dec 16 21:47:36 2014.
Info: Handler started with pid 12651 on Sat Dec 27 21:46:54 2014.
Info: Handling connection from 192.168.161.7 port 56285 on Sat Dec 27 21:46:54 2014.
Info: Connection from 192.168.161.7 port 56285 closed on Sat Dec 27 21:47:15 2014.
Info: Handler with pid 12651 terminated on Sat Dec 27 21:47:15 2014.tail /usr/NX/var/log/nxserver.log
2014-12-27 21:47:08 976.710 12651 NXSERVER User ‘friedman’ logged in from ‘192.168.161.7’.
2014-12-27 21:47:14 774.255 14079 NXSERVER WARNING! Process (14117) finished with signal ‘9’.
2014-12-27 21:47:14 774.379 14079 NXSERVER WARNING! NXNodeExec: session node [14117] finished abnormally with exit code [9].Starting cleaning procedure.
2014-12-27 21:47:14 781.121 12651 NXSERVER ERROR! Server process with pid finished without correct cleaning for session id‘3A7314AA466C0CB05278479F1E7468F9’
At first glance it looks to me as if something is causing the NoMachine ssh connection to drop before the session window is filled. I would be interested to know if the logs show anything useful. If any further information would be helpful, please let me know and I will provide it. As before, thanks in advance for your help.
Again, the server is running Linux Mint 17 Cinnamon 64-bit, the client is now Linux Mint 17.1 Cinnamon 32-bit.
– dhfx
December 29, 2014 at 13:52 #5829BritgirlKeymasterHi, I have opened a new topic so as to keep the issue separate from your previous question:
https://www.nomachine.com/forums/topic/cant-connect-error-is-110-connection-timed-out
-
AuthorPosts
This topic was marked as closed, you can't post.