Skip to content

[Bug] Can't access volume folders | TrueNAS scale #244

@mawanda-jun

Description

@mawanda-jun

Current Behavior

I'm trying to run this image in TrueNAS Electric Eel (24.10) but I really can't access my mounted folders from the GUI (I can through attached shell). This is my docker compose:

services:
  makemkv:
    container_name: makemkv
    environment:
      - USER_ID=568
      - GROUP_ID=568
      - TZ=Europe/Rome
    image: jlesage/makemkv
    ports:
      - '5800:5800'
    volumes:
      - /mnt/something/configs/makemkv:/config:rw
      - /mnt/something/media/movies:/media/movies:rw
      - /mnt/something/media/tv:/media/tv:rw

It goes without saying that I need to use the default apps user app, which is commonly registered as the 568 id.

When attaching to the running container, the user id gives is the 0 (root), but I can access all my files in the mounted directories (and subdirectories). However, when I try to access them through the WebUI I'm getting this permission denied in the logs:

2025-04-13 19:07:30.915943+00:00[app         ] inotify_add_watch(/media/movies/BD full) failed: (Permission denied)
2025-04-13 19:07:43.391163+00:00[app         ] inotify_add_watch(/media/tv/Film) failed: (Permission denied)

I tried debugging the code but I resulted asking it here. What can I do, and is it a bug or am I missing smt in the configuration?

Thank you in advance!

Expected Behavior

No response

Steps To Reproduce

No response

Environment

  • OS:
  • OS version:
  • CPU:
  • Docker version:
  • Device model:
  • Browser/OS:

Container creation

services:
makemkv:
container_name: makemkv
environment:
- USER_ID=568
- GROUP_ID=568
- TZ=Europe/Rome
image: jlesage/makemkv
ports:
- '5800:5800'
volumes:
- /mnt/something/configs/makemkv:/config:rw
- /mnt/something/media/movies:/media/movies:rw
- /mnt/something/media/tv:/media/tv:rw

Container log

