Xpra-org / xpra

Persistent remote applications for X11; screen sharing for X11, MacOS and MSWindows.
https://xpra.org/
GNU General Public License v2.0
1.98k stars 169 forks source link

xpra initialization error: `Socket path '/tmp/.X11-unix/X1' not found` #4199

Closed stdedos closed 6 months ago

stdedos commented 6 months ago

Describe the bug

Client:

"Xpra-x86_64_6.0-r35620\xpra_cmd" shadow ssh://user@ip/1 --ssh="plink -ssh -agent" --modal-windows=no --headerbar=off --title="@title@ on @@/@server-display@" --encodings=-webp --microphone=off --speaker=off --webcam=no --pulseaudio=no --opengl=no --min-speed=70 --key-shortcut=Shift+F2:toggle_pointer_grab

XPRA_EXECUTABLE=Xpra-x86_64_6.0-r35620

2024-04-24 22:56:46,128 Xpra GTK3 client version 6.0-r35620 (g79036646b) beta
2024-04-24 22:56:46,394  running on Microsoft Windows Microsoft Windows 10 Enterprise
2024-04-24 22:56:46,395  cpython 3.11
2024-04-24 22:56:47,324 GStreamer version 1.24.1
2024-04-24 22:56:47,361 created named pipe 'Xpra\27904'
2024-04-24 22:56:47,642 Error setting up the pipeline:
2024-04-24 22:56:47,642  gst_parse_error: could not link decoder to sink (3)
2024-04-24 22:56:47,643  GStreamer pipeline for:
2024-04-24 22:56:47,643   appsrc name=src emit-signals=1 block=0 is-live=1 do-timestamp=1 stream-type=0 format=2 caps=video/x-h264,width=128,height=128,profile=(string)main,stream-format=(string)byte-stream,alignment=(string)au ! \
2024-04-24 22:56:47,643   d3d11h264dec name=decoder ! \
2024-04-24 22:56:47,643   appsink name=sink emit-signals=1 max-buffers=10 drop=False sync=False async=True qos=False caps=video/x-raw,width=128,height=128,format=(string)I420
2024-04-24 22:56:47,643 Error creating context h264 128x128 YUV420P
2024-04-24 22:56:47,643 gstreamer: h264 decoding failed: failed to setup gstreamer pipeline
2024-04-24 22:56:47,655 keyboard layout 'United States - English' : 'us' (0x409)
2024-04-24 22:56:47,813  keyboard settings: layout=us
2024-04-24 22:56:47,815  desktop size is 4480x1516:
2024-04-24 22:56:47,816   Default (1185x401 mm - DPI: 96x96) workarea: 4480x1476
2024-04-24 22:56:47,816     Samsung C32JG5x  2560x1440 at    0x0    (697x392 mm - DPI: 93x93) workarea: 2560x1400
2024-04-24 22:56:47,816     LG IPS234        1920x1080 at 2560x436  (510x290 mm - DPI: 96x95) workarea: 1920x1040 at 2560x436
2024-04-24 22:58:27,998 remote SSH stderr:
2024-04-24 22:58:27,998  Access denied
2024-04-24 22:58:27,999  Entering daemon mode; any further errors will be reported to:
2024-04-24 22:58:27,999 Error: failed to receive anything, not an xpra server?
2024-04-24 22:58:27,999   could also be the wrong protocol, username, password or port
2024-04-24 22:58:27,999    '/run/user/1000/xpra/1/server.log.new'
2024-04-24 22:58:28,000   or the session was not found
2024-04-24 22:58:28,000  xpra initialization error:
2024-04-24 22:58:28,000 Connection failed
2024-04-24 22:58:28,000   failed to identify the new server display!

Server:

Socket path '/tmp/.X11-unix/X1' not found
xpra initialization error:

  File "/usr/lib/python3/dist-packages/xpra/scripts/main.py", line 121, in main
    return run_mode(script_file, cmdline, err, options, args, mode, defaults)
  File "/usr/lib/python3/dist-packages/xpra/scripts/main.py", line 455, in run_mode
    return do_run_mode(script_file, cmdline, error_cb, options, args, mode, defaults)
  File "/usr/lib/python3/dist-packages/xpra/scripts/main.py", line 532, in do_run_mode
    return run_server(script_file, cmdline, error_cb, options, args, mode, defaults)
  File "/usr/lib/python3/dist-packages/xpra/scripts/main.py", line 1932, in run_server
    return do_run_server(script_file, cmdline, error_cb, options, args, mode, str(display or ""), defaults)
  File "/usr/lib/python3/dist-packages/xpra/scripts/server.py", line 724, in do_run_server
    return _do_run_server(script_file, cmdline,
  File "/usr/lib/python3/dist-packages/xpra/scripts/server.py", line 1225, in _do_run_server
    assert not proxying and xauth_data

To Reproduce Steps to reproduce the behavior:

  1. server command
  2. client command
  3. specific action to trigger the bug

System Information (please complete the following information):

Additional context Add any other context about the problem here. Please see "reporting bugs" in the wiki section.

stdedos commented 6 months ago

I recently removed the nVidia drivers, and apparently that means that DISPLAY=:0 and not :1 😓

totaam commented 6 months ago

FYI: if there is only one X11 server running, just omit the display number and the xpra server should be able figure it out.

The commit above should try to handle the missing display more gracefully than with an assert.

stdedos commented 6 months ago

FYI: if there is only one X11 server running, just omit the display number and the xpra server should be able figure it out.

Well, idk why nvidia drivers start :1 😅 Maybe it has something to do with gdm lockscreen + user display?

totaam commented 6 months ago

It depends on your distro, drivers, version, etc In some cases, having the nvidia drivers forces you to use X11, in which case the display manager (gdm or whatever) may spawn a new display after login. On other cases (ie: not nvidia, some other display managers, etc) the DM hands over the existing display to the window manager.