X2Go Bug report logs - #1445
pyhoca-cli fails to connect to suspended x2go 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: Randy Goldenberg <randy.goldenberg@gmail.com>

Date: Fri, 6 Mar 2020 21:55:01 UTC

Severity: normal

Tags: pending

Found in version 0.6.1.2

Fixed in version 0.6.1.3

Done: X2Go Release Manager X2Go Release Manager <git-admin@x2go.org>

Bug is archived. No further changes may be made.

Full log


🔗 View this message in rfc822 format

X-Loop: owner@bugs.x2go.org
Subject: Bug#1445: pyhoca-cli fails to connect to suspended x2go session
Reply-To: Randy Goldenberg <randy.goldenberg@gmail.com>, 1445@bugs.x2go.org
Resent-From: Randy Goldenberg <randy.goldenberg@gmail.com>
Resent-To: x2go-dev@lists.x2go.org
Resent-CC: X2Go Developers <x2go-dev@lists.x2go.org>
X-Loop: owner@bugs.x2go.org
Resent-Date: Fri, 06 Mar 2020 21:55:01 +0000
Resent-Message-ID: <handler.1445.B.158353167915576@bugs.x2go.org>
Resent-Sender: owner@bugs.x2go.org
X-X2Go-PR-Message: report 1445
X-X2Go-PR-Package: pyhoca-cli
X-X2Go-PR-Keywords: 
Received: via spool by submit@bugs.x2go.org id=B.158353167915576
          (code B); Fri, 06 Mar 2020 21:55:01 +0000
Received: (at submit) by bugs.x2go.org; 6 Mar 2020 21:54:39 +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,FREEMAIL_FROM,SPF_HELO_NONE,URIBL_BLOCKED
	autolearn=ham autolearn_force=no version=3.4.2
Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id 1E9125DAC1
	for <submit@bugs.x2go.org>; Fri,  6 Mar 2020 22:54:37 +0100 (CET)
Received: by mail-pf1-x42e.google.com with SMTP id g21so1747089pfb.5
        for <submit@bugs.x2go.org>; Fri, 06 Mar 2020 13:54:37 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=date:from:to:subject:message-id:mime-version:content-disposition
         :user-agent;
        bh=zy3wJxP7YJveNNSf6nPv4mjeYCP7B+qztRZ5/a6uRXQ=;
        b=egB+URT9oLGIqMuSPbWKvaensVV938xepEYBqM5461CAKhWLxzQVTX3/MgoAiq9vlx
         s9ZcQmclp95nZ777tpXJbDS1yb9TOFlTu9dXzZ1nTIC0wNEHjdgUM9LxLbaNj137Kv7a
         LAyG/s1bW6gZkwXCLo5OU0lg67KYKJr5lzLTM6GGiMjrL4ckt2xxE+r4frhpvmSZeKfI
         oOa1Hse4zIpnr/nEVGwE5Q+j2qaSMdjrlYXWoViNIMlhwoWgioViI9XF5STlQBZSrzYy
         QtT0si+xbWI33TvAClctQPLoxgAm6s8O8R6als4AdFJz+zFaitE02tLjjcC1P4bQ5DZE
         Ob3w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:date:from:to:subject:message-id:mime-version
         :content-disposition:user-agent;
        bh=zy3wJxP7YJveNNSf6nPv4mjeYCP7B+qztRZ5/a6uRXQ=;
        b=ZmG3CsNAwl6ynkZt+JMWN/RH30D0jRgDCaIm6yFE6YoUG2QmYCCOke0Klw4ezV9M/w
         /m0QhXbqd71MWD7eQGeNvNI/5QxJgPatkUF7wFmZpn2YYupMEaBvSfNTDNPEHytEBzVd
         PAzg9Gr1AEFemdYAil9U+1wrfWdaAYNJYB6NbIRDpuGr9FF3yvvhc6hCQ3azgzdhT4Um
         fBiLjj9gfHJ7ZyrsUXivLXXzqgEgJYmWKQKDUmHp/nrOVVTKsoiwW5HwGh3kwOu0JMnS
         50Om/lEuAS/OJTyuYoWor0xQdeunpvR6yGcZGZm2+LpDOAT5BIUx0cMesdagXD1MkhiJ
         2XNg==
X-Gm-Message-State: ANhLgQ2+RuSrklL76jHWEghHDVuG3LoRZR4T7Z1qScRGeAmsv0hDbX6q
	bwJOcQVhHsAV+4mNWQR6bAQeIy/I
X-Google-Smtp-Source: ADFU+vsJK3iaHIOZfU56f5e+o7CinQhHbePLj2iAvoXe/iSqxP5QP7e5IBKf/oiAwBOa983UC5J+zw==
X-Received: by 2002:aa7:858a:: with SMTP id w10mr5646369pfn.210.1583531674430;
        Fri, 06 Mar 2020 13:54:34 -0800 (PST)
Received: from rg1.lan ([69.172.163.82])
        by smtp.gmail.com with ESMTPSA id h3sm36788404pfo.102.2020.03.06.13.54.33
        for <submit@bugs.x2go.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Fri, 06 Mar 2020 13:54:33 -0800 (PST)
Date: Fri, 6 Mar 2020 13:54:31 -0800
From: Randy Goldenberg <randy.goldenberg@gmail.com>
To: submit@bugs.x2go.org
Message-ID: <20200306215431.ama4sjaxc5hzkm6t@rg1.lan>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="sezhdgbdazlcqlyo"
Content-Disposition: inline
User-Agent: NeoMutt/20180323-90-193612
[Message part 1 (text/plain, inline)]
Package: pyhoca-cli
Version: 0.6.1.2
Tag: patch

pyhoca-cli fails to connect to suspended x2g0 sessions.

$ pyhoca-cli --server my.x2go.server -t desktop -c openbox-session -g maximize 
-R NEWEST

pyhoca-cli[13131] NOTICE: preparing requested X2Go session
pyhoca-cli[13131] (PyHocaCLI) NOTICE: preparing requested X2Go session
pyhoca-cli[13131] (x2gosessregistry-pylib) NOTICE: registering X2Go session 
Pyhoca-Client_Session...
pyhoca-cli[13131] (x2goclient-pylib) NOTICE: initializing X2Go session...
pyhoca-cli[13131] (x2gocontrolsession-pylib) NOTICE: connecting to 
[my.x2go.server]:22
/usr/lib/python3/dist-packages/Crypto/Cipher/blockalgo.py:141: FutureWarning: 
CTR mode needs counter parameter, not IV
self._cipher = factory.new(key, *args, **kwargs)
pyhoca-cli[13131] (PyHocaCLI) NOTICE: authentication has been successful
pyhoca-cli[13131] (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

client OS: Ubuntu 16.04.6 LTS

server OS: Ubuntu 16.04.6 LTS

server's version of the x2goserver package:
x2goserver: 4.1.0.4
x2goserver-common: 4.1.0.4
x2goserver-desktopsharing: 4.1.0.3
x2goserver-extensions: 4.1.0.4
x2goserver-fmbindings: 4.1.0.4
x2goserver-printing: 4.1.0.4
x2goserver-xsession: 4.1.0.4

Patch attached.



----- End forwarded message -----
[front.py_resume_session.diff (text/x-diff, attachment)]

Send a report that this bug log contains spam.


X2Go Developers <owner@bugs.x2go.org>. Last modified: Thu Nov 21 19:35:17 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.