Xpra: Ticket #1837: xpra processes "stay forever"

I just updated, and noticed the following on my system

sntentos@optiplex-9010:~$ xpra stop all
No xpra sessions found
sntentos@optiplex-9010:~$ sudo xpra stop all
Warning: running as root
No xpra sessions found
sntentos@optiplex-9010:~$ xpra --version
xpra v2.3-r19255
sntentos@optiplex-9010:~$ LC_TIME=C ps aux | grep '[x]pra'
sntentos  3679  0.0  0.2 558640 67284 ?        S    May07   0:08 /usr/bin/python /usr/bin/xpra shadow :0 --chdir=/home/sntentos --video-decoders=all --packet-encoders=rencode, bencode, yaml --start-env=#avoid Ubuntu's global menu, which is a mess and cannot be forwarded: --start-env=UBUNTU_MENUPROXY= --start-env=QT_X11_NO_NATIVE_MENUBAR=1 --start-env=#fix for MainSoft's MainWin buggy window management: --start-env=MWNOCAPTURE=true --start-env=MWNO_RIT=true --start-env=MWWM=allwm --start-env=#force GTK3 applications to use X11 so we can intercept them: --start-env=GDK_BACKEND=x11 --env=XPRA_PROXY_START_UUID=70ba72f55ddd4647b60df1f72674ec64 --video-encoders=all --bind=auto --encodings=h264,vp9,vp8,mpeg4,mpeg4+mp4,h264+mp4,vp8+webm,vp9+webm,png,webp,rgb,rgb24,rgb32,jpeg,h265,jpeg2000 --compressors=lz4, lzo, zlib --exit-with-client=yes --csc-modules=all --attach=no --start-via-proxy=no --daemon=yes --systemd-run=no --uid=1000 --gid=1000
sntentos 17593  0.0  0.6 1281944 198936 ?      Sl   May07   0:06 /usr/bin/python /usr/bin/xpra shadow :0 --chdir=/home/sntentos --video-decoders=all --packet-encoders=rencode, bencode, yaml --start-env=#avoid Ubuntu's global menu, which is a mess and cannot be forwarded: --start-env=UBUNTU_MENUPROXY= --start-env=QT_X11_NO_NATIVE_MENUBAR=1 --start-env=#fix for MainSoft's MainWin buggy window management: --start-env=MWNOCAPTURE=true --start-env=MWNO_RIT=true --start-env=MWWM=allwm --start-env=#force GTK3 applications to use X11 so we can intercept them: --start-env=GDK_BACKEND=x11 --env=XPRA_PROXY_START_UUID=003012a2b1274c879290e151eaf6e519 --video-encoders=all --bind=auto --encodings=h264,vp9,vp8,mpeg4,mpeg4+mp4,h264+mp4,vp8+webm,vp9+webm,png,webp,rgb,rgb24,rgb32,jpeg,h265,jpeg2000 --compressors=lz4, lzo, zlib --exit-with-client=yes --csc-modules=all --attach=no --start-via-proxy=no --daemon=yes --systemd-run=no --uid=1000 --gid=1000
sntentos 19019  0.0  0.0  13756  3004 ?        Ss   May07   0:00 bash -c xpra initenv;if [ -x ~/.xpra/run-xpra ]; then ~/.xpra/run-xpra _proxy :0;elif [ -x $XDG_RUNTIME_DIR/xpra/run-xpra ]; then $XDG_RUNTIME_DIR/xpra/run-xpra _proxy :0;elif type "xpra" > /dev/null 2>&1; then xpra _proxy :0;elif [ -x /usr/local/bin/xpra ]; then /usr/local/bin/xpra _proxy :0;else echo "no run-xpra command found"; exit 1; fi
sntentos 19053  0.0  0.0 251592 17668 ?        Sl   May07   0:00 /usr/bin/python /usr/bin/xpra _proxy :0
sntentos 19236  0.0  0.1 975168 41616 ?        Sl   May07   0:37 /usr/bin/python /usr/bin/xpra _sound_record - - pulsesrc device=alsa_output.pci-0000_00_1b.0.analog-stereo.monitor opus  1.0
root     22402  0.0  0.0 192828 32132 ?        Ss   10:36   0:00 /usr/bin/python /usr/bin/xpra proxy :14500 --daemon=no --bind-tcp=0.0.0.0:14500 --tcp-auth=sys --ssl-cert=/etc/xpra/ssl-cert.pem --ssl=on --bind=/run/xpra/system --auth=peercred --socket-dirs=/run/xpra --socket-permissions=666 --log-dir=/var/log --pidfile=/run/xpra.pid --debug=
sntentos 24030  0.0  0.0  13756  3056 ?        Ss   May07   0:00 bash -c xpra initenv;if [ -x ~/.xpra/run-xpra ]; then ~/.xpra/run-xpra _proxy :0;elif [ -x $XDG_RUNTIME_DIR/xpra/run-xpra ]; then $XDG_RUNTIME_DIR/xpra/run-xpra _proxy :0;elif type "xpra" > /dev/null 2>&1; then xpra _proxy :0;elif [ -x /usr/local/bin/xpra ]; then /usr/local/bin/xpra _proxy :0;else echo "no run-xpra command found"; exit 1; fi
sntentos 24061  0.0  0.0 251592 17424 ?        Sl   May07   0:00 /usr/bin/python /usr/bin/xpra _proxy :0
sntentos 27224  0.0  0.0  13756  3024 ?        Ss   May07   0:00 bash -c xpra initenv;if [ -x ~/.xpra/run-xpra ]; then ~/.xpra/run-xpra _proxy :0;elif [ -x $XDG_RUNTIME_DIR/xpra/run-xpra ]; then $XDG_RUNTIME_DIR/xpra/run-xpra _proxy :0;elif type "xpra" > /dev/null 2>&1; then xpra _proxy :0;elif [ -x /usr/local/bin/xpra ]; then /usr/local/bin/xpra _proxy :0;else echo "no run-xpra command found"; exit 1; fi
sntentos 27244  0.0  0.0 251592 17580 ?        Sl   May07   0:00 /usr/bin/python /usr/bin/xpra _proxy :0
sntentos 32723  0.0  0.0  13756  3100 ?        Ss   May07   0:00 bash -c xpra initenv;if [ -x ~/.xpra/run-xpra ]; then ~/.xpra/run-xpra _proxy :0;elif [ -x $XDG_RUNTIME_DIR/xpra/run-xpra ]; then $XDG_RUNTIME_DIR/xpra/run-xpra _proxy :0;elif type "xpra" > /dev/null 2>&1; then xpra _proxy :0;elif [ -x /usr/local/bin/xpra ]; then /usr/local/bin/xpra _proxy :0;else echo "no run-xpra command found"; exit 1; fi
sntentos 32751  0.0  0.0 251592 17656 ?        Sl   May07   0:00 /usr/bin/python /usr/bin/xpra _proxy :0


