From unknown Fri May 08 13:26:16 2026
X-Loop: owner@bugs.x2go.org
Subject: Bug#1021: Client error Connection failed. xrdb: Can't open display ''
Reply-To: James Klaas <jklaas@gmail.com>, 1021@bugs.x2go.org
Resent-From: James Klaas <jklaas@gmail.com>
Resent-To: x2go-dev@lists.x2go.org
Resent-CC: X2Go Developers <x2go-dev@lists.x2go.org>
X-Loop: owner@bugs.x2go.org
Resent-Date: Thu, 07 Apr 2016 13:40:01 +0000
Resent-Message-ID: <handler.1021.B.146003616412021@bugs.x2go.org>
Resent-Sender: owner@bugs.x2go.org
X-X2Go-PR-Message: report 1021
X-X2Go-PR-Package: x2goserver
X-X2Go-PR-Keywords: 
Received: via spool by submit@bugs.x2go.org id=B.146003616412021
          (code B); Thu, 07 Apr 2016 13:40:01 +0000
Received: (at submit) by bugs.x2go.org; 7 Apr 2016 13:36:04 +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.1 required=3.0 tests=BAYES_20,DKIM_SIGNED,
	DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,URIBL_BLOCKED,WEIRD_PORT
	autolearn=ham version=3.3.2
Received: from localhost (localhost [127.0.0.1])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTP id 99D8A5DA9D
	for <submit@bugs.x2go.org>; Thu,  7 Apr 2016 15:36:01 +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 lswxuMXJcocn for <submit@bugs.x2go.org>;
	Thu,  7 Apr 2016 15:35:55 +0200 (CEST)
Received: from mail-ig0-f180.google.com (mail-ig0-f180.google.com [209.85.213.180])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id DCA295DA8E
	for <submit@bugs.x2go.org>; Thu,  7 Apr 2016 15:35:54 +0200 (CEST)
Received: by mail-ig0-f180.google.com with SMTP id ui10so70393547igc.1
        for <submit@bugs.x2go.org>; Thu, 07 Apr 2016 06:35:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:from:date:message-id:subject:to;
        bh=WCvMqGvmtaNMffDG3T2DXCH1vMJEhl+whQKjdtUrDuc=;
        b=P4VB4jaZrLw1qLc8JZTLGmVOJMd9BdWRri4E1T0KQfChVMJPQWsV4r6p4/Znx29aHc
         JB5UNIyhIk1SSgiQHbY/1ABjS/K3omEkKlF2B/D3md5Qs6IiRV1aRjWVme9S5rXQBOYR
         7dH7mL8kcmYlahJvUEQAxgL5OUESNN+gvC6h/JdY4axBtro7qlC2z9NnTnIm92+/vBTj
         NdAY5EwdEYefJ7BA/fKIhCXeGVtwdIGQhOreVQpfgVg3dwfF5eOlyZ8nXobAHs6gZxZ5
         5d7b277fsykDtLrsFNqMLWnD4aPH3be8K1egtSIxmIo79cRw9q8nRvsL5o9ZfDz9GI2V
         6lMQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
        bh=WCvMqGvmtaNMffDG3T2DXCH1vMJEhl+whQKjdtUrDuc=;
        b=gROhN3hBWOgZKISg0ddyjC2abWFyF/TjE2DUuGL6J0QFLfeJZSuh1WSE7Ps+3KCfK3
         T/4fu+RIVJnRURgvHawVUowaZhRiHx8lhqBAb3YuULJzTGkpcwwBqcW3ItrUm8GnYFJA
         J6SKEZjBxonv6mhqiPK5nl6VS/Zz9bGNVIO9rmilexxguWn9hw/4MiXQcC4VEPJ3YB/s
         vp1wdTGXoS21czSYVLXmj4riqMlkGh6IR2860n5jWSl920Z4HjDsCrOUbL1svMH1ROP3
         +4nkabiset3e+5obeUet0RQahmp/pk1i9svb6hI728If/rS3Nuumpu96cCuU4nKzZTU4
         Y74w==
X-Gm-Message-State: AD7BkJJo39+UluXaBVfQHU3j93qoRS4fVAcMQErrVq8goTLq5ijN3vIIuKlx6He3c7xLA/uXkFVMuYkW5SZONw==
X-Received: by 10.50.118.4 with SMTP id ki4mr30429534igb.53.1460036153337;
 Thu, 07 Apr 2016 06:35:53 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.79.35.194 with HTTP; Thu, 7 Apr 2016 06:35:14 -0700 (PDT)
From: James Klaas <jklaas@gmail.com>
Date: Thu, 7 Apr 2016 09:35:14 -0400
Message-ID: <CACJadNENB5Z44s7t1XH0FoYjsEv0YbsCvAAfhywXgfFLVH8uxw@mail.gmail.com>
To: submit@bugs.x2go.org
Content-Type: multipart/alternative; boundary=089e013cc22a476fd0052fe528f6

--089e013cc22a476fd0052fe528f6
Content-Type: text/plain; charset=UTF-8

Package: x2goserver
Version: 4.0.1.19-0x2go2+git20160126.1064+jessie.main.1

Package: x2goclient
Version: 4.0.5.1-0~1167~ubuntu14.04.1

After I rebooted my server, I started getting:

Connection failed. xrdb: Can't open display ''

from the client. If I run "x2goclient --debug", here's the output from the
Debug:

x2go-DEBUG-../src/onmainwindow.cpp:2682> Creating QPixmap with session
icon: '":/img/icons/128x128/x2gosession.png"'.
x2go-DEBUG-../src/onmainwindow.cpp:1286> Removing apps from tray
x2go-INFO-8> "Starting connection to server: myserver.org:22"
x2go-DEBUG-../src/onmainwindow.cpp:2783> Starting new ssh connection to
server:"myserver.org":"22" krbLogin: false
x2go-DEBUG-../src/sshmasterconnection.cpp:173> SshMasterConnection, host "
myserver.org"port 22user "myuser"useproxy falseproxyserver ""proxyport 22
x2go-DEBUG-../src/sshmasterconnection.cpp:210> Starting SSH connection
without Kerberos authentication.
x2go-DEBUG-../src/sshmasterconnection.cpp:214> SshMasterConnection,
instance SshMasterConnection(0x27c1250)  created.
x2go-DEBUG-../src/sshmasterconnection.cpp:450> SshMasterConnection,
instance SshMasterConnection(0x27c1250)  entering thread.
x2go-DEBUG-../src/sshmasterconnection.cpp:486> libssh not initialized yet.
Initializing.
x2go-DEBUG-../src/sshmasterconnection.cpp:797> cserverAuth
x2go-DEBUG-../src/sshmasterconnection.cpp:812> state: 1

x2go-DEBUG-../src/sshmasterconnection.cpp:983> Challenge authentication
failed. Trying password mechanism if available.

x2go-DEBUG-../src/sshmasterconnection.cpp:989> Password mechanism
available. Continuing.

x2go-DEBUG-../src/sshmasterconnection.cpp:993> Password authentication
requested.

