Subject: Resume is broken under certain conditions
From: Dick Kniep <[email-masked]>
To: [email-masked] <[email-masked]>
Date: Tue, 11 Sep 2012 12:29:58 +0200

Package: python-x2go

Severity: normal

Version: 0.2.0.9

 
Resume breaks pyhoca. When I try to resume a session, it briefly shows the session that is to be resumed and after that, it crashes. After that it is no longer possible to start a session. Maybe the session is not cleaned up properly / completely. 

pyhoca-gui[5356] (x2gocontrolsession-pylib) DEBUG: executing command on X2Go server ,,lindix'': sh -c "echo"

pyhoca-gui[5356] (x2gocontrolsession-pylib) INFO: executing command on X2Go server ,,lindix'': sh -c "export HOSTNAME && x2golistsessions"

pyhoca-gui[5356] (x2gocontrolsession-pylib) DEBUG: executing command on X2Go server ,,lindix'': sh -c "echo"

pyhoca-gui[5356] (x2gocontrolsession-pylib) INFO: executing command on X2Go server ,,lindix'': sh -c "x2goresume-session dick-50-1347267367_stRTERMINAL_dp24 800x600 adsl 16m-jpeg-9 null auto 1"

pyhoca-gui[5356] (x2goguardian-pylib) DEBUG: Entering X2Go Guardian client management loop...

pyhoca-gui[5356] (x2gocontrolsession-pylib) INFO: executing command on X2Go server ,,lindix'': sh -c "export HOSTNAME && x2golistsessions"

pyhoca-gui[5356] (x2gocontrolsession-pylib) INFO: executing command on X2Go server ,,lindix'': sh -c "export HOSTNAME && x2golistmounts dick-50-1347267367_stRTERMINAL_dp24"

pyhoca-gui[5356] (x2goproxy-pylib) INFO: starting local NX3 proxy...

pyhoca-gui[5356] (x2goproxy-pylib) DEBUG: NX3 Proxy mode is server, cookie=eb1245024e1afa192f8ff9d812aa0fc2, host=127.0.0.1, port=30001.

pyhoca-gui[5356] (x2goproxy-pylib) DEBUG: NX3 proxy writes session log to /home/dick/.x2go/S-dick-50-1347267367_stRTERMINAL_dp24/session.log.

pyhoca-gui[5356] (x2goproxy-pylib) DEBUG: forking threaded subprocess: /usr/bin/nxproxy -S nx/nx,retry=5,composite=1,connect=127.0.0.1,clipboard=1,cookie=eb1245024e1afa192f8ff9d812aa0fc2,port=30001,errors=/home/dick/.x2go/S-dick-50-1347267367_stRTERMINAL_dp24/session.log:50

pyhoca-gui[5356] (x2goproxy-pylib) DEBUG: waiting for proxy to come up: 0.4s x 1

Exception AttributeError: AttributeError("'_DummyThread' object has no attribute '_Thread__block'",) in <module 'threading' from '/usr/lib/python2.7/threading.pyc'> ignored

pyhoca-gui[5356] (x2gofwtunnel-pylib) INFO: connected!  Tunnel open ('127.0.0.1', 43667) -> ('127.0.0.1', 53422) -> ('127.0.0.1', 30001)

pyhoca-gui[5356] (x2goproxy-pylib) INFO: NX3 proxy is up and running.

pyhoca-gui[5356] (x2gocontrolsession-pylib) INFO: executing command on X2Go server ,,lindix'': sh -c "getent group fuse | cut -d":" -f4"

pyhoca-gui[5356] (x2gocontrolsession-pylib) DEBUG: remote fuse group: ['henk', 'sean', 'dick', 'demodemo', 'sylvie', 'tes00001', 'dicktest', 'merkusrj', 'leffbehe', 'eb77001', 'coachtes', 'demomatc', 'schiphol', 'syl00001', 'demogebr', 'beterenp', 'busteren', 'hee00001', 'rosamvan', 'demobehe', 'testtest', 'test170m', 'bliekn1', 'donm1', 'beta171t', 'bet00001', 'bet00002', 'bet00003', 'nicooud', 'marketin', 'mike', 'demobasi', 'basiscoa', 'arjen', 'flexlm', 'bart', 'kpntest1', 'lindix', 'testjeme', 'hansvanb', 'annemiek', 'alca0001', 'nieuwadr', 'nieuwege', 'mavutoku', 'kuynders', 'bartlaba']

pyhoca-gui[5356] (x2gosftpserver-pylib) DEBUG: waiting for incoming sFTP channel on X2Go server port: [localhost]:30003

