Xpra: Ticket #2296: Cannot start xpra shadow with 226**

py3-x64-r22647 on Ubuntu 16.04.5 LTS Server and Xpra-Python3_2.5.2-r22633 on Win10 client

From the Windows 10 client:

\xpra-clients\Xpra-Python3_2.5.2-r22633\xpra_cmd" shadow ssh://user@ip/0  --opengl=no --desktop-scaling=0.75 --webcam=no --speaker=off --microphone=off --exit-with-client=no
2019-05-13 12:36:32,206 Xpra GTK3 client version 2.5.2-r22633 32-bit
2019-05-13 12:36:32,209  running on Microsoft Windows 10
2019-05-13 12:36:32,749 GStreamer version 1.14.4 for Python 3.7.3 32-bit
2019-05-13 12:36:33,110  keyboard settings: layout=us
2019-05-13 12:36:33,112  desktop size is 1600x900 with 1 screen:
2019-05-13 12:36:33,112   Default (423x238 mm - DPI: 96x96) workarea: 1600x860
2019-05-13 12:36:33,112     (Standard monitor types) Generic PnP Monitor (309x174 mm - DPI: 131x131)
2019-05-13 12:36:33,112  downscaled to 75%, virtual screen size: 2133x1200
2019-05-13 12:36:33,113   Default (423x238 mm - DPI: 128x128) workarea: 2133x1147
2019-05-13 12:36:33,113     (Standard monitor types) Generic PnP Monitor (309x174 mm - DPI: 175x175)
2019-05-13 12:36:42,230 Error: failed to receive anything, not an xpra server?
2019-05-13 12:36:42,232   could also be the wrong protocol, username, password or port
2019-05-13 12:36:42,233   or the session was not found
2019-05-13 12:36:42,233 Connection lost

From an existing xpra-start-gnome-terminal (:2):

user@host [2019-05-13 12:24:45]:/run/user/1000/xpra$ env -i bash -c ' . /run/user/1000/dbus-session; xpra shadow :0'
xpra for python 2.7 is not installed
 retrying with python3
using systemd-run to wrap 'shadow' server command
'systemd-run' '--description' 'xpra-shadow' '--scope' '--user' 'python3' '/usr/bin/xpra' 'shadow' ':0' '--systemd-run=no'
Failed to create bus connection: No such file or directory
user@host [2019-05-13 12:25:07]:/run/user/1000/xpra$ xpra shadow :0
xpra for python 2.7 is not installed
 retrying with python3
using systemd-run to wrap 'shadow' server command
'systemd-run' '--description' 'xpra-shadow' '--scope' '--user' 'python3' '/usr/bin/xpra' 'shadow' ':0' '--systemd-run=no'
Failed to create bus connection: No such file or directory

No logs get generated on the server to attach.



Mon, 13 May 2019 09:49:45 GMT - stdedos:

(Basic xpra start :10 works)


Mon, 13 May 2019 10:58:49 GMT - Antoine Martin: owner changed

Have you tried with the python2 builds?


Wed, 15 May 2019 07:22:27 GMT - stdedos:

python2-xpra seems to work okay (just pulled it)


Wed, 15 May 2019 12:00:20 GMT - Antoine Martin: owner, priority, status changed

The ssh command ends up running:

$XDG_RUNTIME_DIR/xpra/run-xpra _proxy_shadow_start

And since the default python2 version is not installed, it re-execs the script with python3 via os.execvpe.

Strangely, this fails with: failed to indentify the new server display.


Wed, 15 May 2019 15:34:04 GMT - Antoine Martin: owner, status changed

This should be fixed in r22716, but unfortunately we cannot fix a script that has already been generated: an ssh connection will just use it as it is. So this may not fix things until you wipe $XDG_RUNTIME_DIR (on some platforms, a reboot might do this) Or you could edit $XDG_RUNTIME_DIR/xpra/run-xpra by hand and just remove XPRA_ALT_PYTHON_RETRY from there.


Thu, 16 May 2019 12:20:14 GMT - stdedos:

Replying to Antoine Martin:

This should be fixed in r22716, but unfortunately we cannot fix a script that has already been generated: an ssh connection will just use it as it is. So this may not fix things until you wipe $XDG_RUNTIME_DIR (on some platforms, a reboot might do this) Or you could edit $XDG_RUNTIME_DIR/xpra/run-xpra by hand and just remove XPRA_ALT_PYTHON_RETRY from there.

I did that:

user@server [2019-05-16 15:18:27]:/run/user/1000/xpra$ grep XPRA_ALT_PYTHON_RETRY /run/user/1000/xpra/run-xpra
user@server [2019-05-16 15:18:58]:/run/user/1000/xpra$

Still not working (haven't updated either).

I needed to re-install python2-xpra for it to work


Thu, 13 Jun 2019 11:42:18 GMT - Antoine Martin:

Not sure how I had missed that, but running run-xpra _proxy_shadow_start was erroring out with python3, r22926 fixes that.

(there's still a segfault on server exit - but that's a different thing)

@stdedos: does that fix things for you? (the trivial patch can be applied by hand to the server)


Thu, 13 Jun 2019 12:01:10 GMT - Antoine Martin:

new ticket for the shadow segfault with python3 on Ubuntu 16.04: #2328


Wed, 19 Jun 2019 21:23:21 GMT - stdedos:

Replying to Antoine Martin:

Not sure how I had missed that, but running run-xpra _proxy_shadow_start was erroring out with python3, r22926 fixes that.

(there's still a segfault on server exit - but that's a different thing)

@stdedos: does that fix things for you? (the trivial patch can be applied by hand to the server)

I have had applied the patch, and I have installed the latest xenial beta (as of Wed morning) for #2338. So, I guess things are working.

I don't remember, though, if I have removed the py2 package; I need to check that tomorrow --> No, I haven't. Need to try again on Monday. :/


Mon, 24 Jun 2019 11:36:29 GMT - stdedos: status changed; resolution set

The proposed solution does not work:

~$  grep -i 'XPRA_ALT_PYTHON_RETRY' $XDG_RUNTIME_DIR/xpra/run-xpra
~$

but just removing the file seems to be fine


Sat, 23 Jan 2021 05:47:26 GMT - migration script:

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