xpra icon
Bug tracker and wiki

Opened 7 weeks ago

Last modified 7 weeks ago

#2875 new defect

xpra shadow does not also attach

Reported by: stdedos Owned by: stdedos
Priority: major Milestone: 4.1
Component: client Version: 3.0.x
Keywords: Cc:

Description

"Xpra-Python3-x86_64_4.1-r27281\xpra_cmd" shadow ssh://user@ip/0 --ssh="plink -ssh -agent" --env=XPRA_SHADOW_REFRESH_DELAY=200 --title="@title@ on @@/@server-display@" --headerbar=off --opengl=no --bandwidth-limit=6Mbps --desktop-scaling=0.75 --webcam=no --speaker=off --microphone=off --pulseaudio=no

2020-09-15 09:39:28,786 Xpra GTK3 client version 4.1-r27281 64-bit
2020-09-15 09:39:28,790  running on Microsoft Windows 10
2020-09-15 09:39:29,990 GStreamer version 1.16.2 for Python 3.8.5 64-bit
2020-09-15 09:39:30,394 created named pipe '\\.\pipe\Xpra\13248'
2020-09-15 09:39:30,758 keyboard layout code 0x409
2020-09-15 09:39:30,759 identified as 'United States - English' : us
2020-09-15 09:39:31,074  keyboard settings: layout=us
2020-09-15 09:39:31,077  desktop size is 4160x1440 with 1 screen:
2020-09-15 09:39:31,078   Default (1100x381 mm - DPI: 96x96) workarea: 4160x1400
2020-09-15 09:39:31,078     Generic PnP Monitor 1600x900 at 0x534 (309x174 mm - DPI: 131x131) workarea: 1600x860 at 0x534
2020-09-15 09:39:31,079     C32JG5x 2560x1440 at 1600x0 (697x392 mm - DPI: 93x93) workarea: 2560x1400 at 1600x0
2020-09-15 09:39:31,079  downscaled to 75%, virtual screen size: 5547x1920
2020-09-15 09:39:31,079   Default (1100x381 mm - DPI: 128x128) workarea: 5547x1867
2020-09-15 09:39:31,079     Generic PnP Monitor 2133x1200 at 0x712 (309x174 mm - DPI: 175x175) workarea: 2133x1147 at 0x712
2020-09-15 09:39:31,079     C32JG5x 3413x1920 at 2133x0 (697x392 mm - DPI: 124x124) workarea: 3413x1867 at 2133x0
2020-09-15 09:39:34,624 Error: failed to receive anything, not an xpra server?
2020-09-15 09:39:34,629   could also be the wrong protocol, username, password or port
2020-09-15 09:39:34,638   or the session was not found
2020-09-15 09:39:34,645 Connection lost
u@h [2020-09-15 09:42:51]:/run/user/1000/xpra$ ls -lahrt
total 448K
-rw-r--r--  1 u u 9,3K Ιούλ 15 09:22 display-:4-$TIMESTAMP.log
-rw-r--r--  1 u u  151 Ιούλ 20 15:21 display-:2-$TIMESTAMP.log.old
-rw-r--r--  1 u u 6,4K Ιούλ 24 13:29 display-:1-$TIMESTAMP.log
-rw-r--r--  1 u u  12K Ιούλ 24 14:11 display-:3-$TIMESTAMP.log.old
drwx------  3 u u   60 Ιούλ 24 14:18 pulse-3
-rw-r--r--  1 u u  151 Αύγ  28 14:51 display-:0-$TIMESTAMP.log.old
-rwx------  1 u u 6,7K Αύγ  31 13:17 run-xpra
-rw-r--r--  1 u u  151 Αύγ  31 13:17 display-:0-$TIMESTAMP.log
-rw-r--r--  1 u u  14K Σεπ  14 16:09 display-:2-$TIMESTAMP.log
drwx------ 17 u u  520 Σεπ  15 09:33 ..
-rw-r--r--  1 u u 379K Σεπ  15 09:33 display-:3-$TIMESTAMP.log
drwx------  3 u u  300 Σεπ  15 09:42 .
srw-------  1 u xpra        0 Σεπ  15 09:42 u-precision-t3620-3
srw-------  1 u xpra        0 Σεπ  15 09:43 u-precision-t3620-0
srw-------  1 u xpra        0 Σεπ  15 09:43 u-precision-t3620-2
u@h [2020-09-15 09:43:29]:/run/user/1000/xpra$ xpra --version
xpra v3.0.11-r27119
u@h [2020-09-15 09:45:45]:/run/user/1000/xpra$ 

It works if after that, I run xpra attach :0

Change History (5)

comment:1 Changed 7 weeks ago by Antoine Martin

Owner: changed from Antoine Martin to stdedos

What is the server OS and version?
Anything in the server log?
Have you tried running the client with the default "paramiko" ssh backend and / or -d ssh?

r27454 may fix that - assuming that the server is running 4.1

comment:2 Changed 7 weeks ago by stdedos

Oh yeah ... again I forget that on failed connection, it does not report the installed version...

2020-09-15 09:33:30,577 Xpra GTK3 X11 server version 3.0.10-r26630 64-bit
2020-09-15 09:33:30,579  running on Linux Ubuntu 16.04 xenial

The log file is very old as mentioned, and it just has this:

-rw-r--r--  1 u u  151 Αύγ  31 13:17 display-:0-$TIMESTAMP.log
$ bat /run/user/1000/xpra/display-\:0-\$TIMESTAMP.log
───────┬────────────────────────────────────────────────────────────────────────────────────────────
       │ File: /run/user/1000/xpra/display-:0-$TIMESTAMP.log
───────┼────────────────────────────────────────────────────────────────────────────────────────────
   1   │ xpra initialization error:
   2   │  You already have an xpra server running at /run/user/1000/xpra/sntentos-precision-t3620-0
   3   │   (did you want 'xpra upgrade'?)
───────┴────────────────────────────────────────────────────────────────────────────────────────────

Actually, I just noticed ... the shadow server is not shutting down by itself.
However, even if I shut it down ... it does not come back up (it Errors-out immediately after authentication)

comment:3 Changed 7 weeks ago by Antoine Martin

Actually, I just noticed ... the shadow server is not shutting down by itself.

It should automatically terminate when the last client disconnects.

However, even if I shut it down ... it does not come back up (it Errors-out immediately after authentication)

What error?

comment:4 in reply to:  3 Changed 7 weeks ago by stdedos

Replying to Antoine Martin:

Actually, I just noticed ... the shadow server is not shutting down by itself.

It should automatically terminate when the last client disconnects.

I remember correctly then. But still it doesn't. It's not writing logs either. 😕

However, even if I shut it down ... it does not come back up (it Errors-out immediately after authentication)

What error?

2020-09-15 09:39:34,624 Error: failed to receive anything, not an xpra server?
2020-09-15 09:39:34,629   could also be the wrong protocol, username, password or port
2020-09-15 09:39:34,638   or the session was not found
2020-09-15 09:39:34,645 Connection lost

comment:5 Changed 7 weeks ago by Antoine Martin

Error: failed to receive anything, not an xpra server?

That's a client error when trying to connect via ssh.

The shadow server should still start and give you a log if you run it by hand:

xpra shadow

And if somehow the log does not show up:

xpra shadow --no-daemon

My guess is that your config is different, or this may be a problem with XDG_RUNTIME_DIR.

Note: See TracTickets for help on using tickets.