Hi all,
I have a problem with an newly installed pyhoca-gui
while I can connect from an debian-wheezy with pyhoca-gui 0.4.0.9 without problems, an newly installed pyhoca-gui at another computer with version 0.5.0.2 pyhoca-gui freezes at the moment when it tries to establish the ssh connection.
I confirm exactly the same behavior on debian-wheezy when running pyhoca-cli.
While on pyhoca-cli 0.4.0.2-1 (pyhoca-x2go 0.4.0.9-1) everything works without problems, on pyhoca-cli 0.5.0.1-1 (python-x2go 0.5.0.1-1) connection freezes with exactly the same debug...
Best regards
Pavel
Hi,
On Di 28 Okt 2014 15:28:53 CET, hanak wrote:
Hi all,
I have a problem with an newly installed pyhoca-gui
while I can connect from an debian-wheezy with pyhoca-gui 0.4.0.9 without problems, an newly installed pyhoca-gui at another computer with version 0.5.0.2 pyhoca-gui freezes at the moment when it tries to establish the ssh connection.
I confirm exactly the same behavior on debian-wheezy when running pyhoca-cli.
While on pyhoca-cli 0.4.0.2-1 (pyhoca-x2go 0.4.0.9-1) everything works without problems, on pyhoca-cli 0.5.0.1-1 (python-x2go 0.5.0.1-1) connection freezes with exactly the same debug...
Best regards
Pavel
can anyone of you send me an obfuscated ~/.x2goclient/sessions file?
Plus: what openSSH server version is installed on the X2Go Server?
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.xf...
"MG" == Mike Gabriel <mike.gabriel@das-netzwerkteam.de> writes:
MG> Hi,
MG> On Di 28 Okt 2014 15:28:53 CET, hanak wrote:
>>> Hi all,
>>>
>>> I have a problem with an newly installed pyhoca-gui
>>>
>>> while I can connect from an debian-wheezy with pyhoca-gui
>>> 0.4.0.9 without problems, an newly installed pyhoca-gui at
>>> another computer with version 0.5.0.2 pyhoca-gui freezes at the
>>> moment when it tries to establish the ssh connection.
>>
>> I confirm exactly the same behavior on debian-wheezy when running
>> pyhoca-cli.
>>
>> While on pyhoca-cli 0.4.0.2-1 (pyhoca-x2go 0.4.0.9-1) everything
>> works without problems, on pyhoca-cli 0.5.0.1-1 (python-x2go
>> 0.5.0.1-1) connection freezes with exactly the same debug...
>>
>> Best regards
>>
>> Pavel
MG> can anyone of you send me an obfuscated ~/.x2goclient/sessions
MG> file?
Actually I tried it with an empty ~/.x2goclient/sessions file because I used only parameters given on command line, like this:
pyhoca-cli --server testserver -u demouser -c xterm --libdebug -d
and the output was:
Xlib.protocol.request.QueryExtension pyhoca-cli[11421] NOTICE: preparing requested X2Go session pyhoca-cli[11421] (PyHocaCLI) NOTICE: preparing requested X2Go session pyhoca-cli[11421] (x2goinifiles-pylib) INFO: proposed config files are ['/home/demouser/.x2goclient/sessions'] pyhoca-cli[11421] (x2goinifiles-pylib) INFO: config files found: ['/home/demouser/.x2goclient/sessions'] pyhoca-cli[11421] (x2goinifiles-pylib) INFO: proposed config files are ['/home/demouser/.x2goclient/settings'] pyhoca-cli[11421] (x2goinifiles-pylib) INFO: config files found: ['/home/demouser/.x2goclient/settings'] pyhoca-cli[11421] (x2goinifiles-pylib) INFO: proposed config files are ['/home/demouser/.x2goclient/printing'] pyhoca-cli[11421] (x2goinifiles-pylib) INFO: config files found: ['/home/demouser/.x2goclient/printing'] pyhoca-cli[11421] (x2gosession-pylib) DEBUG: X2Go control session parameters for profile Pyhoca-Client_Session: pyhoca-cli[11421] (x2gosession-pylib) DEBUG: username: demo pyhoca-cli[11421] (x2gosession-pylib) DEBUG: key_filename: /home/demouser/.ssh/id_rsa pyhoca-cli[11421] (x2gosession-pylib) DEBUG: unique_hostkey_aliases: False pyhoca-cli[11421] (x2gosession-pylib) DEBUG: look_for_keys: True pyhoca-cli[11421] (x2gosession-pylib) DEBUG: allow_agent: True pyhoca-cli[11421] (x2gosession-pylib) DEBUG: X2Go terminal session parameters for profile Pyhoca-Client_Session: pyhoca-cli[11421] (x2gosession-pylib) DEBUG: client_encoding: UTF-8 pyhoca-cli[11421] (x2gosession-pylib) DEBUG: set_session_title: False pyhoca-cli[11421] (x2gosession-pylib) DEBUG: snd_system: pulse pyhoca-cli[11421] (x2gosession-pylib) DEBUG: session_type: application pyhoca-cli[11421] (x2gosession-pylib) DEBUG: server_encoding: UTF-8 pyhoca-cli[11421] (x2gosession-pylib) DEBUG: snd_port: 4713 pyhoca-cli[11421] (x2gosession-pylib) DEBUG: rdp_server: pyhoca-cli[11421] (x2gosession-pylib) DEBUG: kbtype: pc105/us pyhoca-cli[11421] (x2gosession-pylib) DEBUG: applications: ['WWWBROWSER', 'MAILCLIENT', 'OFFICE', 'TERMINAL'] pyhoca-cli[11421] (x2gosession-pylib) DEBUG: published_applications: False pyhoca-cli[11421] (x2gosession-pylib) DEBUG: link: adsl pyhoca-cli[11421] (x2gosession-pylib) DEBUG: xdmcp_server: localhost pyhoca-cli[11421] (x2gosession-pylib) DEBUG: kbvariant: null pyhoca-cli[11421] (x2gosession-pylib) DEBUG: geometry: 800x600 pyhoca-cli[11421] (x2gosession-pylib) DEBUG: rdp_options: -u X2GO_USER -p X2GO_PASSWORD pyhoca-cli[11421] (x2gosession-pylib) DEBUG: cmd: xterm pyhoca-cli[11421] (x2gosession-pylib) DEBUG: convert_encoding: False pyhoca-cli[11421] (x2gosession-pylib) DEBUG: clipboard: both pyhoca-cli[11421] (x2gosession-pylib) DEBUG: kblayout: us pyhoca-cli[11421] (x2gosession-pylib) DEBUG: session_title: pyhoca-cli[11421] (x2gosession-pylib) DEBUG: pack: 16m-jpeg-9 pyhoca-cli[11421] (x2gosession-pylib) DEBUG: X2Go sshproxy parameters for profile Pyhoca-Client_Session: pyhoca-cli[11421] (x2gosession-pylib) DEBUG: sshproxy_host: proxyhost.mydomain pyhoca-cli[11421] (x2gosession-pylib) DEBUG: sshproxy_port: 22 pyhoca-cli[11421] (x2gosession-pylib) DEBUG: sshproxy_look_for_keys: True pyhoca-cli[11421] (x2gosession-pylib) DEBUG: sshproxy_allow_agent: True pyhoca-cli[11421] (x2gosession-pylib) DEBUG: sshproxy_key_filename: pyhoca-cli[11421] (x2gosession-pylib) DEBUG: sshproxy_user: pyhoca-cli[11421] (x2gosession-pylib) DEBUG: initializing X2GoControlSession pyhoca-cli[11421] (x2gosessregistry-pylib) NOTICE: registering X2Go session Pyhoca-Client_Session... pyhoca-cli[11421] (x2gosessregistry-pylib) DEBUG: registering X2Go session with UUID 95df0fac-5ee4-11e4-8bae-d4bed9957790 pyhoca-cli[11421] (x2goclient-pylib) NOTICE: initializing X2Go session... pyhoca-cli[11421] (x2gocontrolsession-pylib) NOTICE: connecting to [testserver]:22 pyhoca-cli[11421] (x2gocontrolsession-pylib) DEBUG: trying SSH key discovery or agent authentication with server
Here there was a freeze...
MG> Plus: what openSSH server version is installed on the X2Go Server?
openssh-server 1:6.0p1-4+deb7u2
The problem occurs only when running the client based on python-x2go. There is no problem using x2goclient binary.
Pavel
Hi Pavel, hi Jan,
On Di 28 Okt 2014 16:00:34 CET, Mike Gabriel wrote:
Hi,
On Di 28 Okt 2014 15:28:53 CET, hanak wrote:
Hi all,
I have a problem with an newly installed pyhoca-gui
while I can connect from an debian-wheezy with pyhoca-gui 0.4.0.9 without problems, an newly installed pyhoca-gui at another computer with version 0.5.0.2 pyhoca-gui freezes at the moment when it tries to establish the ssh connection.
I confirm exactly the same behavior on debian-wheezy when running pyhoca-cli.
While on pyhoca-cli 0.4.0.2-1 (pyhoca-x2go 0.4.0.9-1) everything works without problems, on pyhoca-cli 0.5.0.1-1 (python-x2go 0.5.0.1-1) connection freezes with exactly the same debug...
Best regards
Pavel
can anyone of you send me an obfuscated ~/.x2goclient/sessions file?
Plus: what openSSH server version is installed on the X2Go Server?
Mike
I am so sorry, guys, but I cannot reproduce the issue here. As I said
earlier. I observed those hangs once or twice, but wasn't able to
reproduce them.
I tested pyhoca-gui on jessie and on wheezy (+ some backports) and
things worked out fine.
I connected to servers of several Debian and Ubuntu versions.
A bit clueless, sorry...
Mike
PS: you could try to dive in the python code of python-x2go, though.
The connection is established somewhere around [1] (see [2] for the
full API docs). You could try to add extra debugging output there, so
that you can narrow down where the connection actually really freezes.
[1]
http://code.x2go.org/doc/python-x2go/x2go.backends.control.plain-pysrc.html#...
[2] http://code.x2go.org/doc/python-x2go/
--
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.xf...
"MG" == Mike Gabriel <mike.gabriel@das-netzwerkteam.de> writes:
Hi Mike.
MG> I am so sorry, guys, but I cannot reproduce the issue here. As I
MG> said earlier. I observed those hangs once or twice, but wasn't
MG> able to reproduce them.
MG> I tested pyhoca-gui on jessie and on wheezy (+ some backports)
MG> and things worked out fine.
MG> I connected to servers of several Debian and Ubuntu versions.
MG> A bit clueless, sorry...
MG> Mike
PS> you could try to dive in the python code of python-x2go, though.
PS> The connection is established
MG> somewhere around [1] (see [2] for the full API docs). You could
MG> try to add extra debugging output there, so that you can narrow
MG> down where the connection actually really freezes.
Tried to trace it with pdb. There is a neverending cycling in paramiko code here:
/usr/lib/python2.7/dist-packages/paramiko/transport.py(402)start_client() -> event.wait(0.1) (Pdb) list 397 398 # synchronous, wait for a result 399 self.completion_event = event = threading.Event() 400 self.start() 401 while True: 402 -> event.wait(0.1) 403 if not self.active: 404 e = self.get_exception() 405 if e is not None: 406 raise e 407 raise SSHException('Negotiation failed.')
So I will try to find out, why there is no such problem with python-x2go 0.4.0.9-1 although paramiko version is the same...
Pavel
MG> [1]
http> //code.x2go.org/doc/python-x2go/x2go.backends.control.plain-pysrc.html#X2GoControlSession.connect
MG> [2] http://code.x2go.org/doc/python-x2go/
Hi Mike,
The problem is in the version of python-gevent package which was still from stable version (0.13.6-1+nmu3). With testing version (1.0.1-1) everything works as expected.
So it would be useful to change Depends field in debian/control accordingly...
Pavel
Am 29.10.2014 17:13, schrieb Pavel Hanák:
Hi Mike,
The problem is in the version of python-gevent package which was still from stable version (0.13.6-1+nmu3). With testing version (1.0.1-1) everything works as expected.
So it would be useful to change Depends field in debian/control accordingly...
Pavel
x2go-user mailing list x2go-user@lists.x2go.org http://lists.x2go.org/listinfo/x2go-user
Hi Mike,
thanks for investigations.
You use the heuler section?
I tried to debug it today too (but without real python knowledge ;-( ) - and I triggered it down to this location in
paramiko/packet.py
def readline(self, timeout):
print "packetizer debug 1 *********"
"""
Read a line from the socket. We assume no data is pending after the
line, so it's okay to attempt large reads.
"""
buf = self.__remainder
while not linefeed_byte in buf:
buf += self._read_timeout(timeout)
n = buf.index(linefeed_byte)
self.__remainder = buf[n + 1:]
buf = buf[:n]
if (len(buf) > 0) and (buf[-1] == cr_byte_value):
buf = buf[:-1]
return u(buf)
it hangs after the line 281
buf += self._read_timeout(timeout)
no idea why and if this is related to your findings.
Installed the python-gevent from heuer and everythin works.
Thanks. Jan
On 10/29/2014 10:13 AM, Pavel Hanák wrote:
Hi Mike,
The problem is in the version of python-gevent package which was still from stable version (0.13.6-1+nmu3). With testing version (1.0.1-1) everything works as expected.
FWIW - Connections work fine for me on Fedora 20 with python-gevent 0.13.8 and libevent 2.0.21.
-- Orion Poplawski Technical Manager 303-415-9701 x222 NWRA, Boulder/CoRA Office FAX: 303-415-9702 3380 Mitchell Lane orion@nwra.com Boulder, CO 80301 http://www.nwra.com
Package: python-x2go Sevrity: important
Hi Pavel, Jan,
TL;DR; for the bug tracker... Python X2Go 0.5.0.x freezes during
X2GoControlSession.connect() when used with gevent 0.13.6. With Python
0.4.0.x no such freeze could be observed.
On Mi 29 Okt 2014 10:24:53 CET, Mike Gabriel wrote:
Hi Pavel, hi Jan,
On Di 28 Okt 2014 16:00:34 CET, Mike Gabriel wrote:
Hi,
On Di 28 Okt 2014 15:28:53 CET, hanak wrote:
Hi all,
I have a problem with an newly installed pyhoca-gui
while I can connect from an debian-wheezy with pyhoca-gui 0.4.0.9 without problems, an newly installed pyhoca-gui at another computer with version 0.5.0.2 pyhoca-gui freezes at the moment when it tries to establish the ssh connection.
I confirm exactly the same behavior on debian-wheezy when running pyhoca-cli.
While on pyhoca-cli 0.4.0.2-1 (pyhoca-x2go 0.4.0.9-1) everything works without problems, on pyhoca-cli 0.5.0.1-1 (python-x2go 0.5.0.1-1) connection freezes with exactly the same debug...
Best regards
Pavel
can anyone of you send me an obfuscated ~/.x2goclient/sessions file?
Plus: what openSSH server version is installed on the X2Go Server?
Mike
I am so sorry, guys, but I cannot reproduce the issue here. As I
said earlier. I observed those hangs once or twice, but wasn't able
to reproduce them.I tested pyhoca-gui on jessie and on wheezy (+ some backports) and
things worked out fine.I connected to servers of several Debian and Ubuntu versions.
A bit clueless, sorry...
Mike
I have a system that exhibits the same behaviour, as described by you!
A Ubuntu precise system with python-gevent (I obviously did not
provide a newer gevent version for precise in our X2Go PPA on
Launchpad).
I will join in to get this narrowed down.
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.xf...
Control: close -1
Hi all,
On Do 30 Okt 2014 15:41:58 CET, Mike Gabriel wrote:
Package: python-x2go Sevrity: important
Hi Pavel, Jan,
TL;DR; for the bug tracker... Python X2Go 0.5.0.x freezes during
X2GoControlSession.connect() when used with gevent 0.13.6. With
Python 0.4.0.x no such freeze could be observed.
On packages.x2go.org and Launchpad I have now provided a more recent
version of python-gevent (1.0.1) and python-greenlet (0.4.5). The
newer versions had to be provided for Debian wheezy and Ubuntu
precise. All more recent versions of Debian/Ubuntu already contain a
version of python-gevent that should work fine.
On my Debian wheezy systems, this works well. For Debian/Ubuntu based
distros the issue can be considered fixed.
If the issue occurs on other distros, please reopen this bug and give
feedback.
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.xf...