x2go-DEBUG-../src/sshmasterconnection.cpp:662> User authentication OK.
x2go-DEBUG-../src/onmainwindow.cpp:2878> SSH connection established.
x2go-DEBUG-../src/onmainwindow.cpp:3160> Continue normal X2Go session
x2go-DEBUG-../src/sshprocess.cpp:199> Executing remote command via
SshProcess object 0: "export HOSTNAME && x2golistsessions"
x2go-DEBUG-../src/sshprocess.cpp:204> this=SshProcess(0x27efcc0)  Running
masterCon->addChannelConnection(this, '
"3c34e9d5-a896-4976-a52a-12cd3dfbb0fd" ', ' "bash -l -c 'echo
"X2GODATABEGIN:3c34e9d5-a896-4976-a52a-12cd3dfbb0fd"; export
PATH="/usr/local/bin:/usr/bin:/bin"; export TERM="dumb"; export HOSTNAME &&
x2golistsessions; echo "X2GODATAEND:3c34e9d5-a" ');
x2go-DEBUG-../src/sshmasterconnection.cpp:1312> Locking SSH channel
connection MUTEX.
x2go-DEBUG-../src/sshmasterconnection.cpp:1314> Passing new channel
conenction object to channelConnections.
x2go-DEBUG-../src/sshmasterconnection.cpp:1316> Unlocking SSH channel
connection MUTEX.
x2go-DEBUG-../src/sshmasterconnection.cpp:1504> Creating new channel.

x2go-DEBUG-../src/sshmasterconnection.cpp:1508> New channel:0x7fbcd8011f80

x2go-DEBUG-../src/sshmasterconnection.cpp:1539> Executing remote: "bash -l
-c 'echo "X2GODATABEGIN:3c34e9d5-a896-4976-a52a-12cd3dfbb0fd"; export
PATH="/usr/local/bin:/usr/bin:/bin"; export TERM="dumb"; export HOSTNAME &&
x2golistsessions; echo "X2GODATAEND:3c34e9d5-a896-4976-a52a-12cd3dfbb0fd";'"

x2go-DEBUG-../src/sshmasterconnection.cpp:1562> New exec channel created.

x2go-DEBUG-../src/sshmasterconnection.cpp:1666> EOF on channel
0x7fbcd8011f80; SshProcess object: 0
x2go-DEBUG-../src/sshmasterconnection.cpp:1734> EOF sent.
x2go-DEBUG-../src/sshmasterconnection.cpp:1738> Channel closed.
x2go-DEBUG-../src/sshprocess.cpp:517> SSH finished: raw output (stdout): "
X2GODATABEGIN:3c34e9d5-a896-4976-a52a-12cd3dfbb0fd
X2GODATAEND:3c34e9d5-a896-4976-a52a-12cd3dfbb0fd
"
x2go-DEBUG-../src/sshprocess.cpp:523> Have stderr only, something must be
wrong.
x2go-DEBUG-../src/sshprocess.cpp:528> SSH finished: false - "xrdb: Can't
open display ''
" (0).
x2go-DEBUG-../src/onmainwindow.cpp:3549> "xrdb: Can't open display ''
"
------------------------------------------------------------------------------------------------------

I tried with a different server and it seemed to work fine:
Package: x2goserver
Version: 4.0.1.19-0x2go1

James Klaas

--089e013cc22a476fd0052fe528f6
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Package: x2goserver<div>Version:=C2=A04.0.1.19-0x2go2+git2=
0160126.1064+jessie.main.1<div><br></div><div>Package: x2goclient=C2=A0</di=
v><div>Version:=C2=A04.0.5.1-0~1167~ubuntu14.04.1</div><div><br></div><div>=
After I rebooted my server, I started getting:</div><div><br></div><div>Con=
nection failed. xrdb: Can&#39;t open display &#39;&#39;<br></div><div><br><=
/div><div>from the client. If I run &quot;x2goclient --debug&quot;, here&#3=
9;s the output from the Debug:</div></div><div><br></div><div><div>x2go-DEB=
UG-../src/onmainwindow.cpp:2682&gt; Creating QPixmap with session icon: &#3=
9;&quot;:/img/icons/128x128/x2gosession.png&quot;&#39;.</div><div>x2go-DEBU=
G-../src/onmainwindow.cpp:1286&gt; Removing apps from tray</div><div>x2go-I=
NFO-8&gt; &quot;Starting connection to server: <a href=3D"http://myserver.o=
rg:22" target=3D"_blank">myserver.org:22</a>&quot;</div><div>x2go-DEBUG-../=
src/onmainwindow.cpp:2783&gt; Starting new ssh connection to server:&quot;<=
a href=3D"http://myserver.org" target=3D"_blank">myserver.org</a>&quot;:&qu=
ot;22&quot; krbLogin: false</div><div>x2go-DEBUG-../src/sshmasterconnection=
.cpp:173&gt; SshMasterConnection, host &quot;<a href=3D"http://myserver.org=
" target=3D"_blank">myserver.org</a>&quot;port 22user &quot;myuser&quot;use=
proxy falseproxyserver &quot;&quot;proxyport 22</div><div>x2go-DEBUG-../src=
/sshmasterconnection.cpp:210&gt; Starting SSH connection without Kerberos a=
uthentication.</div><div>x2go-DEBUG-../src/sshmasterconnection.cpp:214&gt; =
SshMasterConnection, instance SshMasterConnection(0x27c1250) =C2=A0created.=
=C2=A0</div><div>x2go-DEBUG-../src/sshmasterconnection.cpp:450&gt; SshMaste=
rConnection, instance SshMasterConnection(0x27c1250) =C2=A0entering thread.=
=C2=A0</div><div>x2go-DEBUG-../src/sshmasterconnection.cpp:486&gt; libssh n=
ot initialized yet. Initializing.</div><div>x2go-DEBUG-../src/sshmasterconn=
ection.cpp:797&gt; cserverAuth</div><div>x2go-DEBUG-../src/sshmasterconnect=
ion.cpp:812&gt; state: 1</div><div><br></div><div>x2go-DEBUG-../src/sshmast=
erconnection.cpp:983&gt; Challenge authentication failed. Trying password m=
echanism if available.</div><div><br></div><div>x2go-DEBUG-../src/sshmaster=
connection.cpp:989&gt; Password mechanism available. Continuing.</div><div>=
<br></div><div>x2go-DEBUG-../src/sshmasterconnection.cpp:993&gt; Password a=
uthentication requested.</div><div><br></div><div>x2go-DEBUG-../src/sshmast=
erconnection.cpp:662&gt; User authentication OK.</div><div>x2go-DEBUG-../sr=
c/onmainwindow.cpp:2878&gt; SSH connection established.</div><div>x2go-DEBU=
G-../src/onmainwindow.cpp:3160&gt; Continue normal X2Go session</div><div>x=
2go-DEBUG-../src/sshprocess.cpp:199&gt; Executing remote command via SshPro=
cess object 0: &quot;export HOSTNAME &amp;&amp; x2golistsessions&quot;</div=
><div>x2go-DEBUG-../src/sshprocess.cpp:204&gt; this=3DSshProcess(0x27efcc0)=
 =C2=A0Running masterCon-&gt;addChannelConnection(this, &#39; &quot;3c34e9d=
5-a896-4976-a52a-12cd3dfbb0fd&quot; &#39;, &#39; &quot;bash -l -c &#39;echo=
 &quot;X2GODATABEGIN:3c34e9d5-a896-4976-a52a-12cd3dfbb0fd&quot;; export PAT=
H=3D&quot;/usr/local/bin:/usr/bin:/bin&quot;; export TERM=3D&quot;dumb&quot=
;; export HOSTNAME &amp;&amp; x2golistsessions; echo &quot;X2GODATAEND:3c34=
e9d5-a&quot; &#39;);=C2=A0</div><div>x2go-DEBUG-../src/sshmasterconnection.=
cpp:1312&gt; Locking SSH channel connection MUTEX.</div><div>x2go-DEBUG-../=
src/sshmasterconnection.cpp:1314&gt; Passing new channel conenction object =
to channelConnections.</div><div>x2go-DEBUG-../src/sshmasterconnection.cpp:=
1316&gt; Unlocking SSH channel connection MUTEX.</div><div>x2go-DEBUG-../sr=
c/sshmasterconnection.cpp:1504&gt; Creating new channel.</div><div><br></di=
v><div>x2go-DEBUG-../src/sshmasterconnection.cpp:1508&gt; New channel:0x7fb=
cd8011f80</div><div><br></div><div>x2go-DEBUG-../src/sshmasterconnection.cp=
p:1539&gt; Executing remote: &quot;bash -l -c &#39;echo &quot;X2GODATABEGIN=
:3c34e9d5-a896-4976-a52a-12cd3dfbb0fd&quot;; export PATH=3D&quot;/usr/local=
/bin:/usr/bin:/bin&quot;; export TERM=3D&quot;dumb&quot;; export HOSTNAME &=
amp;&amp; x2golistsessions; echo &quot;X2GODATAEND:3c34e9d5-a896-4976-a52a-=
12cd3dfbb0fd&quot;;&#39;&quot;</div><div><br></div><div>x2go-DEBUG-../src/s=
shmasterconnection.cpp:1562&gt; New exec channel created.</div><div><br></d=
iv><div>x2go-DEBUG-../src/sshmasterconnection.cpp:1666&gt; EOF on channel 0=
x7fbcd8011f80; SshProcess object: 0</div><div>x2go-DEBUG-../src/sshmasterco=
nnection.cpp:1734&gt; EOF sent.</div><div>x2go-DEBUG-../src/sshmasterconnec=
tion.cpp:1738&gt; Channel closed.</div><div>x2go-DEBUG-../src/sshprocess.cp=
p:517&gt; SSH finished: raw output (stdout): &quot;</div><div>X2GODATABEGIN=
:3c34e9d5-a896-4976-a52a-12cd3dfbb0fd</div><div>X2GODATAEND:3c34e9d5-a896-4=
976-a52a-12cd3dfbb0fd</div><div>&quot;</div><div>x2go-DEBUG-../src/sshproce=
ss.cpp:523&gt; Have stderr only, something must be wrong.</div><div>x2go-DE=
BUG-../src/sshprocess.cpp:528&gt; SSH finished: false - &quot;xrdb: Can&#39=
;t open display &#39;&#39;</div><div>&quot; (0).</div><div>x2go-DEBUG-../sr=
c/onmainwindow.cpp:3549&gt; &quot;xrdb: Can&#39;t open display &#39;&#39;</=
div><div>&quot;</div></div><div>-------------------------------------------=
-----------------------------------------------------------</div><div><br><=
/div><div>I tried with a different server and it seemed to work fine:</div>=
<div>Package:=C2=A0x2goserver</div><div>Version:=C2=A04.0.1.19-0x2go1</div>=
<div><br></div><div>James Klaas</div><div><br></div><div><br></div></div>

--089e013cc22a476fd0052fe528f6--
