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 4.0.1.18

Fixed in version 4.0.1.19

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
X-X2Go-PR-Keywords: 
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
	ymir.das-netzwerkteam.de
X-Spam-Level: 
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 [88.198.48.199])
	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 [78.46.204.98])
	by freya.das-netzwerkteam.de (Postfix) with ESMTPS id 66CCC160B;
	Fri, 17 Oct 2014 10:46:51 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
	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 ([127.0.0.1])
	by localhost (grimnir.das-netzwerkteam.de [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id ZS8EjPrcGpHm; Fri, 17 Oct 2014 10:46:51 +0200 (CEST)
Received: from grimnir.das-netzwerkteam.de (localhost [127.0.0.1])
	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
 [134.245.254.31]) 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
Organization: DAS-NETZWERKTEAM
X-Originating-IP: 134.245.254.31
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 4.0.1.18

Hi Stefan,

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

> Package: x2gobroker
> Severity: important
> Version: 0.3.0.0
>
> Since X2Go Server 4.0.1.16, 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


-- 

DAS-NETZWERKTEAM
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

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb
[Message part 2 (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


X2Go Developers <owner@bugs.x2go.org>. Last modified: Thu May 23 06:59:46 2019; Machine Name: ymir.das-netzwerkteam.de

X2Go Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.