X2Go Bug report logs - #1478
pyhoca-cli failing to resume an existing session

version graph

Package: pyhoca-cli; Maintainer for pyhoca-cli is X2Go Developers <x2go-dev@lists.x2go.org>; Source for pyhoca-cli is src:pyhoca-cli.

Reported by: Chris Greenshields <c.greenshields@cfd.direct>

Date: Tue, 23 Jun 2020 09:00:02 UTC

Severity: normal

Found in version 0.6.1.2

Fixed in version 0.6.1.3

Done: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit@bugs.x2go.org (full text, mbox, reply):

Received: (at submit) by bugs.x2go.org; 23 Jun 2020 08:57:16 +0000
From 01020172e0653c60-15ac0cd9-2ecb-492f-89e2-e4c43d869113-000000@eu-west-1.amazonses.com  Tue Jun 23 10:57:12 2020
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,URIBL_BLOCKED
	autolearn=ham autolearn_force=no version=3.4.2
Received: from a4-17.smtp-out.eu-west-1.amazonses.com (a4-17.smtp-out.eu-west-1.amazonses.com [54.240.4.17])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id 73D755DAEB
	for <submit@bugs.x2go.org>; Tue, 23 Jun 2020 10:57:11 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple;
	s=d5q5arpktnxx3hbrjvihnbtmgnouv5oo; d=cfd.direct; t=1592902630;
	h=Date:Message-ID:From:To:Subject:MIME-Version:Content-Type;
	bh=nYR8thhD6o0ZEt6A7/iz3ITKdh/8qCGnLwppIw/4L0c=;
	b=WXdevmoroLGW5UEHSVSdj/zpo5+Ot7yNRPX6RJb9AanC1QZTIgeLQ6Djw4qo8l0V
	D28qdBuh2J4Hfn582gPoKTdL8bo1lBk+f90AVpB/yIjEDEL/XNQkSh0IfL3t19awEYo
	0+ks6gVvNWeKDs/4O0F2IZfnH/gVflKnJ9oJ7c0k=
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple;
	s=shh3fegwg5fppqsuzphvschd53n6ihuv; d=amazonses.com; t=1592902630;
	h=Date:Message-ID:From:To:Subject:MIME-Version:Content-Type:Feedback-ID;
	bh=nYR8thhD6o0ZEt6A7/iz3ITKdh/8qCGnLwppIw/4L0c=;
	b=uVbaBWwAcqAVBySrbs7lZe2LsS18ATshhlZJw9Hfewg95LeqehUvLZ/7U4izZn6p
	SZvxlwJRtW2HLogYcjjXGOtsVVdGHOPx1AAYv5Lcvvxeysw/AaMM68DmB8LOu/CgZLw
	aaFIFcJlca5ZrM3EuI5L0rwKepU0ef+luuxadNSA=
Date: Tue, 23 Jun 2020 08:57:10 +0000
Message-ID: <01020172e0653c60-15ac0cd9-2ecb-492f-89e2-e4c43d869113-000000@eu-west-1.amazonses.com>
From: Chris Greenshields <c.greenshields@cfd.direct>
To: submit@bugs.x2go.org
Subject: pyhoca-cli failing to resume an existing session
User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue)
 FLIM/1.14.9 (Gojō) APEL/10.8 EasyPG/1.0.0 Emacs/26
 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)
Organization: CFD Direct
X-Attribution: CJG
MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue")
Content-Type: text/plain; charset=US-ASCII
X-SES-Outgoing: 2020.06.23-54.240.4.17
Feedback-ID: 1.eu-west-1.4IOGnkRjoWAAnWesROIqhcLoPQhUzQ3SWT+cPUoQiB0=:AmazonSES
Package: pyhoca-cli
Version: 0.6.1.2

With x2goserver 4.1.0.0-3, pyhoca-cli fails to resume an existing session.

For example with:
pyhoca-cli --username <user> --server <ip> -R <session ID>

Error message is:

pyhoca-cli[1269418] NOTICE: preparing requested X2Go session
pyhoca-cli[1269418] (PyHocaCLI) NOTICE: preparing requested X2Go session
pyhoca-cli[1269418] (x2gosessregistry-pylib) NOTICE: registering X2Go session Pyhoca-Client_Session...
pyhoca-cli[1269418] (x2goclient-pylib) NOTICE: initializing X2Go session...
pyhoca-cli[1269418] (x2gocontrolsession-pylib) NOTICE: connecting to [3.127.73.135]:22
pyhoca-cli[1269418] (PyHocaCLI) NOTICE: authentication has been successful
pyhoca-cli[1269418] (PyHocaCLI) NOTICE: give the X2Go session some time to come up...

Traceback (most recent call last):
  File "/usr/bin/pyhoca-cli", line 455, in <module>
    thisPyHocaCLI.MainLoop()
  File "/usr/lib/python3/dist-packages/pyhoca/cli/frontend.py", line 702, in MainLoop
    self.resume_session(self.x2go_session_hash)
  File "/usr/lib/python3/dist-packages/pyhoca/cli/frontend.py", line 229, in resume_session
    if available_sessions is None:
UnboundLocalError: local variable 'available_sessions' referenced before assignment

An upgrade to x2goserver 4.1.0.3 does not fix the problem, since pyhoca-cli 0.6.1.2 fails with
"pyhoca-cli: error: the remote server does not have the X2Go Server software installed"
as in https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1357


Send a report that this bug log contains spam.


X2Go Developers <owner@bugs.x2go.org>. Last modified: Thu Nov 21 20:36:57 2024; Machine Name: ymir.das-netzwerkteam.de

X2Go Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.