X2Go Bug report logs - #638
broker agent in LOCAL mode cannot find state file

version graph

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

Reported by: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>

Date: Sat, 11 Oct 2014 09:05:01 UTC

Severity: important

Tags: pending

Found in version

Fixed in version

Done: X2Go Release Manager <git-admin@x2go.org>

Bug is archived. No further changes may be made.

Full log

🔗 View this message in rfc822 format

X-Loop: owner@bugs.x2go.org
Subject: Bug#638: [X2Go-Dev] Bug#638: broker agent in LOCAL mode cannot find state file
Reply-To: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>, 638@bugs.x2go.org
Resent-From: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Resent-To: x2go-dev@lists.x2go.org
Resent-CC: X2Go Developers <x2go-dev@lists.x2go.org>
X-Loop: owner@bugs.x2go.org
Resent-Date: Fri, 17 Oct 2014 08:50:03 +0000
Resent-Message-ID: <handler.638.B638.14135356123778@bugs.x2go.org>
Resent-Sender: owner@bugs.x2go.org
X-X2Go-PR-Message: followup 638
X-X2Go-PR-Package: x2gobroker
Received: via spool by 638-submit@bugs.x2go.org id=B638.14135356123778
          (code B ref 638); Fri, 17 Oct 2014 08:50:03 +0000
Received: (at 638) by bugs.x2go.org; 17 Oct 2014 08:46:52 +0000
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.das-netzwerkteam.de (Postfix) with ESMTPS id AAD725DBC9
	for <638@bugs.x2go.org>; Fri, 17 Oct 2014 10:46:51 +0200 (CEST)
Received: from grimnir.das-netzwerkteam.de (grimnir.das-netzwerkteam.de [])
	by freya.das-netzwerkteam.de (Postfix) with ESMTPS id 66CCC160B;
	Fri, 17 Oct 2014 10:46:51 +0200 (CEST)
Received: from localhost (localhost [])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id 489CD3BAD8;
	Fri, 17 Oct 2014 10:46:51 +0200 (CEST)
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 ZS8EjPrcGpHm; Fri, 17 Oct 2014 10:46:51 +0200 (CEST)
Received: from grimnir.das-netzwerkteam.de (localhost [])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTPS id 1165D3B8F0;
	Fri, 17 Oct 2014 10:46:51 +0200 (CEST)
Received: from m-031.informatik.uni-kiel.de (m-031.informatik.uni-kiel.de
 []) by mail.das-netzwerkteam.de (Horde Framework) with HTTP;
 Fri, 17 Oct 2014 08:46:51 +0000
Date: Fri, 17 Oct 2014 08:46:50 +0000
Message-ID: <20141017084650.Horde.UQ-MPzuyDBASoKVt2c6o2Q8@mail.das-netzwerkteam.de>
From: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
To: 638@bugs.x2go.org
Cc: Stephan Diehl <stephan.diehl@opensolutions.net>
In-Reply-To: <20141011090348.Horde.cSPXl7mT4EdtTMtded6DRg1@mail.das-netzwerkteam.de>
User-Agent: Internet Messaging Program (IMP) H5 (6.2.2)
Accept-Language: en,de
X-Remote-Browser: Mozilla/5.0 (X11; Linux x86_64; rv:32.0) Gecko/20100101
 Firefox/32.0 Iceweasel/32.0
Content-Type: multipart/signed; boundary="=_hl_r7ieggyCXruNJ0sbD8g7";
 protocol="application/pgp-signature"; micalg=pgp-sha1
MIME-Version: 1.0
[Message part 1 (text/plain, inline)]
Control: reassign -1 x2goserver
Control: found -1

Hi Stefan,

On  Sa 11 Okt 2014 11:03:48 CEST, Mike Gabriel wrote:

> Package: x2gobroker
> Severity: important
> Version:
> Since X2Go Server, all session relevant files moved to  
> /tmp/.x2go-<user>. In $HOME/.x2go there only is a symlink to the  
> session dir on /tmp.
> This change breaks x2gobroker-agent in LOCAL mode (evoked on the  
> broker host itself, assuming all session files are available).
> In LOCAL mode, x2gobroker-agent is evoked on the X2Go Broker host  
> itself and assumes that it can access all session files in  
> $HOME/.x2go/C-<session>.
> But what it finds is a dangling symlink to a non-existent  
> C-<session> dir in /tmp/.x2go-<user>.
> The wanted session dir, of course, can only be found on
>   X2Go-Server-node-N:/tmp/.x2go-<user>/C-<session>

This issue should actually be silenced (not really fixed, as it is not  
fixable) in X2Go Server.

Most of the session manipulation happens via the X2Go Server node's  
x2gocleansessions daemon script.

The x2golistsessions command (evoked by x2gobroker-agent), which  
triggers the observed bug, does not necessarily need access to the  
session state file. If it can gain access, it will check the session  
state, and update the session DB, if the DB value differs from the  
actual state in the session state file (the session state file should  
be more up-to-date).

If we omit this DB update in x2golistsessions, we need to rely on a  
working x2gocleansessions daemon, which should still be enough.

Thus, I will test for the existence of the state file in  
x2golistsessions first and then execute the DB update code. If there  
is no session state file, we should be clear, as well (and need to  
rely on x2gocleansessions on the X2Go Server nodes).



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-signature, inline)]

Send a report that this bug log contains spam.

X2Go Developers <owner@bugs.x2go.org>. Last modified: Tue Aug 20 16:09:23 2019; 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.