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

MIME-Version: 1.0
X-Mailer: MIME-tools 5.509 (Entity 5.509)
X-Loop: owner@bugs.x2go.org
From: owner@bugs.x2go.org (X2Go Bug Tracking System)
Subject: Bug#1159 closed by Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
 (Re: [X2Go-Dev] Bug#1159: PyHoca CLI: semaphore released too many times
 error)
Message-ID: <handler.1159.b1159.17053527019858.notifdone@bugs.x2go.org>
References: <20240115210430.Horde.Q4ZJMwpX2dfJpLcL04qgLPT@mail.das-netzwerkteam.de>
X-X2go-PR-Message: they-closed 1159
X-X2go-PR-Package: pyhoca-cli
X-X2go-PR-Source: pyhoca-cli
Date: Mon, 15 Jan 2024 21:05:07 +0000
Content-Type: multipart/mixed; boundary="----------=_1705352707-9885-0"
[Message part 1 (text/plain, inline)]
This is an automatic notification regarding your Bug report
which was filed against the pyhoca-cli package:

#1159: PyHoca CLI: semaphore released too many times error

It has been closed by Mike Gabriel <mike.gabriel@das-netzwerkteam.de>.

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Mike Gabriel <mike.gabriel@das-netzwerkteam.de> by
replying to this email.


-- 
1159: https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1159
X2Go Bug Tracking System
Contact owner@bugs.x2go.org with problems
[Message part 2 (message/rfc822, inline)]
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
Date: Mon, 15 Jan 2024 21:04:30 +0000
[Message part 3 (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 4 (application/pgp-signature, inline)]
[Message part 5 (message/rfc822, inline)]
From: Michael Ledin <m.ledin@appheads.ru>
To: submit@bugs.x2go.org
Subject: PyHoca CLI: semaphore released too many times error
Date: Thu, 16 Mar 2017 22:06:44 +0300
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: Sat May 4 19:10:12 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.