X2Go Bug report logs - #1159
PyHoca CLI: semaphore released too many times error

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: Michael Ledin <m.ledin@appheads.ru>

Date: Thu, 16 Mar 2017 19:10:02 UTC

Severity: normal

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

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#1159: PyHoca CLI: semaphore released too many times error
Reply-To: Michael Ledin <m.ledin@appheads.ru>, 1159@bugs.x2go.org
Resent-From: Michael Ledin <m.ledin@appheads.ru>
Resent-To: x2go-dev@lists.x2go.org
Resent-CC: X2Go Developers <x2go-dev@lists.x2go.org>
X-Loop: owner@bugs.x2go.org
Resent-Date: Thu, 16 Mar 2017 19:10:02 +0000
Resent-Message-ID: <handler.1159.B.14896912503365@bugs.x2go.org>
Resent-Sender: owner@bugs.x2go.org
X-X2Go-PR-Message: report 1159
X-X2Go-PR-Package: pyhoca-cli
X-X2Go-PR-Keywords: 
Received: via spool by submit@bugs.x2go.org id=B.14896912503365
          (code B); Thu, 16 Mar 2017 19:10:02 +0000
Received: (at submit) by bugs.x2go.org; 16 Mar 2017 19:07:30 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00,SPF_HELO_PASS,
	URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.1
Received: from localhost (localhost [127.0.0.1])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTP id 835105DAD0
	for <submit@bugs.x2go.org>; Thu, 16 Mar 2017 20:07:28 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at ymir.das-netzwerkteam.de
Received: from ymir.das-netzwerkteam.de ([127.0.0.1])
	by localhost (ymir.das-netzwerkteam.de [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id St936Bo-DBeK for <submit@bugs.x2go.org>;
	Thu, 16 Mar 2017 20:07:21 +0100 (CET)
Received: from mail.appheads.ru (appheads.ru [188.166.77.242])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTP id 613E25DA4A
	for <submit@bugs.x2go.org>; Thu, 16 Mar 2017 20:07:21 +0100 (CET)
Received: from [192.168.1.126] (broadband-188-32-81-169.moscow.rt.ru [188.32.81.169])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by mail.appheads.ru (Postfix) with ESMTPSA id 0D4921DE4F2
	for <submit@bugs.x2go.org>; Thu, 16 Mar 2017 15:07:20 -0400 (EDT)
To: submit@bugs.x2go.org
From: Michael Ledin <m.ledin@appheads.ru>
Message-ID: <b10cb92b-b134-a102-bcb0-f704a31f5a38@appheads.ru>
Date: Thu, 16 Mar 2017 22:06:44 +0300
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
 Thunderbird/45.8.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Package: pyhoca-cli

Version: 0.5.0.2


I'm using Archlinux and installed pyhoca-cli package from AUR.

Previously I used x2goclient and created several profiles there. Also I 
tried to use pyhoca-gui but it has the same error (bug #1158).

I start x2go desktop session with:


pyhoca-cli -P 20170316113957420 -d


It starts successfully with log:

pyhoca-cli[12140] NOTICE: preparing requested X2Go session
pyhoca-cli[12140] (PyHocaCLI) NOTICE: preparing requested X2Go session
pyhoca-cli[12140] (x2gosessregistry-pylib) NOTICE: registering X2Go 
session AppHeads WAN...
pyhoca-cli[12140] (x2goclient-pylib) NOTICE: initializing X2Go session...
pyhoca-cli[12140] (x2gocontrolsession-pylib) NOTICE: connecting to 
[my.server.here]:22
pyhoca-cli[12140] (PyHocaCLI) NOTICE: give the X2Go session some time to 
come up...
pyhoca-cli[12140] (PyHocaCLI) INFO: X2Go session is now running, the 
X2Go client's profile name is: AppHeads WAN
pyhoca-cli[12140] (PyHocaCLI) INFO: X2Go session name is: 
appheads-50-1489690847_stDXFCE_dp24
pyhoca-cli[12140] (PyHocaCLI) NOTICE: Press CTRL+C to suspend the 
running session...


Then I press Ctrl+C and get an error:

^CKeyboardInterrupt
Thu Mar 16 22:01:04 2017
pyhoca-cli[12140] (PyHocaCLI) INFO: Suspending X2Go session 
appheads-50-1489690847_stDXFCE_dp24
Traceback (most recent call last):
  File "/usr/bin/pyhoca-cli", line 423, in <module>
    thisPyHocaCLI.MainLoop()
  File "/usr/lib/python2.7/site-packages/pyhoca/cli/frontend.py", line 
601, in MainLoop
    self._X2GoClient__suspend_session(self.x2go_session_hash)
  File "/usr/lib/python2.7/site-packages/x2go/client.py", line 1620, in 
suspend_session
    return self.session_registry(session_uuid).suspend(**sessionopts)
  File "/usr/lib/python2.7/site-packages/x2go/session.py", line 2303, 
in suspend
    self._lock.release()
  File "src/gevent/_semaphore.py", line 266, in 
gevent._semaphore.BoundedSemaphore.release 
(src/gevent/gevent._semaphore.c:5353)
  File "src/gevent/_semaphore.py", line 268, in 
gevent._semaphore.BoundedSemaphore.release 
(src/gevent/gevent._semaphore.c:5291)
thread.error: Semaphore released too many times


if then I'll try to resume the session (I get it name from "pyhoca-cli 
-P 20170316113957420 -L"):


pyhoca-cli -P 20170316113957420 -R appheads-50-1489690847_stDXFCE_dp24


then sometimes I get the same error as above.


--

Michael Ledin

Send a report that this bug log contains spam.


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