Docker container: lots of errors

Support for Ubuntu and other Desktop Linux distributions
Post Reply
User avatar
J. Scott Elblein
Posts: 37
Joined: 11 Jul 2014, 06:57

Docker container: lots of errors

Post by J. Scott Elblein »

First off, LTNS @rednoah :D

So, I just ran a basic startup of the latest container, and it shows a lot of errors/warnings; particularly having to do with setting a user other than root and no permissions, but there's also an error near the end mentioning a bad .menu?
01/09/2023 12:44:03 PM
+ xpra start --start-child=filebot --exit-with-children --bind-tcp=0.0.0.0:5454 --tcp-auth=none --daemon=no
01/09/2023 12:44:03 PM
Warning: XDG_RUNTIME_DIR is not defined
01/09/2023 12:44:03 PM
and '/run/user/1000' does not exist
01/09/2023 12:44:03 PM
using '/tmp'
01/09/2023 12:44:04 PM
2023-01-09 18:44:04,099 created tcp socket '0.0.0.0:5454'
01/09/2023 12:44:04 PM
2023-01-09 18:44:04,104 no uinput module (not usually needed)
01/09/2023 12:44:04 PM
_XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.
01/09/2023 12:44:05 PM
2023-01-09 18:44:05,802 pointer device emulation using XTest
01/09/2023 12:44:05 PM
2023-01-09 18:44:05,856 serving html content from '/usr/share/xpra/www'
01/09/2023 12:44:05 PM
2023-01-09 18:44:05,857 wrote pid 46 to '/tmp/xpra/0/server.pid'
01/09/2023 12:44:05 PM
2023-01-09 18:44:05,881 Warning: failed to create socket directory '/run/user/1000/xpra'
01/09/2023 12:44:05 PM
2023-01-09 18:44:05,881 [Errno 13] Permission denied: '/run/user/1000'
01/09/2023 12:44:05 PM
2023-01-09 18:44:05,882 Warning: failed to create socket directory '/run/xpra'
01/09/2023 12:44:05 PM
2023-01-09 18:44:05,882 [Errno 13] Permission denied: '/run/xpra'
01/09/2023 12:44:05 PM
2023-01-09 18:44:05,882 Warning: socket directory '/tmp/xpra/0'
01/09/2023 12:44:05 PM
2023-01-09 18:44:05,882 expected permissions 700 but found 750
01/09/2023 12:44:05 PM
2023-01-09 18:44:05,883 Warning: cannot create socket '/run/user/1000/xpra/filebot-0':
01/09/2023 12:44:05 PM
2023-01-09 18:44:05,883 [Errno 2] No such file or directory
01/09/2023 12:44:05 PM
2023-01-09 18:44:05,883 ($XDG_RUNTIME_DIR has not been created?)
01/09/2023 12:44:05 PM
2023-01-09 18:44:05,883 cannot create group socket '/run/xpra/filebot-0'
01/09/2023 12:44:05 PM
2023-01-09 18:44:05,883 [Errno 2] No such file or directory
01/09/2023 12:44:05 PM
2023-01-09 18:44:05,883 /run/xpra does not exist
01/09/2023 12:44:05 PM
2023-01-09 18:44:05,884 created unix domain socket '/data/filebot/.xpra/filebot-0'
01/09/2023 12:44:05 PM
2023-01-09 18:44:05,884 created unix domain socket '/tmp/xpra/0/socket'
01/09/2023 12:44:05 PM
2023-01-09 18:44:05,886 xvfb pid=50
01/09/2023 12:44:05 PM
2023-01-09 18:44:05,987 watching for applications menu changes in:
01/09/2023 12:44:05 PM
2023-01-09 18:44:05,987 '/usr/share/applications'
01/09/2023 12:44:05 PM
2023-01-09 18:44:05,990 started command `filebot` with pid 76
01/09/2023 12:44:06 PM
2023-01-09 18:44:06,146 Error parsing xdg menu data:
01/09/2023 12:44:06 PM
2023-01-09 18:44:06,146 ParsingError in file '/etc/xdg/menus/kde-debian-menu.menu', File not found
01/09/2023 12:44:06 PM
2023-01-09 18:44:06,146 this is either a bug in python-xdg,
01/09/2023 12:44:06 PM
2023-01-09 18:44:06,147 or an invalid system menu configuration
01/09/2023 12:44:06 PM
2023-01-09 18:44:06,216 15.6GB of system memory
01/09/2023 12:44:06 PM
Initialize Cache folder: /data/filebot/cache
01/09/2023 12:44:06 PM
Initialize Logs folder: /data/filebot/logs
01/09/2023 12:44:06 PM
Initialize TemporaryFiles folder: /data/filebot/tmp
01/09/2023 12:44:06 PM
2023-01-09 18:44:06,341 started command `ibus-daemon` with pid 101
01/09/2023 12:44:06 PM
2023-01-09 18:44:06,342 xpra is ready.
01/09/2023 12:44:06 PM
2023-01-09 18:44:06,342 xpra X11 seamless version 4.4.3-r0 64-bit
01/09/2023 12:44:06 PM
2023-01-09 18:44:06,343 uid=1000 (filebot), gid=1000 (filebot)
01/09/2023 12:44:06 PM
2023-01-09 18:44:06,343 running with pid 46 on Linux Ubuntu 22.04 jammy
01/09/2023 12:44:06 PM
2023-01-09 18:44:06,344 connected to X11 display :0 with 24 bit colors
01/09/2023 12:44:06 PM
Initialize new disk cache: /data/filebot/cache/0
01/09/2023 12:44:06 PM
Jan 09, 2023 12:44:06 PM java.util.prefs.FileSystemPreferences$1 run
01/09/2023 12:44:06 PM
INFO: Created user preferences directory.
01/09/2023 12:44:09 PM
2023-01-09 18:44:09,333 Error parsing xdg menu data:
01/09/2023 12:44:09 PM
2023-01-09 18:44:09,333 ParsingError in file '/etc/xdg/menus/kde-debian-menu.menu', File not found
01/09/2023 12:44:09 PM
2023-01-09 18:44:09,333 this is either a bug in python-xdg,
01/09/2023 12:44:09 PM
2023-01-09 18:44:09,333 or an invalid system menu configuration
Here's my Compose:

Code: Select all

 filebot:
    image: 'rednoah/filebot:xpra'
    hostname: 'filebot'
    environment:
      TZ: 'America/Chicago'
      PUID: '1000'
      PGID: '1000'
    volumes:
      - '/opt/docker/configs/filebot/config:/data:rw'
      - '/mnt/e/Media/.downloads/.filebot/media:/volume1:rw' 
    networks:
      - 'htpc'
      - 'security'
    deploy:
        mode: 'replicated'
        replicas: 1
        placement:
          constraints:
            - 'node.labels.Main == true'
        resources:
          limits:
            memory: '1G'
        restart_policy:
          condition: 'any'
Few questions:

- How to resolve the errors/warnings mentioned?
- Is there a list of available docker environment vars for this container?
- How can I set the container to automatically maximize the Filebot gui on startup?
- I like to set a max memory limit on my containers to keep them reigned in; what would you recommend the max be for FB?

TIA
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Docker container: lots of errors

Post by rednoah »

1.
Xpra is booting up an entire Desktop environment in a container. Just ignore all the console output if it works. Check the last few lines if it crashes on startup.

:?: What's not working? Are you worried about anything specific?



2.
You can check Dockerfile and Dockerfile.xpra for default ENV values:
https://github.com/filebot/filebot-docker

:idea: You can use FILEBOT_OPTS and XPRA_OPTS to pass extra command-line options to the filebot and xpra commands. You can pass any environment variable.

:?: What settings specifically are you interested in? What are you trying to achieve by passing some environment variable?



3.
IDK. Xpra might have an option for that, or not:
https://xpra.org/manual.html



4.
IDK. Running and entire Desktop environment inside a container is probably not very memory efficient. I'd run a test with 256M / 512M / 1GB / 2GB and see what happens. If it doesn't run, bump it up a level. Please let us know what you end up with.
:idea: Please read the FAQ and How to Request Help.
User avatar
J. Scott Elblein
Posts: 37
Joined: 11 Jul 2014, 06:57

Re: Docker container: lots of errors

Post by J. Scott Elblein »

1. Ok, just making sure everything is kosher. I'm one of those OCD people who hates seeing any errors and try to fix em all up, lol. Especially permissions type errors. As far as getting FB up and running, it looks good so far (for the most part; I am having issues with importing my prefs but I'll make a new thread for that, to keep things separate).

2. No reason in particular for asking other than being a tweaker, and liking to see what options are available. Sometimes (often) I'm not aware of what an app can do until I see some of it's available options.

3. I'm coming from attempting to use Coppit's (outdated) container that used Guacamole, and it automatically loaded FB maximized, so I was assuming there might also be a way in this container.

4. I have noticed so far that it uses up to about 450mb, but haven't run it through any renames and moving files around yet, so wasn't sure how much ultimately it might use on average and thought you might've noticed over time w/your own usage. I will report back once I run it through the mill.
User avatar
J. Scott Elblein
Posts: 37
Joined: 11 Jul 2014, 06:57

Re: Docker container: lots of errors

Post by J. Scott Elblein »

RE: #3, looks like these env vars can be used in docker compose and will resize the window on startup:

Code: Select all

 
DISPLAY_WIDTH: '1920'
DISPLAY_HEIGHT: '1440'
But it's also keeping it's top-left X,Y axes of the window in the same place, so the window gets bigger, but most of it gets hidden to the lower right of the screen (offscreen) and you still have to drag it within view. Been trying to dig up any other vars I could use to place the axes at 0,0, but no luck so far.

Would be nice if I could just use something like Screen.Width and Screen.Height, or even better App.Maximized. :lol:
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Docker container: lots of errors

Post by rednoah »

Please create a feature request for "full screen applications" with the xpra developers. If it's not somehow possible already, then it's a great feature request.
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Docker container: lots of errors

Post by rednoah »

I've update the xpra container to hide the error messages. I've also noticed that full screen mode works just fine. Just maximize the FileBot window in the HTML5 viewer and it'll stay that way. If I close the browser and then reconnect the FileBot window will again be visible with the same size and position, so it'll stay maximized once maximized.
:idea: Please read the FAQ and How to Request Help.
Post Reply