pyhoca-gui[5356] (x2goterminalsession-pylib) INFO: sharing local folder: /home/dick/.x2go/S-dick-50-1347267367_stRTERMINAL_dp24/spool

pyhoca-gui[5356] (x2gocontrolsession-pylib) DEBUG: sFTP-write: opening remote file /home/dick/.x2go/ssh/key.z22614 on host ('127.0.0.1', 53422) for writing

pyhoca-gui[5356] (x2gocontrolsession-pylib) WARN: sFTP-write: opening remote file /home/dick/.x2go/ssh/key.z22614 on host ('127.0.0.1', 53422) failed

Traceback (most recent call last):

  File "/usr/lib/python2.7/dist-packages/gevent/greenlet.py", line 390, in run

    result = self._run(*self.args, **self.kwargs)

  File "/usr/lib/python2.7/dist-packages/x2go/backends/terminal/_stdout.py", line 651, in start_printing

    self.share_local_folder(local_path=spool_dir, folder_type='spool')

  File "/usr/lib/python2.7/dist-packages/x2go/backends/terminal/_stdout.py", line 834, in share_local_folder

    self.control_session._x2go_sftp_write(_x2go_key_fname, _x2go_key_bundle)

  File "/usr/lib/python2.7/dist-packages/x2go/backends/control/_stdout.py", line 313, in _x2go_sftp_write

    raise x2go_exceptions.X2goControlSessionException('The SSH connection was dropped during an sFTP write action.')

X2goControlSessionException: The SSH connection was dropped during an sFTP write action.

<Greenlet at 0x2f1eaf0: <bound method X2goTerminalSessionSTDOUT.start_printing of <x2go.backends.terminal._stdout.X2goTerminalSessionSTDOUT object at 0x2f8e510>>> failed with X2goControlSessionException

pyhoca-gui[5356] (x2goguardian-pylib) DEBUG: Entering X2Go Guardian client management loop...

pyhoca-gui[5356] (x2gocontrolsession-pylib) INFO: control session seams to be dead, not executing command ,,sh -c "export HOSTNAME && x2golistsessions"'' on X2Go server lindix

pyhoca-gui[5356] (PyHoca-GUI) NOTICE: [lindix - beëindigen] X2Go Sessie wordt beëindigd dick-50-1347267367_stRTERMINAL_dp24

pyhoca-gui[5356] (x2goproxy-pylib) DEBUG: terminating proxy: <x2go.gevent_subprocess.Popen object at 0x2f8e910>

pyhoca-gui[5356] (x2goproxy-pylib) DEBUG: Shutting down X2Go proxy subprocess

pyhoca-gui[5356] (x2goproxy-pylib) DEBUG: Shutting down Paramiko/SSH forwarding tunnel

pyhoca-gui[5356] (x2gofwtunnel-pylib) INFO: Tunnel closed from ('127.0.0.1', 53422)

pyhoca-gui[5356] (x2goterminalsession-pylib) NOTICE: cleaning up session dick-50-1347267367_stRTERMINAL_dp24 after termination

pyhoca-gui[5356] (x2gosftpserver-pylib) DEBUG: paused thread: <X2goRevFwTunnelToSFTP(Thread-7, started daemon 49408888)>

pyhoca-gui[5356] (x2gosftpserver-pylib) DEBUG: stopping thread: <X2goRevFwTunnelToSFTP(Thread-7, started daemon 49408888)>

pyhoca-gui[5356] (x2gosftpserver-pylib) DEBUG: notifying thread of incoming channel: <X2goRevFwTunnelToSFTP(Thread-7, started daemon 49408888)>

pyhoca-gui[5356] (x2gosftpserver-pylib) DEBUG: closing down rev forwarding sFTP tunnel on remote end [localhost]:30003

pyhoca-gui[5356] (x2gosessregistry-pylib) DEBUG: Forgetting session UUID 7f23c82a-fbf9-11e1-9382-1c6f65375d09

pyhoca-gui[5356] (x2goguardian-pylib) DEBUG: Entering X2Go Guardian client management loop...

pyhoca-gui[5356] (x2gocontrolsession-pylib) INFO: control session seams to be dead, not executing command ,,sh -c "export HOSTNAME && x2golistsessions"'' on X2Go server lindix

pyhoca-gui[5356] (x2goguardian-pylib) DEBUG: Entering X2Go Guardian client management loop...

pyhoca-gui[5356] (x2gocontrolsession-pylib) INFO: control session seams to be dead, not executing command ,,sh -c "export HOSTNAME && x2golistsessions"'' on X2Go server lindix

pyhoca-gui[5356] (x2goguardian-pylib) DEBUG: Entering X2Go Guardian client management loop...

