Permission denied createing config directory in plex docker container

Hello I need some help with this. Im getting this permission denied system:13 error.need help asap pls and thank you. Here are my specs, docker compose, and container star- up logs

Ubuntu 24.04 LTS
Docker version 27.1.1
ASUS TUF GAMING B550M-PLUS
AMD Ryzeen 7 5700G
512 Tb SSD
2 x 10 Tb SAS HDD
1 X 22 TB SATA HDD
2 X 4 TB SATA HDD

DOCKER COMPOSE
plex:
image: lscr.io/linuxserver/plex:latest
container_name: plex
network_mode: host
environment:

  • PUID=1000
  • PGID=1000
  • TZ=Etc/UTC
  • UMASK=000
  • VERSION=docker
  • PLEX_CLAIM=claim-5x2PbhgYxazHPNfQX4xd
  • PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/C/docker/plex/config/Library/Application Support
  • DOCKER_MODS=linuxserver/mods:plex-absolute-hama|linuxserver/mods:plex-audnexus
    ports:
  • 32400:32400
    devices:
  • /dev/dri:/dev/dri #Required for plex HW transcoding / QuickSync
    volumes:
  • /C/docker/plex/config:/config:rw
  • /D/share/media:/share/media:rw
  • /F/share/media:/F/share/media:rw
  • /G/share/media:/G/share/media:rw
    restart: unless-stopped

STARTUP LOGS
[mod-init] Running Docker Modification Logic
[mod-init] Adding linuxserver/mods:plex-absolute-hama to container
[mod-init] Downloading linuxserver/mods:plex-absolute-hama from
[mod-init] Installing linuxserver/mods:plex-absolute-hama
[mod-init] linuxserver/mods:plex-absolute-hama applied to container
[mod-init] Adding linuxserver/mods:plex-audnexus to container
[mod-init] Downloading linuxserver/mods:plex-audnexus from
[mod-init] Installing linuxserver/mods:plex-audnexus
[mod-init] linuxserver/mods:plex-audnexus applied to container
[migrations] started
[migrations] no migrations found
───────────────────────────────────────

  ██╗     ███████╗██╗ ██████╗
  ██║     ██╔════╝██║██╔═══██╗
  ██║     ███████╗██║██║   ██║
  ██║     ╚════██║██║██║   ██║
  ███████╗███████║██║╚██████╔╝
  ╚══════╝╚══════╝╚═╝ ╚═════╝

───────────────────────────────────────

To support LSIO projects visit:

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID: 1000
User GID: 1000
───────────────────────────────────────

Temporarily starting Plex Media Server.
Waiting for Plex to generate its config
libc++abi: terminating with uncaught exception of type boost::filesystem::filesystem_error: boost::filesystem::create_directories: Permission denied [system:13]: “/C/docker/plex/config/Library/Application Support/Plex Media Server/Cache”, “/C/docker/plex/config/Library/Application Support/Plex Media Server”
/etc/s6-overlay/s6-rc.d/init-plex-claim/run: line 69: 213 Aborted (core dumped) s6-setuidgid abc /bin/bash -c ‘LD_LIBRARY_PATH=/usr/lib/plexmediaserver:/usr/lib/plexmediaserver/lib /usr/lib/plexmediaserver/Plex\ Media\ Server’

Why are you using WSL style folder paths when you’re running Ubuntu?

Also not need double post.

im not using WSL style path. Where do you see that ???

/C/docker/plex/config:/config:rw
/D/share/media:/share/media:rw
/F/share/media:/F/share/media:rw
/G/share/media:/G/share/media:rw

Specifically for the /config mount, the volume you’re using needs to be owned by the user you’re using for a UID/GID.

C,D,F,G are all different mounted drives of different sizes and types of drives with different purposes. i just copied the style for easy of access specially when doing samba shares and telling which drives are which in different containers. and the C Volume where i want to put all my docker configs is owned by the user i put for UID/GID.

Try using /home/username/appdata/plex:/config and see if that works as a test.

Ok i tried that change and he is the output from the logs and my enviroment variables

Startup Logs
Processing triggers for libc-bin (2.35-0ubuntu3.8) …

**** no agent found, cloning ****

**** no scanner repo found, cloning. ****

Cloning into ‘/config/absolute’…

Cloning into ‘/config/Library/Application Support/Plex Media Server/Plug-ins/Audnexus.bundle’…

warning: unable to access ‘/root/.config/git/ignore’: Permission denied

warning: unable to access ‘/root/.config/git/attributes’: Permission denied

**** no scanner found. copying from repo ****

cp: cannot create regular file ‘/config/Library/Application Support/Plex Media Server/Scanners/Series/Absolute Series Scanner.py’: No such file or directory

/usr/bin/find: ‘/config/Library/Application Support/Plex Media Server/Scanners/Series’: No such file or directory

**** Permissions could not be set. This is probably because your volume mounts are remote or read-only. ****

**** The app may not work properly and we will not provide support for it. ****

**** no agent found, cloning ****

warning: unable to access ‘/root/.config/git/ignore’: Permission denied

Cloning into ‘/config/Library/Application Support/Plex Media Server/Plug-ins/Hama.bundle’…

warning: unable to access ‘/root/.config/git/attributes’: Permission denied

warning: unable to access ‘/root/.config/git/ignore’: Permission denied

warning: unable to access ‘/root/.config/git/attributes’: Permission denied

[custom-init] No custom files found, skipping…

Starting Plex Media Server. . . (you can ignore the libusb_init error)

[ls.io-init] done.

Critical: libusb_init failed

Enivorment Variables from Portainer

HOME /root
LANG en_US.UTF-8
LANGUAGE en_US.UTF-8
LSIO_FIRST_PARTY true
NVIDIA_DRIVER_CAPABILITIES compute,video,utility
PATH /lsiopy/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PGID 1000
PLEX_ARCH amd64
PLEX_DOWNLOAD https://downloads.plex.tv/plex-media-server-new
PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR /config/Library/Application Support
PLEX_MEDIA_SERVER_HOME /usr/lib/plexmediaserver
PLEX_MEDIA_SERVER_INFO_DEVICE Docker Container (LinuxServer.io)
PLEX_MEDIA_SERVER_INFO_VENDOR Docker
PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS 6
PLEX_MEDIA_SERVER_USER abc
PUID 1000
S6_CMD_WAIT_FOR_SERVICES_MAXTIME 0
S6_STAGE2_HOOK /docker-mods
S6_VERBOSITY 1
TERM xterm
TZ Etc/UTC
UMASK 000
VERSION docker
VIRTUAL_ENV /lsiopy

Volumes from portainers

/home/luffy/appdata/plex /config
/D/share/media /share/media
/F/share/media /F/share/media
/G/share/media /G/share/media

That looks like it’s started - so it looks like the permissions on the folders you have are incorrect.
I will say we don’t support nor recommend portainer for deployment of our containers.

Thanks :slight_smile: why shouldn’t I use Portainer and is there any other alternative? and should I be concern about “warning: unable to access ‘/root/.config/git/attributes’: Permission denied” for the docker mods

portainer causes numerous issues for non-experts. the biggest reason is that we don’t support it and you appear to want our support. The supported options are docker run and docker compose (no, not “compose” in portainer)

I have never seen the error you show, so i can’t speak to it, but it is possible it’s caused by the many nuances of portainer, so i won’t venture any guesses either.