X2Go Bug report logs - #1294
Can't reconnect to existing x2go session

version graph

Package: x2goagent; Maintainer for x2goagent is X2Go Developers <x2go-dev@lists.x2go.org>; Source for x2goagent is src:nx-libs.

Reported by: "Koozer, Craig" <CKoozer@netsuite.com>

Date: Wed, 2 May 2018 22:00:02 UTC

Severity: normal

Found in version

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox

Report forwarded to x2go-dev@lists.x2go.org, X2Go Developers <x2go-dev@lists.x2go.org>:
Bug#1294; Package x2goagent. (Wed, 02 May 2018 22:00:02 GMT) (full text, mbox, link).

Acknowledgement sent to "Koozer, Craig" <CKoozer@netsuite.com>:
New Bug report received and forwarded. Copy sent to X2Go Developers <x2go-dev@lists.x2go.org>. (Wed, 02 May 2018 22:00:02 GMT) (full text, mbox, link).

Message #5 received at submit@bugs.x2go.org (full text, mbox, reply):

From: "Koozer, Craig" <CKoozer@netsuite.com>
To: "submit@bugs.x2go.org" <submit@bugs.x2go.org>
Subject: Can't reconnect to existing x2go session
Date: Wed, 2 May 2018 21:51:42 +0000
[Message part 1 (text/plain, inline)]
Package: x2goagent

I'm having problems reconnecting to any existing sessions on a specific x2goserver instance from any client I've tried.  If I kill the existing session using x2goterminate-session and create a new one the new one connects with no problems, but if then I disconnect from it and attempt to re-connect (even from the same client), then again I get the same problem -- client does not connect, and message is displayed in client  "The remote proxy closed the connection while negotiating the session. This may be due to the wrong authentication credentials passed to the server.".

I believe this started happening after upgrading to latest client and server versions on the server, but downgrading the server version or clients connecting to server or both did not make the problem go away.  I also tried removing ~/.x2go and ~/.x2goclient directories on client and server and allow them to be recreated, but this did not change behavior.

I enabled debug from client and server, and have saved the complete log entries for /var/log/messages on server, and client out on reconnect if you think that would be helpful, but what I've included below is the only thing that looks like an error.  all other config settings are as installed, no other manual changes were made.

from x2goclient --debug std. out:

x2go-DEBUG-../src/sshprocess.cpp:372> Starting tunnel via SshProcess object 2: "localhost":59190 -> "localhost":60190

x2go-DEBUG-../src/onmainwindow.cpp:5612> "Starting NX proxy, command: nxproxy -S nx/nx,options=/home/ckoozer/.x2go/S-ckoozer-56-1525261822_stDXFCE_dp24/options:56"
x2go-DEBUG-../src/sshprocess.cpp:157> Direct tunnel: waiting for connections on "localhost":60190
x2go-DEBUG-../src/onmainwindow.cpp:6071> Proxy wrote on stderr: "
NXPROXY - Version 3.5.0

Copyright (C) 2001, 2010 NoMachine.
See http://www.nomachine.com/ for more information.

Info: Proxy running in client mode with pid '3938'.
Session: Starting session at 'Wed May  2 11:48:25 2018'.
Info: Using abstract X11 socket in kernel namespace for accessing DISPLAY=:0.
x2go-DEBUG-../src/onmainwindow.cpp:6071> Proxy wrote on stderr: "Info: Connecting to remote host 'localhost:60190'.
Info: Connection to remote proxy 'localhost:60190' established.
x2go-DEBUG-../src/sshprocess.cpp:109> New TCP connection.
x2go-DEBUG-../src/sshprocess.cpp:114> New socket: 15
x2go-DEBUG-../src/sshmasterconnection.cpp:1517> Creating new channel.

x2go-DEBUG-../src/sshmasterconnection.cpp:1521> New channel:0x7fb888015870

x2go-DEBUG-../src/sshmasterconnection.cpp:1527> Forwarding new channel, local port: 58952

x2go-DEBUG-../src/sshmasterconnection.cpp:1545> New channel forwarded.

x2go-DEBUG-../src/sshmasterconnection.cpp:1704> "channel_write failed." - "Remote channel is closed"

x2go-DEBUG-../src/sshprocess.cpp:463> I/O error: "channel_write failed."" - Remote channel is closed" (2).
x2go-DEBUG-../src/sshmasterconnection.cpp:1747> EOF sent.
x2go-DEBUG-../src/sshmasterconnection.cpp:1751> Channel closed.
x2go-DEBUG-../src/onmainwindow.cpp:6071> Proxy wrote on stderr: "Error: The remote NX proxy closed the connection.
x2go-DEBUG-../src/onmainwindow.cpp:6071> Proxy wrote on stderr: "Error: Failure negotiating the session in stage '7'.
Error: Wrong version or invalid session authentication cookie.
Session: Terminating session at 'Wed May  2 11:48:25 2018'.
Session: Session terminated at 'Wed May  2 11:48:25 2018'.
x2go-DEBUG-../src/onmainwindow.cpp:5928> Deleting Proxy.

Server details:

[ckoozer@ckoozer-linux ~]$ uname -a
Linux ckoozer-linux 3.10.0-862.el7.x86_64 #1 SMP Wed Apr 11 11:40:58 PDT 2018 x86_64 x86_64 x86_64 GNU/Linux
[ckoozer@ckoozer-linux ~]$ rpm -qa | grep nx
[ckoozer@ckoozer-linux ~]$ rpm -qa | grep x2go

Client details (but same behavior from multiple clients and x2goclient versions, including windows client):
[ckoozer@ckoozer ~]$ uname -a
Linux ckoozer 4.15.16-200.fc26.x86_64 #1 SMP Mon Apr 9 17:49:29 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
[ckoozer@ckoozer ~]$ rpm -qa | grep nx
[ckoozer@ckoozer ~]$ rpm -qa | grep x2go
x2goclient-   (same behavior with latest version of client as well)

[ckoozer@ckoozer-linux ~]$ which nxagent
[ckoozer@ckoozer-linux ~]$ which x2goagent
[ckoozer@ckoozer-linux ~]$ locate nxagent
[ckoozer@ckoozer-linux ~]$ locate x2goagent
[ckoozer@ckoozer-linux ~]$ which nxproxy
[ckoozer@ckoozer-linux ~]$ locate nxproxy
[ckoozer@ckoozer-linux ~]$ nxproxy -v
NXPROXY - Version



[Message part 2 (text/html, inline)]

Send a report that this bug log contains spam.

X2Go Developers <owner@bugs.x2go.org>. Last modified: Sat Sep 23 14:50:29 2023; Machine Name: ymir.das-netzwerkteam.de

X2Go Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.