Xpra: Ticket #89: xpra stop doesn't work and hangs

Using xpra on Debian Lenny installed via the provided Lenny package. Get the following when issuing xpra stop:

suan@syeo:/export/web$ xpra stop :102
^CTraceback (most recent call last):
  File "/usr/bin/xpra", line 6, in <module>
    xpra.scripts.main.main(__file__, sys.argv)
  File "install/lib/python/xpra/scripts/main.py", line 159, in main
  File "install/lib/python/xpra/scripts/main.py", line 317, in run_stop
  File "install/lib/python/xpra/protocol.py", line 47, in read
KeyboardInterrupt


Fri, 23 Mar 2012 03:55:06 GMT - Antoine Martin: status, version, component, description changed


Fri, 23 Mar 2012 07:23:42 GMT - Antoine Martin:

Can you please specify the exact version you have installed? (the line numbers from the stacktrace do not match the code in the latest release)

I have seen this problem before, but I cannot find any way of reproducing it when I want to investigate, any clues?

The best I could do was to re-write the "stop" code to use a more correct approach (and now it will also timeout rather than hang), hopefully this should fix it. Done in r608


Fri, 23 Mar 2012 11:52:12 GMT - Antoine Martin:

Needs r613 to make it work with password protected sessions. This was broken previously and might have been the cause of the problem you saw, was your session password protected? (FYI: xpra sessions that are managed by winswitch will be, and recent versions will manage xpra sessions started externally too)


Fri, 23 Mar 2012 16:29:57 GMT - suan:

The version I was using was 0.7.22 (as specified when I originally created the ticket).

Hmm I'm not sure about password protection... I SSH into a remote box with "ForwardX11=yes, ForwardX11Trusted=yes", and use xpra there. That's where I encountered the problem.


Fri, 23 Mar 2012 17:24:45 GMT - Antoine Martin: status, version, milestone changed; resolution set

Hah, sorry, I just assumed this was a mistake: you should not be running anything that old.

Please use 0.1.0 (or even trunk to get the fixes above) - feel free to re-open this ticket if you can reproduce with a more recent version.


Sat, 23 Jan 2021 04:45:13 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/89