From mb@becroft.co.nz  Tue Jul 29 07:46:09 2014
Received: (at 511) by bugs.x2go.org; 29 Jul 2014 05:46:11 +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=0.8 required=5.0 tests=BAYES_50 autolearn=ham
	version=3.3.2
X-Greylist: delayed 548 seconds by postgrey-1.34 at ymir.das-netzwerkteam.de; Tue, 29 Jul 2014 07:46:09 CEST
Received: from ak2.becroft.co.nz (ak2.becroft.co.nz [202.50.176.175])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTP id 45AD15DB52
	for <511@bugs.x2go.org>; Tue, 29 Jul 2014 07:46:09 +0200 (CEST)
Received: by ak2.becroft.co.nz (Postfix, from userid 489)
	id 75E60322115; Tue, 29 Jul 2014 17:36:57 +1200 (NZST)
Received: from ak2.becroft.co.nz (ak2.becroft.co.nz [202.50.176.175])
	by ak2.becroft.co.nz (Postfix) with ESMTP id 7787F322085
	for <511@bugs.x2go.org>; Tue, 29 Jul 2014 17:36:56 +1200 (NZST)
From: Mario Becroft <mb@becroft.co.nz>
To: 511@bugs.x2go.org
Subject: Cannot resume session, automatically suspends after connecting
Date: Tue, 29 Jul 2014 17:36:56 +1200
Message-ID: <87silk6807.fsf@ak2.becroft.co.nz>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain

I encountered the same problem, characterised by:

1. Warning about fonts in the log.

2. Session resumes briefly but then automatically suspends after about 1
second.

3. Log messages in ~/x2go/*/session.log as follows:

---
nxagentReconnectFailedFonts: WARNING! Font server tunneling not retrieved.
nxagentReconnect: WARNING! Unable to retrieve all the fonts currently in use. Mi
ssing fonts have been replaced.
nxagentSighupHandler: WARNING! Ignoring the signal in state [SESSION_GOING_UP].
keyboard file created
Session: Session resumed at 'Tue Jul 29 17:10:00 2014'.
Info: Screen [0] resized to geometry [1920x1200] fullscreen [0].
Session: Suspending session at 'Tue Jul 29 17:10:03 2014'.
Info: Waiting the cleanup timeout to complete.
Session: Session suspended at 'Tue Jul 29 17:10:03 2014'.
---

The cause of the problem was indeed that some fonts were missing on the
client (a gentoo system). I simply installed all the font packages I
could find one at a time until the problem went away.

In my opinion, the x2go client is not capable of running with missing
fonts, despite the message indicating that missing fonts will be
replaced. I think this may be a bug.

Tested with x2goserver version 4.0.1.15 and x2goclient version 4.0.2.0.