Fri, 11 May 2018 07:45:49 GMT - Antoine Martin: owner changed; milestone set

Please provide more details as per wiki/ReportingBugs, in particular, steps to reproduce. (ie: commands)

I do not get any leftovers on my test systems.


Tue, 05 Jun 2018 16:34:23 GMT - Antoine Martin: status changed; resolution set

Your sessions are running as sntentos but you are running xpra stop as root. This is not meant to work.


Tue, 05 Jun 2018 19:38:24 GMT - stdedos:

You can notice that I ran this twice: both with and without root

sntentos@optiplex-9010:~$ xpra stop all
No xpra sessions found
sntentos@optiplex-9010:~$ sudo xpra stop all
Warning: running as root
No xpra sessions found

I am not sure of reproducibility, as I lead with "I just updated, and noticed the following on my system". So, apart from having executed sessions shown by ps aux (and having updated xpra), I don't know how this came to be --> and hence, I am not sure what debug would be helpful in this situation. I usually leave the system open for days (or weeks), and I could've collected something if I was asked relatively soon, but I didn't know what :/

Moreover, I haven't seen it since (but server has been running for a week. I could verify, and I don't think anything will come out of it).


Wed, 06 Jun 2018 04:41:39 GMT - Antoine Martin:

If sessions are not found then their sockets have been cleaned up already, usually with xpra list. r19571 increases the timeout delay.


Sat, 23 Jan 2021 05:35:05 GMT - migration script:

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