From lists@easyb.ch  Wed Jan 16 14:46:29 2013
Received: (at submit) by bugs.x2go.org; 16 Jan 2013 13:46:29 +0000
Received: from mail-wi0-f171.google.com (mail-wi0-f171.google.com [209.85.212.171])
	by ymir (Postfix) with ESMTPS id F03305DB18
	for <submit@bugs.x2go.org>; Wed, 16 Jan 2013 14:46:28 +0100 (CET)
Received: by mail-wi0-f171.google.com with SMTP id hn14so3457642wib.10
        for <submit@bugs.x2go.org>; Wed, 16 Jan 2013 05:46:28 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=google.com; s=20120113;
        h=x-received:from:content-type:subject:message-id:date:to
         :mime-version:x-mailer:x-gm-message-state;
        bh=Ar/iwqEPRWBDtfJ3fAPM621fVe0OeZdpVXt/s4ukMtc=;
        b=KjFxUEoFmYnXnuze0HKZb47Ke8mfgORrydlAF85kb7JSZbFcncGrD53b4/NOGPitWi
         VQdm4T6/JYwbcigGrQCshqCgkj3Vh2h5eN3sfH+7MriOJhjT9AMPRo1fLmcL0SHJEC7L
         /jNq6yXieXGo6Eh7crRycbYUV0ZqRruV+I21c3H9I9SPsXW44MaM76qGJCHAzqHBIIDD
         XJVDvNBeS2wt8n483EWhYJT0eL5/JqgGWNkOjfMPHXaHOX6VVV32AyGDaYh/Ol+c2J1r
         AxL1KH9YAliI2mf8HRnBgVtRPRfz031Kt0895vUrBKQNzf/0Gwuoc1TeI/3vleP/a6FM
         8z5w==
X-Received: by 10.194.76.137 with SMTP id k9mr2352350wjw.29.1358343988605;
        Wed, 16 Jan 2013 05:46:28 -0800 (PST)
Received: from [10.0.0.4] (46-127-89-101.dynamic.hispeed.ch. [46.127.89.101])
        by mx.google.com with ESMTPS id t17sm9171918wiv.6.2013.01.16.05.46.27
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Wed, 16 Jan 2013 05:46:28 -0800 (PST)
From: =?iso-8859-1?Q?Ezra_B=FChler?= <lists@easyb.ch>
Content-Type: multipart/alternative; boundary="Apple-Mail=_B6C401CD-ECA7-4262-9780-E11C020A9830"
Subject: x2goclient: resuming "running" session fails
Message-Id: <00D261F4-59A9-48FF-A416-65253E076C60@easyb.ch>
Date: Wed, 16 Jan 2013 14:46:27 +0100
To: submit@bugs.x2go.org
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
X-Mailer: Apple Mail (2.1499)
X-Gm-Message-State: ALoCoQmr7hbxtQoCzEATLfU99FUwzOe7tKTpWkSk5H44iXbZkkV+eMQJxgIwVcRAEtpnTSLIrIj0


--Apple-Mail=_B6C401CD-ECA7-4262-9780-E11C020A9830
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

Package: x2goclient

Since commit 3335fca16afaa0792207228115e31630894dee71

(X2Go resume session slot: double click on a selected session is =
supposed to resume that session. To make this feature functional for =
running sessions the session has to be suspended first.)

resuming a "running" session (by double clicking it) is no longer =
possible unless you press suspend first. On Linux I get following error:

"channel_open_session failed" :  "Received SSH_MSG_DISCONNECT: =
33554432:Received ieof for nonexistent channel 0."=20

I am used to closing the client without explicitly suspending the =
session. This leaves the session marked as "running". When I start up =
the client again I want to be able to resume the session with the least =
effort as possible. In my opinion the right way to achieve this behavior =
would be to suspend the session when the client quits.

In my opinion simply restoring the behavior we had prior to 3335fc... =
would be wrong. Because when trying to resume a "running" session the =
"resume" button in the session dialog dialog would not be active, but =
resuming by double clicking still possible, which I find misleading.

Here the complete transcript of an attempt to resume a running session:

read  1  sessions from config file=20
start new ssh connection to server: "my.host.ch" : "22" krb:  false=20

ssh connection ok=20

continue normal x2go session=20

Agent output: "gr_port=3D30127
sound_port=3D30128
fs_port=3D30129
"=20
new gr_port:  "30127"=20

new sound_port:  "30128"=20

new fs_port:  "30129"=20

starting nxproxy with:  "nxproxy -S =
nx/nx,options=3D/home/easyb/.x2go/S-easyb-90-1358245865_stDxterm_dp32/opti=
ons:90"=20

"
NXPROXY - Version 3.5.0

Copyright (C) 2001, 2010 NoMachine.
See=20
http://www.nomachine.com/
for more information.

