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


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

Received: (at 1159) by bugs.x2go.org; 15 Jan 2024 21:05:01 +0000
From mike.gabriel@das-netzwerkteam.de  Mon Jan 15 22:04:30 2024
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,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE,
	URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2
Received: from fregna.das-netzwerkteam.de (fregna.das-netzwerkteam.de [148.251.53.130])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id 482805DAD6
	for <1159@bugs.x2go.org>; Mon, 15 Jan 2024 22:04:30 +0100 (CET)
Received: from grimnir.das-netzwerkteam.de (grimnir.das-netzwerkteam.de [148.251.201.105])
	by fregna.das-netzwerkteam.de (Postfix) with ESMTPS id 37B1660153;
	Mon, 15 Jan 2024 21:04:30 +0000 (UTC)
Received: from das-netzwerkteam.de (localhost [127.0.0.1])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id 15C51C059B;
	Mon, 15 Jan 2024 22:04:30 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=das-netzwerkteam.de;
	s=dkim; t=1705352670;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 in-reply-to:in-reply-to; bh=rtnu+ckdtPQmMBKeYO7pdPjkaEae9hP9Kl6K3dlFcVQ=;
	b=AWeiylYDsML/cj2ldN5AL066cXiT/xdOtnia9RBRg6JndUsqxi7y+YNgjhpV8WFkAJVfED
	X05hwYJhYtp4Oo5nWtrlYX9UJyHIi9deDCNDG++70a/QwfOJ4/aUQXkRrZbvWcTt20nacJ
	9S73Rv94fQ1zDIKI8z+Xv8GXEPRozTE+iSPN7XLX+bPFh4DUv4CwFN/aHuNtdwbpZGWnK+
	oGZwcIuJh4kRv6WfUSTQHpsQF4tOGNGVrszTdKw5gkYkUQLBDa1kjFyVTcseI+8VZcdrPY
	hZVWuSrB6BHEfzvKqzsde+mOJ9E9yiJNWfUOXiVohTlzdWjTV2yYZvACWxNHA1bFI+kUpS
	ttPJg5OFVb3THIKKCflVVHaztbGJ13dCkS4C8vCH08K/VwzB50D7hjk6ZGAWZOmw+H/T2J
	+sxCC3vSrpBvxus5QF1UA18TlA26BXjs/0U66MDViQHhOnS+EXfLC0BBvlvbzJV2Clxwjd
	52uneIcbjiVfAzd8FoAbCsQaNb3brUcqVgTAVn2Mbznek72KfiNAUKKDwZWSUfF1gKEAsm
	4QI3kc641Cc+5/ELui8aDWG/m06HSozfwYHFheVXodjbs6bf2NxKVcHK7QfKzKEZhYco6R
	mMBGxomF4jzjS+Yfz8/fx0XD+DiXTi9/Unna2825kBtOyN2m6DWKc=
Received: from [153.92.39.241] ([153.92.39.241]) by mail.das-netzwerkteam.de
 (Horde Framework) with HTTPS; Mon, 15 Jan 2024 21:04:30 +0000
Date: Mon, 15 Jan 2024 21:04:30 +0000
Message-ID: <20240115210430.Horde.Q4ZJMwpX2dfJpLcL04qgLPT@mail.das-netzwerkteam.de>
From: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
To: Michael Ledin <m.ledin@appheads.ru>, 1159@bugs.x2go.org
Subject: Re: [X2Go-Dev] Bug#1159: PyHoca CLI: semaphore released too many
 times error
In-Reply-To: <b10cb92b-b134-a102-bcb0-f704a31f5a38@appheads.ru>
User-Agent: Horde Application Framework 5
Accept-Language: de,en
Organization: DAS-NETZWERKTEAM
X-Originating-IP: 153.92.39.241
X-Remote-Browser: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML,
 like Gecko) Chrome/120.0.0.0 Safari/537.36
Content-Type: multipart/signed; boundary="=_C7mlCvb-TJy7PSugtaRYF9T";
 protocol="application/pgp-signature"; micalg=pgp-sha512
MIME-Version: 1.0
[Message part 1 (text/plain, inline)]
Control: close -1

Hi Michael,

On  Do 16 Mär 2017 20:06:44 CET, Michael Ledin wrote:

> 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.

Unfortunately, I know too little about what version of gevent and so  
on is in ArchLinux. Sorry for not having responded to this any earlier.

On recent Debian I haven't noticed such an issue, but I know from the  
past that we had such an issue.

I will close this issue now in the process of migrating of X2Go BTS to  
X2Go GitLab's isssue tracker.

light+love
Mike

-- 

DAS-NETZWERKTEAM
c\o Technik- und Ökologiezentrum Eckernförde
Mike Gabriel, Marienthaler Str. 17, 24340 Eckernförde
mobile: +49 (1520) 1976 148
landline: +49 (4351) 850 8940

GnuPG Fingerprint: 9BFB AEE8 6C0A A5FF BF22  0782 9AF4 6B30 2577 1B31
mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de

[Message part 2 (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


X2Go Developers <owner@bugs.x2go.org>. Last modified: Sat May 4 18:54:39 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.