Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup troubles #191

Closed
JanCVanB opened this issue May 29, 2022 · 20 comments
Closed

Setup troubles #191

JanCVanB opened this issue May 29, 2022 · 20 comments
Labels
bug Something isn't working documentation Improvements or additions to documentation invalid This doesn't seem right

Comments

@JanCVanB
Copy link
Collaborator

JanCVanB commented May 29, 2022

I'm having trouble setting up my environment for xpra-html5 development.

  1. I seemingly successfully installed xpra, which comes with an older/different version of xpra-html5.
  2. I seemingly successfully updated xpra-html5 by running sudo ./setup.py install, even though I got a lot of errors/warnings (probably similar to the ones below). I noticed that the desktop background image in the xpra session changed to the cat, which I assumed indicated a version bump.
  3. I changed the source code in the repo and re-ran sudo ./setup.py install (again with lots of errors/warnings), but I didn't see any change in the website (i.e. no error in the browser console when I added a console.error to the page's source).
  4. I tried debugging my setup by uninstalling and reinstalling xpra a few times, and now I have an even more broken setup that won't connect to the server at all.

Help! 😆

Here is the latest path I took in my mostly-default Ubuntu 20.04 environment (consecutive commands, complete output, just split into multiple single-command snippets for readability):

coder@devrel-x-xpra-temporary-v1-9f8fb923f0-vdi-0:~/project/xpra-html5$ sudo wget -O "/usr/share/keyrings/xpra-2022.gpg" https://xpra.org/xpra-2022.gpg
--2022-05-29 21:29:20--  https://xpra.org/xpra-2022.gpg
Resolving xpra.org (xpra.org)... 78.129.163.65
Connecting to xpra.org (xpra.org)|78.129.163.65|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7533 (7.4K)
Saving to: �/usr/share/keyrings/xpra-2022.gpg�

/usr/share/keyrings/xpra-2022 100%[==============================================>]   7.36K  --.-KB/s    in 0s      

2022-05-29 21:29:20 (852 MB/s) - �/usr/share/keyrings/xpra-2022.gpg� saved [7533/7533]

coder@devrel-x-xpra-temporary-v1-9f8fb923f0-vdi-0:~/project/xpra-html5$ 
coder@devrel-x-xpra-temporary-v1-9f8fb923f0-vdi-0:~/project/xpra-html5$ (
> cd /etc/apt/sources.list.d
> sudo wget https://xpra.org/repos/focal/xpra.list
> )
--2022-05-29 21:29:56--  https://xpra.org/repos/focal/xpra.list
Resolving xpra.org (xpra.org)... 78.129.163.65
Connecting to xpra.org (xpra.org)|78.129.163.65|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 33
Saving to: �xpra.list.1�

xpra.list.1                   100%[==============================================>]      33  --.-KB/s    in 0s      

2022-05-29 21:29:57 (5.28 MB/s) - �xpra.list.1� saved [33/33]

coder@devrel-x-xpra-temporary-v1-9f8fb923f0-vdi-0:~/project/xpra-html5$ 
coder@devrel-x-xpra-temporary-v1-9f8fb923f0-vdi-0:~/project/xpra-html5$ sudo apt update
Hit:1 https://packages.cloud.google.com/apt cloud-sdk InRelease
Hit:2 https://deb.nodesource.com/node_16.x focal InRelease                                                          
Hit:3 https://dl.google.com/linux/chrome/deb stable InRelease                                                       
Hit:4 http://packages.microsoft.com/repos/code stable InRelease                                                     
Hit:5 http://archive.ubuntu.com/ubuntu focal InRelease                                                              
Get:6 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]             
Get:7 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]                          
Get:8 https://xpra.org focal InRelease [5,925 B]                                          
Get:9 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]                 
Err:8 https://xpra.org focal InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 18ADB31CF18AD6BB
Reading package lists... Done
N: Ignoring file 'xpra.list.1' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
W: GPG error: https://xpra.org focal InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 18ADB31CF18AD6BB
E: The repository 'https://xpra.org focal InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
coder@devrel-x-xpra-temporary-v1-9f8fb923f0-vdi-0:~/project/xpra-html5$ 
coder@devrel-x-xpra-temporary-v1-9f8fb923f0-vdi-0:~/project/xpra-html5$ sudo apt install -y xpra
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  openssh-server python3-pyopencl python3-gst-1.0 python3-netifaces cups-pdf python3-opencv python3-pyinotify
  v4l2loopback-dkms python3-yaml python3-uinput
The following NEW packages will be installed:
  xpra
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 2,531 kB of archives.
After this operation, 11.1 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu focal/universe amd64 xpra amd64 3.0.6+dfsg1-1build1 [2,531 kB]
Fetched 2,531 kB in 1s (2,232 kB/s)
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76, <> line 1.)
debconf: falling back to frontend: Readline
N: Ignoring file 'xpra.list.1' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
Selecting previously unselected package xpra.
(Reading database ... 142598 files and directories currently installed.)
Preparing to unpack .../xpra_3.0.6+dfsg1-1build1_amd64.deb ...
Unpacking xpra (3.0.6+dfsg1-1build1) ...
Setting up xpra (3.0.6+dfsg1-1build1) ...
Processing triggers for dbus (1.12.16-2ubuntu2.2) ...
Processing triggers for shared-mime-info (1.15-1) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for systemd (245.4-4ubuntu3.17) ...
Processing triggers for man-db (2.9.1-1) ...
N: Ignoring file 'xpra.list.1' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
coder@devrel-x-xpra-temporary-v1-9f8fb923f0-vdi-0:~/project/xpra-html5$ 
coder@devrel-x-xpra-temporary-v1-9f8fb923f0-vdi-0:~/project/xpra-html5$ xpra start --start=xterm --bind-tcp=0.0.0.0:10001
coder@devrel-x-xpra-temporary-v1-9f8fb923f0-vdi-0:~/project/xpra-html5$ 2022-05-29 21:30:45,301 Warning: failed to create script directory '/run/user/1000/xpra':
2022-05-29 21:30:45,301  [Errno 2] No such file or directory: '/run/user/1000/xpra'
2022-05-29 21:30:45,301  ($XDG_RUNTIME_DIR has not been created?)
Entering daemon mode; any further errors will be reported to:
  /tmp/S6423.log