Info: Proxy running in client mode with pid '3771'.
"=20

"Session: Starting session at 'Tue Jan 15 15:19:09 2013'.
Info: Connecting to remote host 'localhost:31127'.
Info: Connection to remote proxy 'localhost:31127' established.
"=20

"channel_write failed"  -  "Remote channel is closed"=20

"Error: The remote NX proxy closed the connection.
Error: Failure negotiating the session in stage '7'.
Error: Wrong version or invalid session authentication cookie.
Session: Terminating session at 'Tue Jan 15 15:19:09 2013'.
"=20

"Session: Session terminated at 'Tue Jan 15 15:19:09 2013'.
"=20

deleting proxy=20

nxproxy not running=20

proxy deleted=20

checking exit status=20
check command message=20

"channel_open_session failed" :  "Received SSH_MSG_DISCONNECT: =
33554432:Received ieof for nonexistent channel 0."


Cheers,
Ezra.

--Apple-Mail=_B6C401CD-ECA7-4262-9780-E11C020A9830
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space; =
">Package: x2goclient<div><br></div><div>Since commit =
3335fca16afaa0792207228115e31630894dee71<br><br>(X2Go resume session =
slot: double click on a selected session is supposed to resume that =
session. To make this feature functional for running sessions the =
session has to be suspended first.)<br><br>resuming a "running" session =
(by double clicking it) is no longer possible unless you press suspend =
first. On Linux I get following error:<br><br>"channel_open_session =
failed" : &nbsp;"Received SSH_MSG_DISCONNECT: 33554432:Received ieof for =
nonexistent channel 0."&nbsp;<br><br>I am used to closing the client =
without explicitly suspending the session. This leaves the session =
marked as "running". When I start up the client again I want to be able =
to resume the session with the least effort as possible. In my opinion =
the right way to achieve this behavior would be to suspend the session =
when the client quits.<br><br>In my opinion simply restoring the =
behavior we had prior to 3335fc... would be wrong. Because when trying =
to resume a "running" session the "resume" button in the session dialog =
dialog would not be active, but resuming by double clicking still =
possible, which I find misleading.<br><br>Here the complete transcript =
of an attempt to resume a running session:<br><br>read &nbsp;1 =
&nbsp;sessions from config file&nbsp;<br>start new ssh connection to =
server: "<a href=3D"http://my.host.ch/">my.host.ch</a>" : "22" krb: =
&nbsp;false&nbsp;<br><br>ssh connection ok&nbsp;<br><br>continue normal =
x2go session&nbsp;<br><br>Agent output: =
"gr_port=3D30127<br>sound_port=3D30128<br>fs_port=3D30129<br>"&nbsp;<br>ne=
w gr_port: &nbsp;"30127"&nbsp;<br><br>new sound_port: =
&nbsp;"30128"&nbsp;<br><br>new fs_port: =
&nbsp;"30129"&nbsp;<br><br>starting nxproxy with: &nbsp;"nxproxy -S =
nx/nx,options=3D/home/easyb/.x2go/S-easyb-90-1358245865_stDxterm_dp32/opti=
ons:90"&nbsp;<br><br>"<br>NXPROXY - Version 3.5.0<br><br>Copyright (C) =
2001, 2010 NoMachine.<br>See&nbsp;<br><a =
href=3D"http://www.nomachine.com/">http://www.nomachine.com/</a><br>for =
more information.<br><br>Info: Proxy running in client mode with pid =
'3771'.<br>"&nbsp;<br><br>"Session: Starting session at 'Tue Jan 15 =
15:19:09 2013'.<br>Info: Connecting to remote host =
'localhost:31127'.<br>Info: Connection to remote proxy 'localhost:31127' =
established.<br>"&nbsp;<br><br>"channel_write failed" &nbsp;- =
&nbsp;"Remote channel is closed"&nbsp;<br><br>"Error: The remote NX =
proxy closed the connection.<br>Error: Failure negotiating the session =
in stage '7'.<br>Error: Wrong version or invalid session authentication =
cookie.<br>Session: Terminating session at 'Tue Jan 15 15:19:09 =
2013'.<br>"&nbsp;<br><br>"Session: Session terminated at 'Tue Jan 15 =
15:19:09 2013'.<br>"&nbsp;<br><br>deleting proxy&nbsp;<br><br>nxproxy =
not running&nbsp;<br><br>proxy deleted&nbsp;<br><br>checking exit =
status&nbsp;<br>check command message&nbsp;<br><br>"channel_open_session =
failed" : &nbsp;"Received SSH_MSG_DISCONNECT: 33554432:Received ieof for =
nonexistent channel =
0."<br><br><br>Cheers,<br>Ezra.<br></div></body></html>=

--Apple-Mail=_B6C401CD-ECA7-4262-9780-E11C020A9830--