pyhoca-gui[5356] (x2gocontrolsession-pylib) INFO: control session seams to be dead, not executing command ,,sh -c "export HOSTNAME && x2golistsessions"'' on X2Go server lindix

pyhoca-gui[5356] (x2goguardian-pylib) DEBUG: Entering X2Go Guardian client management loop...

pyhoca-gui[5356] (x2gocontrolsession-pylib) INFO: control session seams to be dead, not executing command ,,sh -c "export HOSTNAME && x2golistsessions"'' on X2Go server lindix

pyhoca-gui[5356] (x2goguardian-pylib) DEBUG: Entering X2Go Guardian client management loop...

pyhoca-gui[5356] (x2gocontrolsession-pylib) INFO: control session seams to be dead, not executing command ,,sh -c "export HOSTNAME && x2golistsessions"'' on X2Go server lindix

pyhoca-gui[5356] (x2goguardian-pylib) DEBUG: Entering X2Go Guardian client management loop...

pyhoca-gui[5356] (x2gocontrolsession-pylib) INFO: control session seams to be dead, not executing command ,,sh -c "export HOSTNAME && x2golistsessions"'' on X2Go server lindix

It briefly shows the session that is to be resumed and after that, it is not possible to start a new session

 
pyhoca-gui[5356] (x2gocontrolsession-pylib) INFO: control session seams to be dead, not executing command ,,sh -c "export HOSTNAME && x2golistsessions"'' on X2Go server lindix

pyhoca-gui[5356] (x2goguardian-pylib) DEBUG: Entering X2Go Guardian client management loop...

pyhoca-gui[5356] (x2gocontrolsession-pylib) INFO: control session seams to be dead, not executing command ,,sh -c "export HOSTNAME && x2golistsessions"'' on X2Go server lindix

pyhoca-gui[5356] (x2goclient-pylib) INFO: Cannot find a terminal session for profile ,,lindix'' that can be used to query folder sharing capabilities

pyhoca-gui[5356] (x2goguardian-pylib) DEBUG: Entering X2Go Guardian client management loop...

pyhoca-gui[5356] (x2gocontrolsession-pylib) INFO: control session seams to be dead, not executing command ,,sh -c "export HOSTNAME && x2golistsessions"'' on X2Go server lindix

pyhoca-gui[5356] (x2gosessregistry-pylib) NOTICE: using already initially-registered yet-unused session 790298cc-fbf9-11e1-9382-1c6f65375d09

pyhoca-gui[5356] (x2goclient-pylib) NOTICE: initializing X2Go session...

pyhoca-gui[5356] (x2gocontrolsession-pylib) DEBUG: control session seams to be dead, not executing command ,,sh -c "echo"'' on X2Go server lindix

pyhoca-gui[5356] (PyHoca-GUI) NOTICE: [lindix - Verbindingsfout (channel error)] De Verbinding met de server lindix werd onverwacht verbroken! Probeer om u opnieuw aan te melden...

pyhoca-gui[5356] (x2gocontrolsession-pylib) INFO: control session seams to be dead, not executing command ,,sh -c "export HOSTNAME && x2golistsessions"'' on X2Go server lindix

pyhoca-gui[5356] (x2gocontrolsession-pylib) DEBUG: control session seams to be dead, not executing command ,,sh -c "echo"'' on X2Go server lindix

pyhoca-gui[5356] (PyHoca-GUI) NOTICE: [lindix - Verbindingsfout (channel error)] De Verbinding met de server lindix werd onverwacht verbroken! Probeer om u opnieuw aan te melden...

pyhoca-gui[5356] (x2gocontrolsession-pylib) INFO: control session seams to be dead, not executing command ,,sh -c "x2gostartagent 800x600 adsl 16m-jpeg-9 unix-kde-depth_24 null auto 1 R TERMINAL"'' on X2Go server lindix

pyhoca-gui[5356] (PyHoca-GUI) NOTICE: [lindix - sessie fout] Opstarten van de sessie is mislukt

pyhoca-gui[5356] (x2goguardian-pylib) DEBUG: Entering X2Go Guardian client management loop...

pyhoca-gui[5356] (x2gocontrolsession-pylib) INFO: control session seams to be dead, not executing command ,,sh -c "export HOSTNAME && x2golistsessions"'' on X2Go server lindix

pyhoca-gui[5356] (x2goguardian-pylib) DEBUG: Entering X2Go Guardian client management loop...

pyhoca-gui[5356] (x2gocontrolsession-pylib) INFO: control session seams to be dead, not executing command ,,sh -c "export HOSTNAME && x2golistsessions"'' on X2Go server lindix

Met vriendelijke groet,
Dick Kniep
Lindix BV
tel. 036-5215580
mob. 06-50991858