coder@devrel-x-xpra-temporary-v1-9f8fb923f0-vdi-0:~/project/xpra-html5$ sudo ./setup.py install
install_html5('', '/usr/share/xpra/www', '/etc/xpra/html5-client', ['default-settings.txt'], 'uglifyjs', True, True)
minifying html5 client to '/usr/share/xpra/www' using uglifyjs
brotli_cmd=None
copied favicon.png
copied favicon.ico
copied index.html
config file symlinked: /usr/share/xpra/www/default-settings.txt -> /etc/xpra/html5-client/default-settings.txt
copied mitm.html
error running (['uglifyjs', '/home/coder/project/xpra-html5/html5/sw.js.tmp', '-o', '/usr/share/xpra/www/sw.js', '--compress'],),{'stdout': -1, 'stderr': -1}: [Errno 2] No such file or directory: 'uglifyjs'
Error: failed to minify 'sw.js', command ['uglifyjs', '/home/coder/project/xpra-html5/html5/sw.js.tmp', '-o', '/usr/share/xpra/www/sw.js', '--compress'] returned error -1
minified sw.js
copied connect.html
copied css/menu.css
copied css/spinner.css
copied css/menu-skin.css
copied css/simple-keyboard.css.map
copied css/slick.css
copied css/simple-keyboard.css
copied css/icon.css
copied css/client.css
copied css/bootstrap.css
copied css/signin.css
copied icons/xpra-logo.png
copied icons/maximize.png
copied icons/eye-slash.png
copied icons/unfullscreen.png
copied icons/close.png
copied icons/materialicons-regular.ttf
copied icons/materialicons-regular.woff2
copied icons/fullscreen.png
copied icons/speaker.png
copied icons/materialicons-regular.woff
copied icons/default_cursor.png
copied icons/speaker-off.png
copied icons/authentication.png
copied icons/eye.png
copied icons/minimize.png
copied icons/speaker-buffering.png
copied icons/noicon.png
copied icons/empty.png
error running (['uglifyjs', '/home/coder/project/xpra-html5/html5/js/Constants.js.tmp', '-o', '/usr/share/xpra/www/js/Constants.js', '--compress'],),{'stdout': -1, 'stderr': -1}: [Errno 2] No such file or directory: 'uglifyjs'
Error: failed to minify 'Constants.js', command ['uglifyjs', '/home/coder/project/xpra-html5/html5/js/Constants.js.tmp', '-o', '/usr/share/xpra/www/js/Constants.js', '--compress'] returned error -1
minified js/Constants.js
error running (['uglifyjs', '/home/coder/project/xpra-html5/html5/js/Protocol.js.tmp', '-o', '/usr/share/xpra/www/js/Protocol.js', '--compress'],),{'stdout': -1, 'stderr': -1}: [Errno 2] No such file or directory: 'uglifyjs'
Error: failed to minify 'Protocol.js', command ['uglifyjs', '/home/coder/project/xpra-html5/html5/js/Protocol.js.tmp', '-o', '/usr/share/xpra/www/js/Protocol.js', '--compress'] returned error -1
minified js/Protocol.js
error running (['uglifyjs', '/home/coder/project/xpra-html5/html5/js/VideoDecoder.js.tmp', '-o', '/usr/share/xpra/www/js/VideoDecoder.js', '--compress'],),{'stdout': -1, 'stderr': -1}: [Errno 2] No such file or directory: 'uglifyjs'
Error: failed to minify 'VideoDecoder.js', command ['uglifyjs', '/home/coder/project/xpra-html5/html5/js/VideoDecoder.js.tmp', '-o', '/usr/share/xpra/www/js/VideoDecoder.js', '--compress'] returned error -1
minified js/VideoDecoder.js
error running (['uglifyjs', '/home/coder/project/xpra-html5/html5/js/OffscreenDecodeWorker.js.tmp', '-o', '/usr/share/xpra/www/js/OffscreenDecodeWorker.js', '--compress'],),{'stdout': -1, 'stderr': -1}: [Errno 2] No such file or directory: 'uglifyjs'
Error: failed to minify 'OffscreenDecodeWorker.js', command ['uglifyjs', '/home/coder/project/xpra-html5/html5/js/OffscreenDecodeWorker.js.tmp', '-o', '/usr/share/xpra/www/js/OffscreenDecodeWorker.js', '--compress'] returned error -1
minified js/OffscreenDecodeWorker.js
error running (['uglifyjs', '/home/coder/project/xpra-html5/html5/js/Utilities.js.tmp', '-o', '/usr/share/xpra/www/js/Utilities.js', '--compress'],),{'stdout': -1, 'stderr': -1}: [Errno 2] No such file or directory: 'uglifyjs'
Error: failed to minify 'Utilities.js', command ['uglifyjs', '/home/coder/project/xpra-html5/html5/js/Utilities.js.tmp', '-o', '/usr/share/xpra/www/js/Utilities.js', '--compress'] returned error -1
minified js/Utilities.js
error running (['uglifyjs', '/home/coder/project/xpra-html5/html5/js/Menu-custom.js.tmp', '-o', '/usr/share/xpra/www/js/Menu-custom.js', '--compress'],),{'stdout': -1, 'stderr': -1}: [Errno 2] No such file or directory: 'uglifyjs'
Error: failed to minify 'Menu-custom.js', command ['uglifyjs', '/home/coder/project/xpra-html5/html5/js/Menu-custom.js.tmp', '-o', '/usr/share/xpra/www/js/Menu-custom.js', '--compress'] returned error -1
minified js/Menu-custom.js
error running (['uglifyjs', '/home/coder/project/xpra-html5/html5/js/RgbHelpers.js.tmp', '-o', '/usr/share/xpra/www/js/RgbHelpers.js', '--compress'],),{'stdout': -1, 'stderr': -1}: [Errno 2] No such file or directory: 'uglifyjs'
Error: failed to minify 'RgbHelpers.js', command ['uglifyjs', '/home/coder/project/xpra-html5/html5/js/RgbHelpers.js.tmp', '-o', '/usr/share/xpra/www/js/RgbHelpers.js', '--compress'] returned error -1
minified js/RgbHelpers.js
error running (['uglifyjs', '/home/coder/project/xpra-html5/html5/js/Notifications.js.tmp', '-o', '/usr/share/xpra/www/js/Notifications.js', '--compress'],),{'stdout': -1, 'stderr': -1}: [Errno 2] No such file or directory: 'uglifyjs'
Error: failed to minify 'Notifications.js', command ['uglifyjs', '/home/coder/project/xpra-html5/html5/js/Notifications.js.tmp', '-o', '/usr/share/xpra/www/js/Notifications.js', '--compress'] returned error -1
minified js/Notifications.js
error running (['uglifyjs', '/home/coder/project/xpra-html5/html5/js/Client.js.tmp', '-o', '/usr/share/xpra/www/js/Client.js', '--compress'],),{'stdout': -1, 'stderr': -1}: [Errno 2] No such file or directory: 'uglifyjs'
Error: failed to minify 'Client.js', command ['uglifyjs', '/home/coder/project/xpra-html5/html5/js/Client.js.tmp', '-o', '/usr/share/xpra/www/js/Client.js', '--compress'] returned error -1
minified js/Client.js
error running (['uglifyjs', '/home/coder/project/xpra-html5/html5/js/MediaSourceUtil.js.tmp', '-o', '/usr/share/xpra/www/js/MediaSourceUtil.js', '--compress'],),{'stdout': -1, 'stderr': -1}: [Errno 2] No such file or directory: 'uglifyjs'
Error: failed to minify 'MediaSourceUtil.js', command ['uglifyjs', '/home/coder/project/xpra-html5/html5/js/MediaSourceUtil.js.tmp', '-o', '/usr/share/xpra/www/js/MediaSourceUtil.js', '--compress'] returned error -1
minified js/MediaSourceUtil.js
error running (['uglifyjs', '/home/coder/project/xpra-html5/html5/js/OffscreenDecodeWorkerHelper.js.tmp', '-o', '/usr/share/xpra/www/js/OffscreenDecodeWorkerHelper.js', '--compress'],),{'stdout': -1, 'stderr': -1}: [Errno 2] No such file or directory: 'uglifyjs'
Error: failed to minify 'OffscreenDecodeWorkerHelper.js', command ['uglifyjs', '/home/coder/project/xpra-html5/html5/js/OffscreenDecodeWorkerHelper.js.tmp', '-o', '/usr/share/xpra/www/js/OffscreenDecodeWorkerHelper.js', '--compress'] returned error -1
minified js/OffscreenDecodeWorkerHelper.js
error running (['uglifyjs', '/home/coder/project/xpra-html5/html5/js/DecodeWorker.js.tmp', '-o', '/usr/share/xpra/www/js/DecodeWorker.js', '--compress'],),{'stdout': -1, 'stderr': -1}: [Errno 2] No such file or directory: 'uglifyjs'
Error: failed to minify 'DecodeWorker.js', command ['uglifyjs', '/home/coder/project/xpra-html5/html5/js/DecodeWorker.js.tmp', '-o', '/usr/share/xpra/www/js/DecodeWorker.js', '--compress'] returned error -1
minified js/DecodeWorker.js
error running (['uglifyjs', '/home/coder/project/xpra-html5/html5/js/Menu.js.tmp', '-o', '/usr/share/xpra/www/js/Menu.js', '--compress'],),{'stdout': -1, 'stderr': -1}: [Errno 2] No such file or directory: 'uglifyjs'
Error: failed to minify 'Menu.js', command ['uglifyjs', '/home/coder/project/xpra-html5/html5/js/Menu.js.tmp', '-o', '/usr/share/xpra/www/js/Menu.js', '--compress'] returned error -1
minified js/Menu.js
error running (['uglifyjs', '/home/coder/project/xpra-html5/html5/js/ImageDecoder.js.tmp', '-o', '/usr/share/xpra/www/js/ImageDecoder.js', '--compress'],),{'stdout': -1, 'stderr': -1}: [Errno 2] No such file or directory: 'uglifyjs'
Error: failed to minify 'ImageDecoder.js', command ['uglifyjs', '/home/coder/project/xpra-html5/html5/js/ImageDecoder.js.tmp', '-o', '/usr/share/xpra/www/js/ImageDecoder.js', '--compress'] returned error -1
minified js/ImageDecoder.js
error running (['uglifyjs', '/home/coder/project/xpra-html5/html5/js/Keycodes.js.tmp', '-o', '/usr/share/xpra/www/js/Keycodes.js', '--compress'],),{'stdout': -1, 'stderr': -1}: [Errno 2] No such file or directory: 'uglifyjs'
Error: failed to minify 'Keycodes.js', command ['uglifyjs', '/home/coder/project/xpra-html5/html5/js/Keycodes.js.tmp', '-o', '/usr/share/xpra/www/js/Keycodes.js', '--compress'] returned error -1
minified js/Keycodes.js
error running (['uglifyjs', '/home/coder/project/xpra-html5/html5/js/Window.js.tmp', '-o', '/usr/share/xpra/www/js/Window.js', '--compress'],),{'stdout': -1, 'stderr': -1}: [Errno 2] No such file or directory: 'uglifyjs'
Error: failed to minify 'Window.js', command ['uglifyjs', '/home/coder/project/xpra-html5/html5/js/Window.js.tmp', '-o', '/usr/share/xpra/www/js/Window.js', '--compress'] returned error -1
minified js/Window.js
error running (['uglifyjs', '/home/coder/project/xpra-html5/html5/js/lib/slick.js.tmp', '-o', '/usr/share/xpra/www/js/lib/slick.js', '--compress'],),{'stdout': -1, 'stderr': -1}: [Errno 2] No such file or directory: 'uglifyjs'
Error: failed to minify 'slick.js', command ['uglifyjs', '/home/coder/project/xpra-html5/html5/js/lib/slick.js.tmp', '-o', '/usr/share/xpra/www/js/lib/slick.js', '--compress'] returned error -1
minified js/lib/slick.js
error running (['uglifyjs', '/home/coder/project/xpra-html5/html5/js/lib/jquery-transform-draggable.js.tmp', '-o', '/usr/share/xpra/www/js/lib/jquery-transform-draggable.js', '--compress'],),{'stdout': -1, 'stderr': -1}: [Errno 2] No such file or directory: 'uglifyjs'
Error: failed to minify 'jquery-transform-draggable.js', command ['uglifyjs', '/home/coder/project/xpra-html5/html5/js/lib/jquery-transform-draggable.js.tmp', '-o', '/usr/share/xpra/www/js/lib/jquery-transform-draggable.js', '--compress'] returned error -1
minified js/lib/jquery-transform-draggable.js
error running (['uglifyjs', '/home/coder/project/xpra-html5/html5/js/lib/jquery.ba-throttle-debounce.js.tmp', '-o', '/usr/share/xpra/www/js/lib/jquery.ba-throttle-debounce.js', '--compress'],),{'stdout': -1, 'stderr': -1}: [Errno 2] No such file or directory: 'uglifyjs'
Error: failed to minify 'jquery.ba-throttle-debounce.js', command ['uglifyjs', '/home/coder/project/xpra-html5/html5/js/lib/jquery.ba-throttle-debounce.js.tmp', '-o', '/usr/share/xpra/www/js/lib/jquery.ba-throttle-debounce.js', '--compress'] returned error -1
minified js/lib/jquery.ba-throttle-debounce.js
error running (['uglifyjs', '/home/coder/project/xpra-html5/html5/js/lib/bencode.js.tmp', '-o', '/usr/share/xpra/www/js/lib/bencode.js', '--compress'],),{'stdout': -1, 'stderr': -1}: [Errno 2] No such file or directory: 'uglifyjs'
Error: failed to minify 'bencode.js', command ['uglifyjs', '/home/coder/project/xpra-html5/html5/js/lib/bencode.js.tmp', '-o', '/usr/share/xpra/www/js/lib/bencode.js', '--compress'] returned error -1
minified js/lib/bencode.js
error running (['uglifyjs', '/home/coder/project/xpra-html5/html5/js/lib/lz4.js.tmp', '-o', '/usr/share/xpra/www/js/lib/lz4.js', '--compress'],),{'stdout': -1, 'stderr': -1}: [Errno 2] No such file or directory: 'uglifyjs'
Error: failed to minify 'lz4.js', command ['uglifyjs', '/home/coder/project/xpra-html5/html5/js/lib/lz4.js.tmp', '-o', '/usr/share/xpra/www/js/lib/lz4.js', '--compress'] returned error -1
minified js/lib/lz4.js
error running (['uglifyjs', '/home/coder/project/xpra-html5/html5/js/lib/zlib.js.tmp', '-o', '/usr/share/xpra/www/js/lib/zlib.js', '--compress'],),{'stdout': -1, 'stderr': -1}: [Errno 2] No such file or directory: 'uglifyjs'
Error: failed to minify 'zlib.js', command ['uglifyjs', '/home/coder/project/xpra-html5/html5/js/lib/zlib.js.tmp', '-o', '/usr/share/xpra/www/js/lib/zlib.js', '--compress'] returned error -1
minified js/lib/zlib.js
error running (['uglifyjs', '/home/coder/project/xpra-html5/html5/js/lib/FileSaver.js.tmp', '-o', '/usr/share/xpra/www/js/lib/FileSaver.js', '--compress'],),{'stdout': -1, 'stderr': -1}: [Errno 2] No such file or directory: 'uglifyjs'
Error: failed to minify 'FileSaver.js', command ['uglifyjs', '/home/coder/project/xpra-html5/html5/js/lib/FileSaver.js.tmp', '-o', '/usr/share/xpra/www/js/lib/FileSaver.js', '--compress'] returned error -1
minified js/lib/FileSaver.js
error running (['uglifyjs', '/home/coder/project/xpra-html5/html5/js/lib/wsworker_check.js', '-o', '/usr/share/xpra/www/js/lib/wsworker_check.js', '--compress'],),{'stdout': -1, 'stderr': -1}: [Errno 2] No such file or directory: 'uglifyjs'
Error: failed to minify 'wsworker_check.js', command ['uglifyjs', '/home/coder/project/xpra-html5/html5/js/lib/wsworker_check.js', '-o', '/usr/share/xpra/www/js/lib/wsworker_check.js', '--compress'] returned error -1
minified js/lib/wsworker_check.js
error running (['uglifyjs', '/home/coder/project/xpra-html5/html5/js/lib/forge.js.tmp', '-o', '/usr/share/xpra/www/js/lib/forge.js', '--compress'],),{'stdout': -1, 'stderr': -1}: [Errno 2] No such file or directory: 'uglifyjs'
Error: failed to minify 'forge.js', command ['uglifyjs', '/home/coder/project/xpra-html5/html5/js/lib/forge.js.tmp', '-o', '/usr/share/xpra/www/js/lib/forge.js', '--compress'] returned error -1
minified js/lib/forge.js
symlinked /usr/share/xpra/www/js/lib/jquery.js from /usr/share/javascript/jquery/jquery.js
error running (['uglifyjs', '/home/coder/project/xpra-html5/html5/js/lib/detect-zoom.js.tmp', '-o', '/usr/share/xpra/www/js/lib/detect-zoom.js', '--compress'],),{'stdout': -1, 'stderr': -1}: [Errno 2] No such file or directory: 'uglifyjs'
Error: failed to minify 'detect-zoom.js', command ['uglifyjs', '/home/coder/project/xpra-html5/html5/js/lib/detect-zoom.js.tmp', '-o', '/usr/share/xpra/www/js/lib/detect-zoom.js', '--compress'] returned error -1
minified js/lib/detect-zoom.js
error running (['uglifyjs', '/home/coder/project/xpra-html5/html5/js/lib/rencode.js.tmp', '-o', '/usr/share/xpra/www/js/lib/rencode.js', '--compress'],),{'stdout': -1, 'stderr': -1}: [Errno 2] No such file or directory: 'uglifyjs'
Error: failed to minify 'rencode.js', command ['uglifyjs', '/home/coder/project/xpra-html5/html5/js/lib/rencode.js.tmp', '-o', '/usr/share/xpra/www/js/lib/rencode.js', '--compress'] returned error -1
minified js/lib/rencode.js
error running (['uglifyjs', '/home/coder/project/xpra-html5/html5/js/lib/jszip.js', '-o', '/usr/share/xpra/www/js/lib/jszip.js', '--compress'],),{'stdout': -1, 'stderr': -1}: [Errno 2] No such file or directory: 'uglifyjs'
Error: failed to minify 'jszip.js', command ['uglifyjs', '/home/coder/project/xpra-html5/html5/js/lib/jszip.js', '-o', '/usr/share/xpra/www/js/lib/jszip.js', '--compress'] returned error -1
minified js/lib/jszip.js
error running (['uglifyjs', '/home/coder/project/xpra-html5/html5/js/lib/brotli_decode.js.tmp', '-o', '/usr/share/xpra/www/js/lib/brotli_decode.js', '--compress'],),{'stdout': -1, 'stderr': -1}: [Errno 2] No such file or directory: 'uglifyjs'
Error: failed to minify 'brotli_decode.js', command ['uglifyjs', '/home/coder/project/xpra-html5/html5/js/lib/brotli_decode.js.tmp', '-o', '/usr/share/xpra/www/js/lib/brotli_decode.js', '--compress'] returned error -1
minified js/lib/brotli_decode.js
error running (['uglifyjs', '/home/coder/project/xpra-html5/html5/js/lib/web-streams-ponyfill.es6.js.tmp', '-o', '/usr/share/xpra/www/js/lib/web-streams-ponyfill.es6.js', '--compress'],),{'stdout': -1, 'stderr': -1}: [Errno 2] No such file or directory: 'uglifyjs'
Error: failed to minify 'web-streams-ponyfill.es6.js', command ['uglifyjs', '/home/coder/project/xpra-html5/html5/js/lib/web-streams-ponyfill.es6.js.tmp', '-o', '/usr/share/xpra/www/js/lib/web-streams-ponyfill.es6.js', '--compress'] returned error -1
minified js/lib/web-streams-ponyfill.es6.js
error running (['uglifyjs', '/home/coder/project/xpra-html5/html5/js/lib/jsmpeg.js.tmp', '-o', '/usr/share/xpra/www/js/lib/jsmpeg.js', '--compress'],),{'stdout': -1, 'stderr': -1}: [Errno 2] No such file or directory: 'uglifyjs'
Error: failed to minify 'jsmpeg.js', command ['uglifyjs', '/home/coder/project/xpra-html5/html5/js/lib/jsmpeg.js.tmp', '-o', '/usr/share/xpra/www/js/lib/jsmpeg.js', '--compress'] returned error -1
minified js/lib/jsmpeg.js
error running (['uglifyjs', '/home/coder/project/xpra-html5/html5/js/lib/jquery-ui.js', '-o', '/usr/share/xpra/www/js/lib/jquery-ui.js', '--compress'],),{'stdout': -1, 'stderr': -1}: [Errno 2] No such file or directory: 'uglifyjs'
Error: failed to minify 'jquery-ui.js', command ['uglifyjs', '/home/coder/project/xpra-html5/html5/js/lib/jquery-ui.js', '-o', '/usr/share/xpra/www/js/lib/jquery-ui.js', '--compress'] returned error -1
minified js/lib/jquery-ui.js
error running (['uglifyjs', '/home/coder/project/xpra-html5/html5/js/lib/StreamSaver.js.tmp', '-o', '/usr/share/xpra/www/js/lib/StreamSaver.js', '--compress'],),{'stdout': -1, 'stderr': -1}: [Errno 2] No such file or directory: 'uglifyjs'
Error: failed to minify 'StreamSaver.js', command ['uglifyjs', '/home/coder/project/xpra-html5/html5/js/lib/StreamSaver.js.tmp', '-o', '/usr/share/xpra/www/js/lib/StreamSaver.js', '--compress'] returned error -1
minified js/lib/StreamSaver.js
error running (['uglifyjs', '/home/coder/project/xpra-html5/html5/js/lib/simple-keyboard.js', '-o', '/usr/share/xpra/www/js/lib/simple-keyboard.js', '--compress'],),{'stdout': -1, 'stderr': -1}: [Errno 2] No such file or directory: 'uglifyjs'
Error: failed to minify 'simple-keyboard.js', command ['uglifyjs', '/home/coder/project/xpra-html5/html5/js/lib/simple-keyboard.js', '-o', '/usr/share/xpra/www/js/lib/simple-keyboard.js', '--compress'] returned error -1
minified js/lib/simple-keyboard.js
error running (['uglifyjs', '/home/coder/project/xpra-html5/html5/js/lib/broadway/Decoder.js.tmp', '-o', '/usr/share/xpra/www/js/lib/broadway/Decoder.js', '--compress'],),{'stdout': -1, 'stderr': -1}: [Errno 2] No such file or directory: 'uglifyjs'
Error: failed to minify 'Decoder.js', command ['uglifyjs', '/home/coder/project/xpra-html5/html5/js/lib/broadway/Decoder.js.tmp', '-o', '/usr/share/xpra/www/js/lib/broadway/Decoder.js', '--compress'] returned error -1
minified js/lib/broadway/Decoder.js
copied js/lib/broadway/AUTHORS
copied js/lib/broadway/LICENSE
error running (['uglifyjs', '/home/coder/project/xpra-html5/html5/js/lib/aurora/aurora-xpra.js', '-o', '/usr/share/xpra/www/js/lib/aurora/aurora-xpra.js', '--compress'],),{'stdout': -1, 'stderr': -1}: [Errno 2] No such file or directory: 'uglifyjs'
Error: failed to minify 'aurora-xpra.js', command ['uglifyjs', '/home/coder/project/xpra-html5/html5/js/lib/aurora/aurora-xpra.js', '-o', '/usr/share/xpra/www/js/lib/aurora/aurora-xpra.js', '--compress'] returned error -1
minified js/lib/aurora/aurora-xpra.js
error running (['uglifyjs', '/home/coder/project/xpra-html5/html5/js/lib/aurora/mp3.js.tmp', '-o', '/usr/share/xpra/www/js/lib/aurora/mp3.js', '--compress'],),{'stdout': -1, 'stderr': -1}: [Errno 2] No such file or directory: 'uglifyjs'
Error: failed to minify 'mp3.js', command ['uglifyjs', '/home/coder/project/xpra-html5/html5/js/lib/aurora/mp3.js.tmp', '-o', '/usr/share/xpra/www/js/lib/aurora/mp3.js', '--compress'] returned error -1
minified js/lib/aurora/mp3.js
error running (['uglifyjs', '/home/coder/project/xpra-html5/html5/js/lib/aurora/aac.js.tmp', '-o', '/usr/share/xpra/www/js/lib/aurora/aac.js', '--compress'],),{'stdout': -1, 'stderr': -1}: [Errno 2] No such file or directory: 'uglifyjs'
Error: failed to minify 'aac.js', command ['uglifyjs', '/home/coder/project/xpra-html5/html5/js/lib/aurora/aac.js.tmp', '-o', '/usr/share/xpra/www/js/lib/aurora/aac.js', '--compress'] returned error -1
minified js/lib/aurora/aac.js
error running (['uglifyjs', '/home/coder/project/xpra-html5/html5/js/lib/aurora/flac.js.tmp', '-o', '/usr/share/xpra/www/js/lib/aurora/flac.js', '--compress'],),{'stdout': -1, 'stderr': -1}: [Errno 2] No such file or directory: 'uglifyjs'
Error: failed to minify 'flac.js', command ['uglifyjs', '/home/coder/project/xpra-html5/html5/js/lib/aurora/flac.js.tmp', '-o', '/usr/share/xpra/www/js/lib/aurora/flac.js', '--compress'] returned error -1
minified js/lib/aurora/flac.js
error running (['uglifyjs', '/home/coder/project/xpra-html5/html5/js/lib/aurora/aurora.js.tmp', '-o', '/usr/share/xpra/www/js/lib/aurora/aurora.js', '--compress'],),{'stdout': -1, 'stderr': -1}: [Errno 2] No such file or directory: 'uglifyjs'
Error: failed to minify 'aurora.js', command ['uglifyjs', '/home/coder/project/xpra-html5/html5/js/lib/aurora/aurora.js.tmp', '-o', '/usr/share/xpra/www/js/lib/aurora/aurora.js', '--compress'] returned error -1
minified js/lib/aurora/aurora.js
symlinked /usr/share/xpra/www/background.png from /usr/share/backgrounds/ubuntu-default-greyscale-wallpaper.png
coder@devrel-x-xpra-temporary-v1-9f8fb923f0-vdi-0:~/project/xpra-html5$ 
coder@devrel-x-xpra-temporary-v1-9f8fb923f0-vdi-0:~/project/xpra-html5$ xdg-open http://localhost:10001
coder@devrel-x-xpra-temporary-v1-9f8fb923f0-vdi-0:~/project/xpra-html5$ [6626:6657:0529/213111.741620:ERROR:bus.cc(398)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[6626:6657:0529/213111.742640:ERROR:bus.cc(398)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[6626:6665:0529/213111.746507:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 6668: Permission denied (13)
[6626:6665:0529/213111.772444:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 6671: Permission denied (13)
[6626:6657:0529/213111.775432:ERROR:bus.cc(398)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[6626:6657:0529/213111.775469:ERROR:bus.cc(398)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[6626:6657:0529/213111.894940:ERROR:bus.cc(398)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[6626:6657:0529/213111.895026:ERROR:bus.cc(398)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[6626:6665:0529/213112.003860:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 6707: Permission denied (13)
[6626:6665:0529/213112.006746:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 6708: Permission denied (13)
[6668:6668:0529/213112.013906:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
[6626:6665:0529/213112.119915:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 6743: Permission denied (13)
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[6743:6743:0529/213112.373612:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
[6626:6665:0529/213112.399411:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 6779: Permission denied (13)
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[6779:6779:0529/213112.513809:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.^C
coder@devrel-x-xpra-temporary-v1-9f8fb923f0-vdi-0:~/project/xpra-html5$ 
coder@devrel-x-xpra-temporary-v1-9f8fb923f0-vdi-0:~/project/xpra-html5$ xpra list
Found the following xpra sessions:
/run/xpra:
        INACCESSIBLE session at :1
coder@devrel-x-xpra-temporary-v1-9f8fb923f0-vdi-0:~/project/xpra-html5$ 
@JanCVanB JanCVanB added bug Something isn't working documentation Improvements or additions to documentation invalid This doesn't seem right labels May 29, 2022
@JanCVanB
Copy link
Collaborator Author

Oh, and here's a screenshot of it being even more broken now:
Screenshot from 2022-05-29 15-35-44

@JanCVanB
Copy link
Collaborator Author

Here's what it looked like before, when it was only kind of broken (client connected, but my custom error message isn't appearing in the console):
Screenshot from 2022-05-29 06-45-03

@JanCVanB
Copy link
Collaborator Author

Are these sudo ./setup.py install error messages critical?

...
error running (['uglifyjs', '/home/coder/project/xpra-html5/html5/js/Client.js.tmp', '-o', '/usr/share/xpra/www/js/Client.js', '--compress'],),{'stdout': -1, 'stderr': -1}: [Errno 2] No such file or directory: 'uglifyjs'
Error: failed to minify 'Client.js', command ['uglifyjs', '/home/coder/project/xpra-html5/html5/js/Client.js.tmp', '-o', '/usr/share/xpra/www/js/Client.js', '--compress'] returned error -1
minified js/Client.js
error running (['uglifyjs', '/home/coder/project/xpra-html5/html5/js/MediaSourceUtil.js.tmp', '-o', '/usr/share/xpra/www/js/MediaSourceUtil.js', '--compress'],),{'stdout': -1, 'stderr': -1}: [Errno 2] No such file or directory: 'uglifyjs'
Error: failed to minify 'MediaSourceUtil.js', command ['uglifyjs', '/home/coder/project/xpra-html5/html5/js/MediaSourceUtil.js.tmp', '-o', '/usr/share/xpra/www/js/MediaSourceUtil.js', '--compress'] returned error -1
minified js/MediaSourceUtil.js
...

@JanCVanB
Copy link
Collaborator Author

I decided to sudo rm the one thing in /run/xpra/, and now instead of an inaccessible session I have no sessions... but I still can't start one.

coder@devrel-x-xpra-temporary-v1-9f8fb923f0-vdi-0:~/project/xpra-html5$ which xpra
/usr/bin/xpra
coder@devrel-x-xpra-temporary-v1-9f8fb923f0-vdi-0:~/project/xpra-html5$ ls /run/xpra
coder@devrel-x-xpra-temporary-v1-9f8fb923f0-vdi-0:~/project/xpra-html5$ xpra list
No xpra sessions found
coder@devrel-x-xpra-temporary-v1-9f8fb923f0-vdi-0:~/project/xpra-html5$ xpra start --start=xterm --bind-tcp=0.0.0.0:10001
coder@devrel-x-xpra-temporary-v1-9f8fb923f0-vdi-0:~/project/xpra-html5$ 2022-05-29 22:36:35,267 Warning: failed to create script directory '/run/user/1000/xpra':
2022-05-29 22:36:35,268  [Errno 2] No such file or directory: '/run/user/1000/xpra'
2022-05-29 22:36:35,268  ($XDG_RUNTIME_DIR has not been created?)
Entering daemon mode; any further errors will be reported to:
  /tmp/S8870.log

coder@devrel-x-xpra-temporary-v1-9f8fb923f0-vdi-0:~/project/xpra-html5$ xpra list
No xpra sessions found
coder@devrel-x-xpra-temporary-v1-9f8fb923f0-vdi-0:~/project/xpra-html5$ 

@totaam
Copy link
Collaborator

totaam commented May 30, 2022

I seemingly successfully updated xpra-html5 by running sudo ./setup.py install

Make sure you wipe out any previous installation so all the files you are left with are from the new install:

rm -fr /usr/share/xpra/www/*

N: Ignoring file 'xpra.list.1' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension

You must have downloaded the xpra.list twice and wget then created a .1 copy.

The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 18ADB31CF18AD6BB

For Ubuntu Focal, you need to import xpra-2018.gpg.
The gory details are linked from Xpra-org/xpra#1828

E: The repository 'https://xpra.org focal InRelease' is not signed.

So whatever you installed is not from the xpra repo, and that's not going to work well: https://github.com/Xpra-org/xpra/wiki/Distribution-Packages-Ubuntu

Sure enough, I see:

Unpacking xpra (3.0.6+dfsg1-1build1) ...

That's so old, broken and insecure it's a miracle it managed to run at all.

error running (['uglifyjs', '/ ...

You don't have uglifyjs installed - this should not be fatal, just ugly.

It does mean that files from the previous package installation may take precedence... this would explain your problem.

@JanCVanB
Copy link
Collaborator Author

That all makes sense, thank you! I'll try using the 2018 key and installing uglifyjs.

@JanCVanB
Copy link
Collaborator Author

Hmm, after importing the 2018 key with sudo wget -O "/usr/share/keyrings/xpra-2018.gpg" https://xpra.org/xpra-2018.gpg, I still get the following sadness:

...
Err:8 https://xpra.org focal InRelease                      
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 18ADB31CF18AD6BB
...
W: GPG error: https://xpra.org focal InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 18ADB31CF18AD6BB
E: The repository 'https://xpra.org focal InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
...
Preparing to unpack .../xpra_3.0.6+dfsg1-1build1_amd64.deb ...
Unpacking xpra (3.0.6+dfsg1-1build1) ...
Setting up xpra (3.0.6+dfsg1-1build1) ...
...

Note: Before this, I had Xpra completely wiped from my /usr/ dir, since I'm working in a Docker container that wipes everything other than the /home/ and /nix/ dirs every time I restart.

@JanCVanB
Copy link
Collaborator Author

JanCVanB commented May 30, 2022

(on the bright side, sudo npm install --global uglifyjs eliminated all sudo ./setup.py install errors/warnings!)

@totaam
Copy link
Collaborator

totaam commented May 30, 2022

My advice at this point, compounded by https://github.com/Xpra-org/xpra/wiki/Distribution-Packages, is to not use Debian or Ubuntu...

OK, I'll look into it but I'm getting really annoyed at this constant Debian inflicted waste of my time.
I've spend countless hours changing keys, repositories meta data and layout, download and install instructions.. etc
And it still doesn't work properly - whereas it did before.

@JanCVanB
Copy link
Collaborator Author

Personally, I can containerize into a non-Debian-based environment, so don't dive back into that hole on my account! I'm sorry to hear about that tedious maintenance burden.

@JanCVanB
Copy link
Collaborator Author

JanCVanB commented May 30, 2022

Despite your recommendation, I was seemingly able to install xpra from source in my Ubuntu 20.04 environment with the following commands:

sudo apt-get install -y \
  libxkbfile-dev \
  libxresdev \
  pandoc \
  pkg-config \
  python3-cairo-dev \
  python3-gi-dev \
  python3-pip
sudo pip3 install Cython

cd ~/project
git clone https://github.com/Xpra-org/xpra
cd xpra
sudo ./setup.py install

However, in line with your recommendation, I can't confirm that it actually worked:

coder@devrel-x-xpra-temporary-v1-9f8fb923f0-vdi-0:~/project/xpra-html5$ xpra version
Warning: XDG_RUNTIME_DIR is not defined
 and '/run/user/1000' does not exist
 using '/tmp'
xpra initialization error:
 cannot find any live servers to connect to
coder@devrel-x-xpra-temporary-v1-9f8fb923f0-vdi-0:~/project/xpra-html5$ xpra list
Warning: XDG_RUNTIME_DIR is not defined
 and '/run/user/1000' does not exist
 using '/tmp'
No xpra sessions found
coder@devrel-x-xpra-temporary-v1-9f8fb923f0-vdi-0:~/project/xpra-html5$ xpra start --start=xterm --bind-tcp=0.0.0.0:10001
Warning: XDG_RUNTIME_DIR is not defined
 and '/run/user/1000' does not exist
 using '/tmp'
coder@devrel-x-xpra-temporary-v1-9f8fb923f0-vdi-0:~/project/xpra-html5$ Entering daemon mode; any further errors will be reported to:
  /tmp/xpra/S8666/server.log

coder@devrel-x-xpra-temporary-v1-9f8fb923f0-vdi-0:~/project/xpra-html5$ 
coder@devrel-x-xpra-temporary-v1-9f8fb923f0-vdi-0:~/project/xpra-html5$ xpra version
Warning: XDG_RUNTIME_DIR is not defined
 and '/run/user/1000' does not exist
 using '/tmp'
xpra initialization error:
 cannot find any live servers to connect to
coder@devrel-x-xpra-temporary-v1-9f8fb923f0-vdi-0:~/project/xpra-html5$ xpra list
Warning: XDG_RUNTIME_DIR is not defined
 and '/run/user/1000' does not exist
 using '/tmp'
No xpra sessions found
coder@devrel-x-xpra-temporary-v1-9f8fb923f0-vdi-0:~/project/xpra-html5$ 

@totaam
Copy link
Collaborator

totaam commented May 30, 2022

That's a different problem.
XDG_RUNTIME_DIR should be set when using a desktop environment.
In a container, you may want to use /tmp by setting XDG_RUNTIME_DIR=/tmp to avoid those warnings.

Once that's done, it should work OK.
If not, then run your server with --no-daemon or have a look at the log file it created. (/tmp/xpra/S8666/server.log above)

@JanCVanB
Copy link
Collaborator Author

🤦🏻 Why wasn't I looking at the log files...

--no-daemon is a great tip, thanks!

coder@devrel-x-xpra-temporary-v1-9f8fb923f0-vdi-0:~/project/xpra-html5$ export XDG_RUNTIME_DIR=/tmp
coder@devrel-x-xpra-temporary-v1-9f8fb923f0-vdi-0:~/project/xpra-html5$ xpra list
No xpra sessions found
coder@devrel-x-xpra-temporary-v1-9f8fb923f0-vdi-0:~/project/xpra-html5$ xpra start --start=xterm --bind-tcp=0.0.0.0:10001 --no-daemon
2022-05-30 14:21:15,943 Error: cannot enable SSH socket upgrades:
2022-05-30 14:21:15,944  No module named 'paramiko'
2022-05-30 14:21:15,944 created tcp socket '0.0.0.0:10001'
2022-05-30 14:21:15,946 no uinput module
xpra initialization error:
 failed to execute xvfb command ['Xvfb-for-Xpra-S9501', '+extension', 'GLX', '+extension', 'Composite', '-screen', '0', '8192x4096x24+32', '-nolisten', 'tcp', '-noreset', '-auth', '/home/coder/.Xauthority', '-dpi', '96', '-displayfd', '7']: [Errno 2] No such file or directory: 'Xvfb'
coder@devrel-x-xpra-temporary-v1-9f8fb923f0-vdi-0:~/project/xpra-html5$ 
(Xpra:9503): Gtk-CRITICAL **: 14:21:16.151: gtk_main_quit: assertion 'main_loops != NULL' failed

coder@devrel-x-xpra-temporary-v1-9f8fb923f0-vdi-0:~/project/xpra-html5$ 
coder@devrel-x-xpra-temporary-v1-9f8fb923f0-vdi-0:~/project/xpra-html5$ 

Screenshot from 2022-05-30 08-21-17

@JanCVanB
Copy link
Collaborator Author

sudo apt install xvfb moves me along to new errors, hooray!

@totaam
Copy link
Collaborator

totaam commented May 30, 2022

sudo apt install xvfb moves me along to new errors, hooray!

From https://github.com/Xpra-org/xpra/blob/master/docs/Build/Debian.md, to be able to run xpra, you are likely to need:

apt-get install xvfb python3-cairo python3-gi-cairo \
    python3-opengl python3-lz4 python3-rencode python3-pil

@JanCVanB
Copy link
Collaborator Author

JanCVanB commented May 30, 2022

Thanks! After just installing PIL, I see an xpra desktop background! Also, xpra version tells me 4.4-r31295 (gd5a721cc4), which is... an improvement, though I was expecting v5.

@totaam
Copy link
Collaborator

totaam commented May 30, 2022

After just installing PIL, I see an xpra desktop background!

Perhaps you didn't have any decent picture encoders before... and now you do.
(you should probably rebuild with at least webp and jpeg enabled)

tells me 4.4-r31295

That's your server version, xpra master branch is 4.4.
xpra-html5 master branch is now 6.x.

@JanCVanB
Copy link
Collaborator Author

xpra master branch is 4.4

Gah, of course, thanks.

Sorry for my various server/client confusions, and thanks for helping me debug my server setup in this thread!

@JanCVanB
Copy link
Collaborator Author

Success! I've gotten a custom console.error message to appear in the xpra-html5 client's browser console.

There's more server-related debugging to do (xterm isn't appearing anymore), but I'll close this issue for now.

Thank you very much!

@JanCVanB
Copy link
Collaborator Author

FWIW, here's the remaining debugging I'm looking at:
(meanwhile, the browser visuals look good, though xterm doesn't appear)

Server logs before client connects

2022-05-31 08:53:27,815 Error: cannot enable SSH socket upgrades:
2022-05-31 08:53:27,842  No module named 'paramiko'
2022-05-31 08:53:27,843 created tcp socket '0.0.0.0:10000'
2022-05-31 08:53:27,855 no uinput module
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
2022-05-31 08:53:29,636 pointer device emulation using XTest
2022-05-31 08:53:29,739 serving html content from '/usr/share/xpra/www'
2022-05-31 08:53:29,739 wrote pid 2894 to '/tmp/xpra/1/server.pid'
2022-05-31 08:53:29,761 Warning: failed to create socket directory '/run/user/1000/xpra'
2022-05-31 08:53:29,761  [Errno 13] Permission denied: '/run/user/1000'
2022-05-31 08:53:29,762 Warning: failed to create socket directory '/run/xpra'
2022-05-31 08:53:29,762  [Errno 13] Permission denied: '/run/xpra'
2022-05-31 08:53:29,762 Warning: socket directory '/tmp/xpra/1'
2022-05-31 08:53:29,762  expected permissions 0o700 but found 0o750
2022-05-31 08:53:29,762 Warning: cannot create socket '/run/user/1000/xpra/devrel-x-xpra-dev-9f8fb923f0-vdi-0-1':
2022-05-31 08:53:29,762  [Errno 2] No such file or directory
2022-05-31 08:53:29,762  ($XDG_RUNTIME_DIR has not been created?)
2022-05-31 08:53:29,763 cannot create group socket '/run/xpra/devrel-x-xpra-dev-9f8fb923f0-vdi-0-1'
2022-05-31 08:53:29,763  [Errno 2] No such file or directory
2022-05-31 08:53:29,763  /run/xpra does not exist
2022-05-31 08:53:29,763 created unix domain socket '/home/coder/.xpra/devrel-x-xpra-dev-9f8fb923f0-vdi-0-1'
2022-05-31 08:53:29,763 created unix domain socket '/tmp/xpra/1/socket'
2022-05-31 08:53:29,764 xvfb pid=2897
2022-05-31 08:53:29,784 Warning: failed to load the mdns publishers
2022-05-31 08:53:29,784  No module named 'zeroconf'
2022-05-31 08:53:29,785  No module named 'avahi'
2022-05-31 08:53:29,785  install 'python-avahi', 'python-zeroconf'
2022-05-31 08:53:29,785  or use the 'mdns=no' option
2022-05-31 08:53:29,805 D-Bus notification forwarding is available
2022-05-31 08:53:29,823 pulseaudio server started with pid 2933
2022-05-31 08:53:29,823  private server socket path:
2022-05-31 08:53:29,823  '/tmp/xpra/1/pulse/pulse/native'

(Xpra:2894): Gtk-CRITICAL **: 08:53:29.925: gtk_widget_realize: assertion 'widget->priv->anchored || GTK_IS_INVISIBLE (widget)' failed
2022-05-31 08:53:29,957 Warning: cannot watch for application menu changes without pyinotify:
2022-05-31 08:53:29,958  No module named 'pyinotify'
2022-05-31 08:53:29,967 Warning: webcam forwarding is disabled
2022-05-31 08:53:29,968  the virtual video directory '/sys/devices/virtual/video4linux' was not found
2022-05-31 08:53:29,968  make sure that the 'v4l2loopback' kernel module is installed and loaded
2022-05-31 08:53:29,968  or use the 'webcam=no' option
2022-05-31 08:53:29,969 found 0 virtual video devices for webcam forwarding
Warning: failed to import GStreamer 1.x:
 Namespace Gst not available
2022-05-31 08:53:30,000 printer forwarding enabled using postscript and pdf
2022-05-31 08:53:30,017 Error spawning child 'xterm':
2022-05-31 08:53:30,017  [Errno 2] No such file or directory: 'xterm'
2022-05-31 08:53:30,025 Error: failed to query sound subsystem:
2022-05-31 08:53:30,025  query did not return any data
2022-05-31 08:53:30,031 31.4GB of system memory
2022-05-31 08:53:30,287 waiting for initialization thread to complete
2022-05-31 08:53:30,289 xpra is ready.
2022-05-31 08:53:30,290 xpra X11 seamless version 4.3.3-r0 64-bit
2022-05-31 08:53:30,291  uid=1000 (coder), gid=1000 (coder)
2022-05-31 08:53:30,291  running with pid 2894 on Linux Ubuntu 20.04 focal
2022-05-31 08:53:30,294  connected to X11 display :1 with 24 bit colors
2022-05-31 08:53:30,929 OpenGL is supported on display ':1'
2022-05-31 08:53:30,929  using 'llvmpipe (LLVM 12.0.0, 256 bits)' renderer
2022-05-31 08:53:30,939 started command 'ibus-daemon --xim --verbose --replace --panel=disable --desktop=xpra --daemonize' with pid 2967
2022-05-31 08:53:32,864 loaded 50 start menu entries from 9 sub-menus in 2.9 seconds

Server logs after client connects

2022-05-31 08:55:41,411 Handshake complete; enabling connection
2022-05-31 08:55:41,433 Warning: the python netifaces package is missing
2022-05-31 08:55:41,436 HTML5 Linux Chrome client version 5.0-r1237
2022-05-31 08:55:41,444 setting keyboard layout to 'us'
2022-05-31 08:55:41,528  client root window size is 945x1028 with 1 display:
2022-05-31 08:55:41,529   HTML (250x272 mm - DPI: 96x96)
2022-05-31 08:55:41,529     Canvas
2022-05-31 08:55:42,037 server virtual display now set to 945x1028
2022-05-31 08:55:42,042  automatic picture encoding enabled, also available:
2022-05-31 08:55:42,043   jpeg, png, png/P, png/L, rgb32, rgb24, scroll
2022-05-31 08:55:42,062 DPI set to 96 x 96
2022-05-31 08:55:42,099 client   1 received xdg start menu data
lpadmin: Printer drivers are deprecated and will stop working in a future version of CUPS.
lpadmin: Unauthorized
2022-05-31 08:55:42,111 lpadmin failed and returned error code: 1
2022-05-31 08:55:42,111  verify that user 'coder' has all the required permissions
2022-05-31 08:55:42,111  for running: '/usr/sbin/lpadmin'
2022-05-31 08:55:42,111  full command: '/usr/sbin/lpadmin' '-p' 'HTML5-client' '-v' 'xpraforwarder:/tmp?display=%3A1&source=513e1d88-7784-ddff-895e-318cefda4576&socket-path=%2Ftmp%2Fxpra%2F1%2Fsocket&remote-printer=HTML5+client&remote-device-uri=None&mimetype=application%2Fpdf' '-D' 'Print to PDF in client browser' '-L' 'via xpra' '-u' 'allow:coder' '-E' '-o' 'printer-is-shared=false' '-P' '/usr/share/ppd/cupsfilters/Generic-PDF_Printer-PDF.ppd'
2022-05-31 08:55:42,144 client   1 startup complete
2022-05-31 08:55:42,145 client   1 connection-established
2022-05-31 08:55:42,148 client   1 update encodings: encoding.rgb.version,encoding.pillow.version,encoding.cython.version,encodings,encodings.core,encodings.allowed,encodings.lossless,encodings.with_speed,encodings.with_quality,encodings.with_lossless_mode

Client logs

coder@devrel-x-xpra-dev-9f8fb923f0-vdi-0:~/project/xpra-html5$ xdg-open http://localhost:10000
coder@devrel-x-xpra-dev-9f8fb923f0-vdi-0:~/project/xpra-html5$ [3222:3254:0531/085539.882388:ERROR:bus.cc(398)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[3222:3254:0531/085539.882732:ERROR:bus.cc(398)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[3222:3260:0531/085539.888372:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 3263: Permission denied (13)
[3222:3260:0531/085539.906465:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 3266: Permission denied (13)
[3222:3254:0531/085539.907863:ERROR:bus.cc(398)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[3222:3254:0531/085539.907908:ERROR:bus.cc(398)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[3222:3254:0531/085540.000118:ERROR:bus.cc(398)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[3222:3254:0531/085540.000176:ERROR:bus.cc(398)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[3222:3260:0531/085540.033048:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 3307: Permission denied (13)
[3263:3263:0531/085540.033022:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
[3222:3260:0531/085540.035107:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 3309: Permission denied (13)
[3222:3260:0531/085540.089354:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 3339: Permission denied (13)
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[3339:3339:0531/085540.272373:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
[3222:3260:0531/085540.290257:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 3375: Permission denied (13)
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[3375:3375:0531/085540.355233:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
[3222:3260:0531/085543.104747:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 3572: Permission denied (13)
[3222:3254:0531/085553.159809:ERROR:bus.cc(398)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[3222:3254:0531/085553.159857:ERROR:bus.cc(398)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[3222:3260:0531/085554.735924:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 3834: Permission denied (13)
[3222:3260:0531/085640.126786:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 3855: Permission denied (13)
[3222:3260:0531/085640.764036:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 3860: Permission denied (13)
[3222:3260:0531/085642.889978:ERROR:zygote_host_impl_linux.cc(263)] Failed to adjust OOM score of renderer with pid 3878: Permission denied (13)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants