From unknown Sat Apr 04 13:20:16 2026
X-Loop: owner@bugs.x2go.org
Subject: Bug#1073: [X2Go-Dev] XSession-x2go: Hostname not set correctly
Reply-To: Mihai Moldovan <ionic@ionic.de>, 1073@bugs.x2go.org
Resent-From: Mihai Moldovan <ionic@ionic.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: Sat, 13 Aug 2016 17:15:02 +0000
Resent-Message-ID: <handler.1073.B1073.147110838712671@bugs.x2go.org>
Resent-Sender: owner@bugs.x2go.org
X-X2Go-PR-Message: followup 1073
X-X2Go-PR-Package: x2goserver-xsession
X-X2Go-PR-Keywords: 
Received: via spool by 1073-submit@bugs.x2go.org id=B1073.147110838712671
          (code B ref 1073); Sat, 13 Aug 2016 17:15:02 +0000
Received: (at 1073) by bugs.x2go.org; 13 Aug 2016 17:13:07 +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=-2.0 required=3.0 tests=BAYES_00,DKIM_SIGNED,
	DKIM_VALID,DKIM_VALID_AU,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham
	version=3.3.2
Received: from localhost (localhost [127.0.0.1])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTP id 327855DEFE
	for <1073@bugs.x2go.org>; Sat, 13 Aug 2016 19:13:05 +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 kkYFkR2pbLXn for <1073@bugs.x2go.org>;
	Sat, 13 Aug 2016 19:12:58 +0200 (CEST)
Received: from Root24.de (powered.by.root24.eu [5.135.3.88])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTP id 641E25DDF4
	for <1073@bugs.x2go.org>; Sat, 13 Aug 2016 19:12:58 +0200 (CEST)
Received: from nopileos.local (178.162.222.41.adsl.inet-telecom.org [178.162.222.41])
	by mail.ionic.de (Postfix) with ESMTPSA id 921CA4F00396;
	Sat, 13 Aug 2016 19:12:57 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ionic.de; s=default;
	t=1471108378; bh=RiSbTS4XFQtLG7yhUeN0W2FMQipFBEqwle5UQkdrlck=;
	h=Subject:To:References:From:Date:In-Reply-To:From;
	b=FJAG6Ggtdg339c2f88WCxYxkJGWMd2ZNcrF0u7GCcO/0NU/erslcSL7FjGj0g9MGk
	 VMIZQZqiUanty5gpAk4HYpofHTtGn7KXG14w2s77ejrJtHW4ADM+ka0Zymrz3c2Tbo
	 G+ncdBBYkeghL+8LCYwl942hd9sNpTk35GkwKGKg=
To: Benjamin Shadwick <benshadwick@gmail.com>, 1073@bugs.x2go.org
References: <CADZYHDAz7t0n2bB2hLg6YeZgou7-9HEY77ps2nvOWBvsoTV3dQ@mail.gmail.com>
From: Mihai Moldovan <ionic@ionic.de>
Message-ID: <5a2a2855-ff3a-c42b-af05-6ca99078e2a9@ionic.de>
Date: Sat, 13 Aug 2016 19:12:51 +0200
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:45.0)
 Gecko/20100101 Thunderbird/45.2.0
MIME-Version: 1.0
In-Reply-To: <CADZYHDAz7t0n2bB2hLg6YeZgou7-9HEY77ps2nvOWBvsoTV3dQ@mail.gmail.com>
Content-Type: multipart/signed; micalg=pgp-sha512;
 protocol="application/pgp-signature";
 boundary="uiqb6xADCRJIocTps9nrC7gCe0uIqo7Am"

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--uiqb6xADCRJIocTps9nrC7gCe0uIqo7Am
Content-Type: multipart/mixed; boundary="QvTF41TPCPIrsKQbV0L3jKpJUeRxC9Nva"
From: Mihai Moldovan <ionic@ionic.de>
To: Benjamin Shadwick <benshadwick@gmail.com>, 1073@bugs.x2go.org
Message-ID: <5a2a2855-ff3a-c42b-af05-6ca99078e2a9@ionic.de>
Subject: Re: [X2Go-Dev] XSession-x2go: Hostname not set correctly
References: <CADZYHDAz7t0n2bB2hLg6YeZgou7-9HEY77ps2nvOWBvsoTV3dQ@mail.gmail.com>
In-Reply-To: <CADZYHDAz7t0n2bB2hLg6YeZgou7-9HEY77ps2nvOWBvsoTV3dQ@mail.gmail.com>

--QvTF41TPCPIrsKQbV0L3jKpJUeRxC9Nva
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

Control: tag -1 moreinfo

On 13.08.2016 04:28 PM, Benjamin Shadwick wrote:
> Package: x2goserver-xsession
> Version 4.1.0.0-0~1355~ubuntu16.04.1
>=20
> When trying to start an LXDE x2go session on an Ubuntu 16.04.1 LTS x64
> server via a Windows client, I get a black screen with a white dialog
> saying "XSession-x2go: Hostname not set correctly; aborting."
>=20
> Debug logging doesn't have much more detail:
>=20
> Aug 13 07:20:55 shodan /usr/bin/x2gocmdexitmessage: command output
> starts with: exec startlxde Loading profile from /etc/profile Loading
> profile from /home/ben/.profile XSession-x2go: Hostname not set
> correctly; aborting.

Hey, that was quick. I only made that change yesterday.

As the error message says, your system's host name (as returned by the
hostname(1) shell utility) is not set correctly. What is its value?

An empty hostname ("") or a hostnames with the values "(none)" or "localh=
ost"
are all considered to be invalid.

While I could consider "localhost" to be a valid hostname to some degree,=
 it's
not unique enough so that, if the home dir is shared via NFS and multiple=

machines with the hostname "localhost" access it, the log/error file (whi=
ch
is now supposed to be unique per machine) wouldn't be really per-machine =
anymore.

Would including the "banned" hostnames be more informative to the user?



Mihai


--QvTF41TPCPIrsKQbV0L3jKpJUeRxC9Nva--

--uiqb6xADCRJIocTps9nrC7gCe0uIqo7Am
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCgAGBQJXr1UYAAoJEB/WLtluJTqHRjAP+gI13M+qoG83h+ZDXPgLDjWd
1GrnGRJkIN9S79P/Sd/Gpxckpm5QcUcv1vsAm9NCNmiFqHl1BIWlMGIUl3eQSDHz
3OAnnQ+IVI9BBgPycgAhEkM2UeppUDKkRR9kuIaDcmj9x/idfJExP5fol7kYhjxX
vRBacJncjwLg7/q2IHvhhbc31KFxp7i+Jgji8X+06X4xrCITr0XjTX5U46mvSrSn
qmkalaXXNzmtP3YXcaMqKQWJdKaF3DrDiGvU4cESOK5FJ9k84aslP3vabfU6f0j3
+uNHUpF/z8HJvJt1sFbU2xC60arlUHcDP5cJfUKPFtDaOCOACmuhKX0jmsPa8eCY
pU1OQmCXt6ByGvUArnZ8bhh2lTchSvV7myr8RrCK4k/lJiQL3/OsD+L5xkzCAIYU
hCNbKh5eZXHzNchTIigok6QP8xLBpF9WbtfFqFn85lUjIjMdAmrvZ2lMb8mbEKMj
cfeaRpS0z95p2BSlH4Cw978jDBh0nLGR0sytjRkOA8khApxacCFAdEsJmn0uZVnB
4CKUibSY0Uik1yjeQiUpclljLu/3v4A0xSXSZuAqULdmaGuKEgPyMIVpJgG8/88G
ir9N/mRGDYZWAKGa3U0sdt7q6zqdyO/YuzZdU1u9XTo7wabbf5Tf87P5tmDP45Um
f1Stm9vTnsr/niK7pObn
=Kecc
-----END PGP SIGNATURE-----

--uiqb6xADCRJIocTps9nrC7gCe0uIqo7Am--