2025-04-13 19:07:01.990457+00:00[init        ] container is starting...
2025-04-13 19:07:01.990538+00:00[cont-env    ] loading container environment variables...
2025-04-13 19:07:01.993893+00:00[cont-env    ] APP_NAME: loading...
2025-04-13 19:07:01.996883+00:00[cont-env    ] APP_VERSION: loading...
2025-04-13 19:07:01.999325+00:00[cont-env    ] DISPLAY: executing...
2025-04-13 19:07:02.003635+00:00[cont-env    ] DISPLAY: terminated successfully.
2025-04-13 19:07:02.004029+00:00[cont-env    ] DISPLAY: loading...
2025-04-13 19:07:02.007157+00:00[cont-env    ] DOCKER_IMAGE_PLATFORM: loading...
2025-04-13 19:07:02.010229+00:00[cont-env    ] DOCKER_IMAGE_VERSION: loading...
2025-04-13 19:07:02.013074+00:00[cont-env    ] EGL_LOG_LEVEL: executing...
2025-04-13 19:07:02.018265+00:00[cont-env    ] EGL_LOG_LEVEL: terminated successfully.
2025-04-13 19:07:02.018682+00:00[cont-env    ] EGL_LOG_LEVEL: loading...
2025-04-13 19:07:02.021349+00:00[cont-env    ] GSK_RENDERER: executing...
2025-04-13 19:07:02.024157+00:00[cont-env    ] GSK_RENDERER: terminated successfully.
2025-04-13 19:07:02.024508+00:00[cont-env    ] GSK_RENDERER: loading...
2025-04-13 19:07:02.027027+00:00[cont-env    ] GTK2_RC_FILES: executing...
2025-04-13 19:07:02.031648+00:00[cont-env    ] GTK2_RC_FILES: terminated successfully.
2025-04-13 19:07:02.032106+00:00[cont-env    ] GTK2_RC_FILES: not setting variable.
2025-04-13 19:07:02.033351+00:00[cont-env    ] GTK_THEME: executing...
2025-04-13 19:07:02.037457+00:00[cont-env    ] GTK_THEME: terminated successfully.
2025-04-13 19:07:02.037814+00:00[cont-env    ] GTK_THEME: not setting variable.
2025-04-13 19:07:02.039026+00:00[cont-env    ] HOME: loading...
2025-04-13 19:07:02.041456+00:00[cont-env    ] PULSE_CONFIG_PATH: executing...
2025-04-13 19:07:02.045524+00:00[cont-env    ] PULSE_CONFIG_PATH: terminated successfully.
2025-04-13 19:07:02.045865+00:00[cont-env    ] PULSE_CONFIG_PATH: not setting variable.
2025-04-13 19:07:02.047033+00:00[cont-env    ] PULSE_COOKIE: executing...
2025-04-13 19:07:02.051120+00:00[cont-env    ] PULSE_COOKIE: terminated successfully.
2025-04-13 19:07:02.051483+00:00[cont-env    ] PULSE_COOKIE: not setting variable.
2025-04-13 19:07:02.052646+00:00[cont-env    ] PULSE_SERVER: executing...
2025-04-13 19:07:02.056911+00:00[cont-env    ] PULSE_SERVER: terminated successfully.
2025-04-13 19:07:02.057442+00:00[cont-env    ] PULSE_SERVER: not setting variable.
2025-04-13 19:07:02.058401+00:00[cont-env    ] QT_STYLE_OVERRIDE: executing...
2025-04-13 19:07:02.062505+00:00[cont-env    ] QT_STYLE_OVERRIDE: terminated successfully.
2025-04-13 19:07:02.062852+00:00[cont-env    ] QT_STYLE_OVERRIDE: not setting variable.
2025-04-13 19:07:02.064245+00:00[cont-env    ] SUP_GROUP_IDS_INTERNAL: executing...
2025-04-13 19:07:02.071088+00:00[cont-env    ] SUP_GROUP_IDS_INTERNAL: terminated successfully.
2025-04-13 19:07:02.071497+00:00[cont-env    ] SUP_GROUP_IDS_INTERNAL: not setting variable.
2025-04-13 19:07:02.073346+00:00[cont-env    ] TAKE_CONFIG_OWNERSHIP: loading...
2025-04-13 19:07:02.076144+00:00[cont-env    ] XDG_CACHE_HOME: loading...
2025-04-13 19:07:02.079075+00:00[cont-env    ] XDG_CONFIG_HOME: loading...
2025-04-13 19:07:02.081633+00:00[cont-env    ] XDG_DATA_HOME: loading...
2025-04-13 19:07:02.084325+00:00[cont-env    ] XDG_RUNTIME_DIR: loading...
2025-04-13 19:07:02.086899+00:00[cont-env    ] XDG_STATE_HOME: loading...
2025-04-13 19:07:02.089098+00:00[cont-env    ] container environment variables initialized.
2025-04-13 19:07:02.089155+00:00[cont-secrets] loading container secrets...
2025-04-13 19:07:02.089211+00:00[cont-secrets] container secrets loaded.
2025-04-13 19:07:02.089241+00:00[cont-init   ] executing container initialization scripts...
2025-04-13 19:07:02.091228+00:00[cont-init   ] 10-certs.sh: executing...
2025-04-13 19:07:02.095164+00:00[cont-init   ] 10-certs.sh: terminated successfully.
2025-04-13 19:07:02.096248+00:00[cont-init   ] 10-check-app-niceness.sh: executing...
2025-04-13 19:07:02.098115+00:00[cont-init   ] 10-check-app-niceness.sh: terminated successfully.
2025-04-13 19:07:02.099331+00:00[cont-init   ] 10-clean-logmonitor-states.sh: executing...
2025-04-13 19:07:02.101802+00:00[cont-init   ] 10-clean-logmonitor-states.sh: terminated successfully.
2025-04-13 19:07:02.102816+00:00[cont-init   ] 10-clean-tmp-dir.sh: executing...
2025-04-13 19:07:02.105629+00:00[cont-init   ] 10-clean-tmp-dir.sh: terminated successfully.
2025-04-13 19:07:02.106670+00:00[cont-init   ] 10-fontconfig-cache-dir.sh: executing...
2025-04-13 19:07:02.108627+00:00[cont-init   ] 10-fontconfig-cache-dir.sh: terminated successfully.
2025-04-13 19:07:02.109653+00:00[cont-init   ] 10-init-users.sh: executing...
2025-04-13 19:07:02.138892+00:00[cont-init   ] 10-init-users.sh: terminated successfully.
2025-04-13 19:07:02.140052+00:00[cont-init   ] 10-nginx.sh: executing...
2025-04-13 19:07:02.159429+00:00[cont-init   ] 10-nginx.sh: terminated successfully.
2025-04-13 19:07:02.160739+00:00[cont-init   ] 10-openbox.sh: executing...
2025-04-13 19:07:02.285208+00:00[cont-init   ] 10-openbox.sh: terminated successfully.
2025-04-13 19:07:02.286537+00:00[cont-init   ] 10-pkgs-mirror.sh: executing...
2025-04-13 19:07:02.289031+00:00[cont-init   ] 10-pkgs-mirror.sh: terminated successfully.
2025-04-13 19:07:02.290238+00:00[cont-init   ] 10-pulse.sh: executing...
2025-04-13 19:07:02.294536+00:00[cont-init   ] 10-pulse.sh: terminated successfully.
2025-04-13 19:07:02.295752+00:00[cont-init   ] 10-set-tmp-dir-perms.sh: executing...
2025-04-13 19:07:02.298477+00:00[cont-init   ] 10-set-tmp-dir-perms.sh: terminated successfully.
2025-04-13 19:07:02.299674+00:00[cont-init   ] 10-vnc-password.sh: executing...
2025-04-13 19:07:02.301765+00:00[cont-init   ] 10-vnc-password.sh: terminated successfully.
2025-04-13 19:07:02.302854+00:00[cont-init   ] 10-web-data.sh: executing...
2025-04-13 19:07:02.313372+00:00[cont-init   ] 10-web-data.sh: terminated successfully.
2025-04-13 19:07:02.314568+00:00[cont-init   ] 10-webauth.sh: executing...
2025-04-13 19:07:02.319266+00:00[cont-init   ] 10-webauth.sh: terminated successfully.
2025-04-13 19:07:02.320644+00:00[cont-init   ] 10-x11-unix.sh: executing...
2025-04-13 19:07:02.324554+00:00[cont-init   ] 10-x11-unix.sh: terminated successfully.
2025-04-13 19:07:02.325800+00:00[cont-init   ] 10-xdg-runtime-dir.sh: executing...
2025-04-13 19:07:02.330669+00:00[cont-init   ] 10-xdg-runtime-dir.sh: terminated successfully.
2025-04-13 19:07:02.331974+00:00[cont-init   ] 15-cjk-font.sh: executing...
2025-04-13 19:07:02.336102+00:00[cont-init   ] 15-cjk-font.sh: terminated successfully.
2025-04-13 19:07:02.337752+00:00[cont-init   ] 15-install-pkgs.sh: executing...
2025-04-13 19:07:02.340050+00:00[cont-init   ] 15-install-pkgs.sh: terminated successfully.
2025-04-13 19:07:02.341377+00:00[cont-init   ] 54-check-optical-drive.sh: executing...
2025-04-13 19:07:02.342947+00:00[cont-init   ] 54-check-optical-drive.sh: looking for usable optical drives...
2025-04-13 19:07:02.347068+00:00[cont-init   ] 54-check-optical-drive.sh: no usable optical drives found.
2025-04-13 19:07:02.348831+00:00[cont-init   ] 54-check-optical-drive.sh: terminated successfully.
2025-04-13 19:07:02.350140+00:00[cont-init   ] 55-makemkv.sh: executing...
2025-04-13 19:07:02.357947+00:00[cont-init   ] 55-makemkv.sh: checking for new beta key...
2025-04-13 19:07:03.626225+00:00[cont-init   ] 55-makemkv.sh: registration key already up-to-date.
2025-04-13 19:07:03.646519+00:00[cont-init   ] 55-makemkv.sh: terminated successfully.
2025-04-13 19:07:03.648589+00:00[cont-init   ] 56-autodiscripper.sh: executing...
2025-04-13 19:07:03.655108+00:00[cont-init   ] 56-autodiscripper.sh: terminated successfully.
2025-04-13 19:07:03.656526+00:00[cont-init   ] 85-take-config-ownership.sh: executing...
2025-04-13 19:07:03.674919+00:00[cont-init   ] 85-take-config-ownership.sh: terminated successfully.
2025-04-13 19:07:03.676008+00:00[cont-init   ] 89-info.sh: executing...
2025-04-13 19:07:03.678039+00:00╭――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――╮
2025-04-13 19:07:03.678939+00:00│                                                                      │
2025-04-13 19:07:03.679731+00:00│ Application:           MakeMKV                                       │
2025-04-13 19:07:03.680520+00:00│ Application Version:   1.18.1                                        │
2025-04-13 19:07:03.681304+00:00│ Docker Image Version:  25.04.1                                       │
2025-04-13 19:07:03.682066+00:00│ Docker Image Platform: linux/amd64                                   │
2025-04-13 19:07:03.682830+00:00│                                                                      │
2025-04-13 19:07:03.683789+00:00╰――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――╯
2025-04-13 19:07:03.684658+00:00[cont-init   ] 89-info.sh: terminated successfully.
2025-04-13 19:07:03.684911+00:00[cont-init   ] all container initialization scripts executed.
2025-04-13 19:07:03.686798+00:00[init        ] giving control to process supervisor.
2025-04-13 19:07:03.688557+00:00[supervisor  ] loading services...
2025-04-13 19:07:03.688585+00:00[supervisor  ] loading service 'default'...
2025-04-13 19:07:03.688752+00:00[supervisor  ] loading service 'logrotate'...
2025-04-13 19:07:03.693043+00:00[supervisor  ] loading service 'logmonitor'...
2025-04-13 19:07:03.694313+00:00[supervisor  ] service 'logmonitor' is disabled.
2025-04-13 19:07:03.694343+00:00[supervisor  ] loading service 'app'...
2025-04-13 19:07:03.701637+00:00[supervisor  ] loading service 'gui'...
2025-04-13 19:07:03.701691+00:00[supervisor  ] loading service 'certsmonitor'...
2025-04-13 19:07:03.704346+00:00[supervisor  ] service 'certsmonitor' is disabled.
2025-04-13 19:07:03.704395+00:00[supervisor  ] loading service 'xcompmgr'...
2025-04-13 19:07:03.704502+00:00[supervisor  ] loading service 'openbox'...
2025-04-13 19:07:03.704680+00:00[supervisor  ] loading service 'xvnc'...
2025-04-13 19:07:03.714082+00:00[supervisor  ] loading service 'audiorecorder'...
2025-04-13 19:07:03.716687+00:00[supervisor  ] service 'audiorecorder' is disabled.
2025-04-13 19:07:03.716731+00:00[supervisor  ] loading service 'nginx'...
2025-04-13 19:07:03.716889+00:00[supervisor  ] loading service 'webauth'...
2025-04-13 19:07:03.719337+00:00[supervisor  ] service 'webauth' is disabled.
2025-04-13 19:07:03.719400+00:00[supervisor  ] loading service 'pulseaudio'...
2025-04-13 19:07:03.721991+00:00[supervisor  ] service 'pulseaudio' is disabled.
2025-04-13 19:07:03.722043+00:00[supervisor  ] loading service 'autodiscripper-2'...
2025-04-13 19:07:03.725528+00:00[supervisor  ] service 'autodiscripper-2' is disabled.
2025-04-13 19:07:03.725584+00:00[supervisor  ] loading service 'autodiscripper-5'...
2025-04-13 19:07:03.729074+00:00[supervisor  ] service 'autodiscripper-5' is disabled.
2025-04-13 19:07:03.729124+00:00[supervisor  ] loading service 'autodiscripper-11'...
2025-04-13 19:07:03.732515+00:00[supervisor  ] service 'autodiscripper-11' is disabled.
2025-04-13 19:07:03.732584+00:00[supervisor  ] loading service 'autodiscripper-4'...
2025-04-13 19:07:03.735623+00:00[supervisor  ] service 'autodiscripper-4' is disabled.
2025-04-13 19:07:03.735662+00:00[supervisor  ] loading service 'autodiscripper-10'...
2025-04-13 19:07:03.738969+00:00[supervisor  ] service 'autodiscripper-10' is disabled.
2025-04-13 19:07:03.739051+00:00[supervisor  ] loading service 'autodiscripper-3'...
2025-04-13 19:07:03.742098+00:00[supervisor  ] service 'autodiscripper-3' is disabled.
2025-04-13 19:07:03.742147+00:00[supervisor  ] loading service 'autodiscripper-0'...
2025-04-13 19:07:03.745603+00:00[supervisor  ] service 'autodiscripper-0' is disabled.
2025-04-13 19:07:03.745673+00:00[supervisor  ] loading service 'autodiscripper-14'...
2025-04-13 19:07:03.749066+00:00[supervisor  ] service 'autodiscripper-14' is disabled.
2025-04-13 19:07:03.749113+00:00[supervisor  ] loading service 'autodiscripper'...
2025-04-13 19:07:03.752624+00:00[supervisor  ] service 'autodiscripper' is disabled.
2025-04-13 19:07:03.752684+00:00[supervisor  ] loading service 'autodiscripper-7'...
2025-04-13 19:07:03.756113+00:00[supervisor  ] service 'autodiscripper-7' is disabled.
2025-04-13 19:07:03.756172+00:00[supervisor  ] loading service 'autodiscripper-13'...
2025-04-13 19:07:03.759532+00:00[supervisor  ] service 'autodiscripper-13' is disabled.
2025-04-13 19:07:03.759580+00:00[supervisor  ] loading service 'autodiscripper-9'...
2025-04-13 19:07:03.762743+00:00[supervisor  ] service 'autodiscripper-9' is disabled.
2025-04-13 19:07:03.762793+00:00[supervisor  ] loading service 'autodiscripper-8'...
2025-04-13 19:07:03.766183+00:00[supervisor  ] service 'autodiscripper-8' is disabled.
2025-04-13 19:07:03.766224+00:00[supervisor  ] loading service 'autodiscripper-6'...
2025-04-13 19:07:03.769183+00:00[supervisor  ] service 'autodiscripper-6' is disabled.
2025-04-13 19:07:03.769223+00:00[supervisor  ] loading service 'autodiscripper-12'...
2025-04-13 19:07:03.772415+00:00[supervisor  ] service 'autodiscripper-12' is disabled.
2025-04-13 19:07:03.772455+00:00[supervisor  ] loading service 'autodiscripper-1'...
2025-04-13 19:07:03.775451+00:00[supervisor  ] service 'autodiscripper-1' is disabled.
2025-04-13 19:07:03.775496+00:00[supervisor  ] loading service 'autodiscripper-15'...
2025-04-13 19:07:03.778520+00:00[supervisor  ] service 'autodiscripper-15' is disabled.
2025-04-13 19:07:03.778567+00:00[supervisor  ] all services loaded.
2025-04-13 19:07:03.778599+00:00[supervisor  ] starting services...
2025-04-13 19:07:03.778802+00:00[supervisor  ] starting service 'xvnc'...
2025-04-13 19:07:03.836024+00:00[xvnc        ] Xvnc TigerVNC 1.14.1 - built Feb  7 2025 21:11:05
2025-04-13 19:07:03.836069+00:00[xvnc        ] Copyright (C) 1999-2024 TigerVNC Team and many others (see README.rst)
2025-04-13 19:07:03.836108+00:00[xvnc        ] See https://www.tigervnc.org for information on TigerVNC.
2025-04-13 19:07:03.836130+00:00[xvnc        ] Underlying X server release 12014000
2025-04-13 19:07:03.836203+00:00[xvnc        ] Sun Apr 13 21:07:03 2025
2025-04-13 19:07:03.836246+00:00[xvnc        ]  vncext:      VNC extension running!
2025-04-13 19:07:03.836359+00:00[xvnc        ]  vncext:      Listening for VNC connections on /tmp/vnc.sock (mode 0660)
2025-04-13 19:07:03.836493+00:00[xvnc        ]  vncext:      Listening for VNC connections on all interface(s), port 5900
2025-04-13 19:07:03.836527+00:00[xvnc        ]  vncext:      created VNC server for screen 0
2025-04-13 19:07:04.299208+00:00[supervisor  ] starting service 'openbox'...
2025-04-13 19:07:04.801290+00:00[supervisor  ] starting service 'xcompmgr'...
2025-04-13 19:07:05.301895+00:00[supervisor  ] starting service 'nginx'...
2025-04-13 19:07:05.306915+00:00[nginx       ] Listening for HTTP connections on port 5800.
2025-04-13 19:07:05.805012+00:00[supervisor  ] starting service 'app'...
2025-04-13 19:07:06.305839+00:00[supervisor  ] all services started.
2025-04-13 19:07:16.437713+00:00[xvnc        ] Sun Apr 13 21:07:16 2025
2025-04-13 19:07:16.437886+00:00[xvnc        ]  Connections: accepted: /tmp/vnc.sock
2025-04-13 19:07:16.451552+00:00[xvnc        ]  SConnection: Client needs protocol version 3.8
2025-04-13 19:07:16.453357+00:00[xvnc        ]  SConnection: Client requests security type None(1)
2025-04-13 19:07:16.464839+00:00[xvnc        ]  VNCSConnST:  Server default pixel format depth 24 (32bpp) little-endian rgb888
2025-04-13 19:07:16.477486+00:00[xvnc        ]  VNCSConnST:  Client pixel format depth 24 (32bpp) little-endian bgr888
2025-04-13 19:07:30.915943+00:00[app         ] inotify_add_watch(/media/movies/BD full) failed: (Permission denied)
2025-04-13 19:07:43.391163+00:00[app         ] inotify_add_watch(/media/tv/Film) failed: (Permission denied)

Container inspect


Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions