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 3.5.0.33

Full log


🔗 View this message in rfc822 format

X-Loop: owner@bugs.x2go.org
Subject: Bug#1294: Can't reconnect to existing x2go session
Reply-To: "Koozer, Craig" <CKoozer@netsuite.com>, 1294@bugs.x2go.org
Resent-From: "Koozer, Craig" <CKoozer@netsuite.com>
Resent-To: x2go-dev@lists.x2go.org
Resent-CC: X2Go Developers <x2go-dev@lists.x2go.org>
X-Loop: owner@bugs.x2go.org
Resent-Date: Wed, 02 May 2018 22:00:02 +0000
Resent-Message-ID: <handler.1294.B.15252983119177@bugs.x2go.org>
Resent-Sender: owner@bugs.x2go.org
X-X2Go-PR-Message: report 1294
X-X2Go-PR-Package: x2goagent
X-X2Go-PR-Keywords: 
Received: via spool by submit@bugs.x2go.org id=B.15252983119177
          (code B); Wed, 02 May 2018 22:00:02 +0000
Received: (at submit) by bugs.x2go.org; 2 May 2018 21:58:31 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00,HTML_MESSAGE,
	URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.1
Received: from localhost (localhost [127.0.0.1])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTP id 7A75F5DAE9
	for <submit@bugs.x2go.org>; Wed,  2 May 2018 23:58:19 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at ymir.das-netzwerkteam.de
Received: from ymir.das-netzwerkteam.de ([127.0.0.1])
	by localhost (ymir.das-netzwerkteam.de [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id VqrEpCK6XXhZ for <submit@bugs.x2go.org>;
	Wed,  2 May 2018 23:58:06 +0200 (CEST)
X-Greylist: delayed 376 seconds by postgrey-1.35 at ymir.das-netzwerkteam.de; Wed, 02 May 2018 23:58:05 CEST
Received: from us-smtp-delivery-148.mimecast.com (us-smtp-delivery-148.mimecast.com [216.205.24.148])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTP id DD2605DACC
	for <submit@bugs.x2go.org>; Wed,  2 May 2018 23:58:05 +0200 (CEST)
Received: from NAM02-CY1-obe.outbound.protection.outlook.com
 (mail-cys01nam02lp0055.outbound.protection.outlook.com [207.46.163.55])
 (Using TLS) by us-smtp-1.mimecast.com with ESMTP id
 us-mta-63-PRlpCdHNO_2cWHiTXbMxbQ-1; Wed, 02 May 2018 17:51:44 -0400
Received: from DM5PR10MB1627.namprd10.prod.outlook.com (10.172.34.148) by
 DM5PR10MB1993.namprd10.prod.outlook.com (10.175.90.20) with Microsoft SMTP
 Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id
 15.20.715.18; Wed, 2 May 2018 21:51:43 +0000
Received: from DM5PR10MB1627.namprd10.prod.outlook.com
 ([fe80::5cd1:201d:4a1d:49ca]) by DM5PR10MB1627.namprd10.prod.outlook.com
 ([fe80::5cd1:201d:4a1d:49ca%18]) with mapi id 15.20.0715.020; Wed, 2 May 2018
 21:51:42 +0000
From: "Koozer, Craig" <CKoozer@netsuite.com>
To: "submit@bugs.x2go.org" <submit@bugs.x2go.org>
Thread-Topic: Can't reconnect to existing x2go session
Thread-Index: AQHT4kBnrbcWLLYZXkugqCqS5R7IhaQc9tHD
Date: Wed, 2 May 2018 21:51:42 +0000
Message-ID: <DM5PR10MB1627A6F71AAB4883636FDC05D1800@DM5PR10MB1627.namprd10.prod.outlook.com>
References: <DM5PR10MB16277B449BA4AB4B45286E24D1800@DM5PR10MB1627.namprd10.prod.outlook.com>
In-Reply-To: <DM5PR10MB16277B449BA4AB4B45286E24D1800@DM5PR10MB1627.namprd10.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [12.246.223.246]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1;DM5PR10MB1993;7:3qWTfVtJ2+/eb+dBioYJpGMUzXoVHdf+IiCwJbwvvIlL5qeUAYWeoYRORTbryF8kuC5ZL5Uzud4MqmAV8/o2IQYpiGhGR8KUqtpBDIth8913RVVNZC0y9SeP5CGgFxYFz3Tuj7DzZR4oRwD151bMbR6cj3q65Sn08KKYcgFmD5uZrqt8kMHytNo5gVMgNYHPoOEPbEUcVqDsBT60xRpj6jesoxG3TTtX3LfNKM1R2ZA17GGBrvgrGd8PJA8wX/3Q;20:OodPh6Pdezzf1L7ecb2ztwyiI7oy81HEuT137Qik3oMAQknVkYhDfXBCNxTfMwrE3h2Xy9ig3l/waeD8Ru3uQF67PGcGedfeXnBzjKThVrMlJdLOhwI8E+tllAxSkKORHEfOFO7gs1mrA7EEpuxMRYGpBvvwOOTl/p/slZJkFJ8=
x-ms-exchange-antispam-srfa-diagnostics: SOS;
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:DM5PR10MB1993;
x-ms-traffictypediagnostic: DM5PR10MB1993:
x-microsoft-antispam-prvs: <DM5PR10MB1993DA6FDB5AE2EAE29952B9D1800@DM5PR10MB1993.namprd10.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(158342451672863)(265634631926514)(21532816269658)(89888829307939);
x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(3231254)(944501410)(52105095)(10201501046)(3002001)(6055026)(6041310)(20161123558120)(20161123560045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011);SRVR:DM5PR10MB1993;BCL:0;PCL:0;RULEID:;SRVR:DM5PR10MB1993;
x-forefront-prvs: 06607E485E
x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(396003)(366004)(346002)(376002)(39380400002)(39860400002)(199004)(189003)(2900100001)(74316002)(2906002)(6506007)(55016002)(5250100002)(5660300001)(6306002)(102836004)(476003)(2940100002)(66066001)(6916009)(97736004)(2501003)(5640700003)(486006)(446003)(316002)(80792005)(53936002)(106356001)(9686003)(14454004)(54896002)(236005)(11346002)(26005)(186003)(33656002)(7736002)(478600001)(86362001)(8936002)(3846002)(6116002)(68736007)(99286004)(76176011)(8676002)(6606003)(7696005)(6436002)(59450400001)(3660700001)(81156014)(72206003)(966005)(25786009)(81166006)(105586002)(3280700002)(2351001)(19627405001)(1730700003);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR10MB1993;H:DM5PR10MB1627.namprd10.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1;
x-microsoft-antispam-message-info: 9RkHlpX068EEdwEG9cRwIX6T8QzTkx0AhmOFxhpMN3xqB+tk6LVfkNdzXeXlNNvylPC2GlROVxCkF4PItyJAV/2TJoBF4x0p74GuSXYQkKsLrCc2APSukDvNL4UGzwYzhm1fm/TFeVC9cgw74URD96gDlNmuMOFVd8FZcIQ468qt7BLpZCEdW8sGP/AMMrgJ
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
MIME-Version: 1.0
X-MS-Office365-Filtering-Correlation-Id: 383f6210-7b18-4c8d-8111-08d5b076e48b
X-OriginatorOrg: netsuite.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 383f6210-7b18-4c8d-8111-08d5b076e48b
X-MS-Exchange-CrossTenant-originalarrivaltime: 02 May 2018 21:51:42.9145
 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 50dcfda3-55fe-434c-9a75-d4d981a1815e
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR10MB1993
X-MC-Unique: PRlpCdHNO_2cWHiTXbMxbQ-1
Content-Type: multipart/alternative;
	boundary="_000_DM5PR10MB1627A6F71AAB4883636FDC05D1800DM5PR10MB1627namp_"
[Message part 1 (text/plain, inline)]
Package: x2goagent
Version: 3.5.0.33


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
nxagent-3.5.0.33-4.el7.x86_64
nxproxy-3.5.0.33-4.el7.x86_64
lynx-2.8.8-0.3.dev15.el7.x86_64
inx-icon-theme-0.6-2.3.noarch
nx-libs-3.5.0.33-4.el7.x86_64
inxi-2.3.56-1.el7.noarch
[ckoozer@ckoozer-linux ~]$ rpm -qa | grep x2go
x2goserver-xsession-4.0.1.22-2.el7.x86_64
x2goagent-3.5.0.33-4.el7.x86_64
x2goclient-4.1.1.1-1.el7.x86_64
x2goserver-4.0.1.22-2.el7.x86_64

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
nxagent-3.5.0.33-4.fc26.x86_64
nxproxy-3.5.0.33-4.fc26.x86_64
nx-libs-3.5.0.33-4.fc26.x86_64
[ckoozer@ckoozer ~]$ rpm -qa | grep x2go
x2goclient-4.1.0.0-1.fc26.x86_64   (same behavior with latest version of client as well)
x2goagent-3.5.0.33-4.fc26.x86_64
x2goserver-xsession-4.0.1.22-2.fc26.x86_64
x2goserver-4.0.1.22-2.fc26.x86_64

[ckoozer@ckoozer-linux ~]$ which nxagent
/usr/bin/nxagent
[ckoozer@ckoozer-linux ~]$ which x2goagent
/usr/bin/x2goagent
[ckoozer@ckoozer-linux ~]$ locate nxagent
/etc/nxagent
/etc/nxagent/keystrokes.cfg
/etc/nxagent/nxagent.keyboard
/etc/nxagent/rgb
/usr/bin/nxagent
/usr/lib64/nx/bin/nxagent
/usr/share/man/man1/nxagent.1.gz
/usr/share/pixmaps/nxagent.xpm
[ckoozer@ckoozer-linux ~]$ locate x2goagent
/etc/x2go/x2goagent.keyboard
/etc/x2go/x2goagent.options
/usr/bin/x2goagent
/usr/lib64/x2go/bin/x2goagent
/usr/share/man/man1/x2goagent.1.gz
/usr/share/x2go/versions/VERSION.x2goagent
[ckoozer@ckoozer-linux ~]$ which nxproxy
/usr/bin/nxproxy
[ckoozer@ckoozer-linux ~]$ locate nxproxy
/usr/bin/nxproxy
/usr/lib64/nx/bin/nxproxy
/usr/share/man/man1/nxproxy.1.gz
[ckoozer@ckoozer-linux ~]$ nxproxy -v
NXPROXY - Version 3.5.0.33


thanks!


craig@netsuite.com<mailto:craig@netsuite.com>

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

Send a report that this bug log contains spam.


X2Go Developers <owner@bugs.x2go.org>. Last modified: Sat Dec 14 13:11:23 2024; 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.