X2Go Bug report logs - #323
x2go server refuses client with 'Error: Wrong version or invalid session authentication cookie.'

version graph

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

Reported by: harry mangalam <harry.mangalam@uci.edu>

Date: Mon, 14 Oct 2013 04:48:01 UTC

Severity: normal

Tags: moreinfo

Found in version 4.0.1

Full log

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

Received: (at control) by bugs.x2go.org; 29 Oct 2013 08:42:51 +0000
From mike.gabriel@das-netzwerkteam.de  Tue Oct 29 09:42:50 2013
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,URIBL_BLOCKED
	autolearn=ham version=3.3.2
Received: from freya.das-netzwerkteam.de (freya.das-netzwerkteam.de [])
	by ymir (Postfix) with ESMTPS id F0FD45DA6C;
	Tue, 29 Oct 2013 09:42:50 +0100 (CET)
Received: from grimnir.das-netzwerkteam.de (grimnir.das-netzwerkteam.de [])
	by freya.das-netzwerkteam.de (Postfix) with ESMTPS id A28381A54;
	Tue, 29 Oct 2013 09:42:50 +0100 (CET)
Received: from localhost (localhost [])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id 94FDC3BB58;
	Tue, 29 Oct 2013 09:42:50 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at grimnir.das-netzwerkteam.de
Received: from grimnir.das-netzwerkteam.de ([])
	by localhost (grimnir.das-netzwerkteam.de []) (amavisd-new, port 10024)
	with ESMTP id 2jxOI-35cdQx; Tue, 29 Oct 2013 09:42:50 +0100 (CET)
Received: from localhost (localhost [])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id 690C13BB39;
	Tue, 29 Oct 2013 09:42:50 +0100 (CET)
Received: from grimnir.das-netzwerkteam.de (localhost [])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTPSA id 312AE3BB2E;
	Tue, 29 Oct 2013 09:42:50 +0100 (CET)
Received: from nocatv2.tng.de (nocatv2.tng.de []) by
 mail.das-netzwerkteam.de (Horde Framework) with HTTP; Tue, 29 Oct 2013
 08:42:50 +0000
Date: Tue, 29 Oct 2013 08:42:50 +0000
Message-ID: <20131029084250.Horde.wrqyIPx3-qgWKraKeUMMTQ1@mail.das-netzwerkteam.de>
From: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
To: harry mangalam <harry.mangalam@uci.edu>, 323@bugs.x2go.org
Cc: control@bugs.x2go.org
Subject: Re: [X2Go-Dev] Bug#323: x2go server refuses client with 'Error:
 Wrong version or invalid session authentication cookie.'
References: <3112399.Az4Yrmv0PE@stunted>
In-Reply-To: <3112399.Az4Yrmv0PE@stunted>
User-Agent: Internet Messaging Program (IMP) H5 (6.1.4)
Accept-Language: en,de
X-Remote-Browser: Mozilla/5.0 (X11; Linux x86_64; rv:23.0) Gecko/20100101
 Firefox/23.0 Iceweasel/23.0
Content-Type: multipart/signed; boundary="=_TksL9lhysICw1dimI1LR0g4";
 protocol="application/pgp-signature"; micalg=pgp-sha1
MIME-Version: 1.0
[Message part 1 (text/plain, inline)]
tag 323 moreinfo

Hi Harry,

On  Mo 14 Okt 2013 06:34:07 CEST, harry mangalam wrote:

> Package: x2goserver
> Version: 4.0.1
> x86_64, CentOS 6.4, kernel 2.6.32-358.18.1.el6.centos.plus.x86_64
> (also x2go version (self-compiled) on the same platform)
> Problem:
> After a server OS lockup and reboot, the previously working x2goserver would

ok... so there was a server crash. Of course, X2Go Server should  
handle crashes in most occasions, but sometimes the X2Go session DB  
indeed can become corrupt.

Please try

  $ sudo rm -f /var/lib/x2go/x2go_sessions
  $ sudo x2godbadmin --createdb

Does that solve your problems?

> not allow client connections from Mac, Linux, Windows.  After re-installing
> x2gserver (x2goserver- and x2goagent
> (x2goagent-, it refused to connect with the client-side
> message:
> ===
> Session: Starting session at 'Fri Oct 11 18:11:36 2013'.
> Info: Connecting to remote host 'localhost:31030'.
> Info: Connection to remote proxy 'localhost:31030' established.
> Error: The remote NX proxy closed the connection.
> Error: Failure negotiating the session in stage '7'.
> Error: Wrong version or invalid session authentication cookie.
> Session: Terminating session at 'Fri Oct 11 18:11:37 2013'.
> Session: Session terminated at 'Fri Oct 11 18:11:37 2013'.
> ===
> (dont know if this is complete since the popup only lasts 2s.)
> This error has been cited multiple times in various fora and lists,  
> but no one
> seems to have been able to solve it.
> I can passwordlessly ssh to both servers just fine from other Linux clients.
> If I don't use the ssh keys, I can enter my password and the result is the
> same.
> The server seems to be initializing the session since if I try to log in
> multiple times, there are new sessions listed, but I'm not allowed to connect
> to them. I can only terminate or suspend them.
> Terminating them does appear to work since they are not listed on following
> sessions if I do.
> The problem does seem to be related to authentication or  
> authorization; we use
> ldap-based auth on the server and it's working fine otherwise, except for
> x2go.

Is every user affected??? Can you test with a fresh user account on  
the server??? We need to pin down, whether something on the server is  
broken system wide or if the issue is a user profile problem.

> Thanks for your work!

Welcome :-)


mike gabriel, herweg 7, 24357 fleckeby
fon: +49 (1520) 1976 148

GnuPG Key ID 0x25771B31
mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de

[Message part 2 (application/pgp-keys, inline)]
[Message part 3 (application/pgp-signature, inline)]

Send a report that this bug log contains spam.

X2Go Developers <owner@bugs.x2go.org>. Last modified: Sun Feb 23 04:11:41 2020; 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.