From unknown Thu Mar 28 12:29:00 2024 X-Loop: owner@bugs.x2go.org Subject: Bug#1478: pyhoca-cli failing to resume an existing session Reply-To: Chris Greenshields , 1478@bugs.x2go.org Resent-From: Chris Greenshields Resent-To: x2go-dev@lists.x2go.org Resent-CC: X2Go Developers X-Loop: owner@bugs.x2go.org Resent-Date: Tue, 23 Jun 2020 09:00:02 +0000 Resent-Message-ID: Resent-Sender: owner@bugs.x2go.org X-X2Go-PR-Message: report 1478 X-X2Go-PR-Package: pyhoca-cli X-X2Go-PR-Keywords: Received: via spool by submit@bugs.x2go.org id=B.159290263612263 (code B); Tue, 23 Jun 2020 09:00:02 +0000 Received: (at submit) by bugs.x2go.org; 23 Jun 2020 08:57:16 +0000 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 ; 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 To: submit@bugs.x2go.org User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?UTF-8?Q?Goj=C5=8D?=) 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 --server -R 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 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