PLEX server file permission

Hello

I cannot start a docker image of plex server, the container does no have write access to the '/config folder. I tried to filesystems xfs and zfs it does not work on either filesystem. I tried setting setting the filesystem to 777, same error. The operating system is Fedora 34, podman 3.4.2, and podman-compose. Hardware is a Pine64, rockpro64 aarch64. I thought I start here. I was have the same issue with a emby container, it may be a fedora issue.

docker-compose.yml
‘version: ‘2.1’
services:
plex:
container_name: plex
image: lscr.io/linuxserver/plex:latest
restart: unless-stopped
network_mode: host
environment:
- TZ=America/Denver
- PUID=1001
- PGID=100
- ALLOWED_NETWORKS=192.168.245.0/24
hostname: plex
volumes:
- /export/etc/plex:/config
- /export/share/Movies:/transcode
- /export/var/plex:/data’

User
user: dockeruser
group: dockeruser,users

UID: 1001
GID: 100
I have tried to use 1001 for the dockeruser group and 100 for the users group

filer permisions for /export/etc/plex and /export/var/plex is 775. I have even tried 777, moving the directories to the dockeruser home folder which is on a xfs filesystem where the /export is a zfs filesystem.

output after running docker-compose up:
‘plex | [cont-init.d] 40-chown-files: executing…
plex | mkdir: cannot create directory ‘/config/Library’: Permission denied
plex | chown: cannot read directory ‘/config’: Permission denied
plex | stat: cannot stat ‘/config/Library’: No such file or directory
plex | Change in ownership detected, please be patient while we chown existing files
plex | This could take some time
plex | chown: cannot access ‘/config/Library’: No such file or directory
plex | chown: changing ownership of ‘/config’: Permission denied
plex | chown: cannot access ‘/config/*’: No such file or directory’
.
.
.
’ [cont-init.d] 90-custom-folders: executing…
plex | mkdir: cannot create directory ‘/config/custom-cont-init.d’: Permission denied
plex | mkdir: cannot create directory ‘/config/custom-services.d’: Permission denied
plex | chown: cannot access ‘/config/custom-cont-init.d’: No such file or directory
plex | chown: cannot access ‘/config/custom-services.d’: No such file or directory’
.
.
.
PMS: failure detected. Read/write access is required for path: /config/Library/Application Support/Plex Media Server’

Thank you
Aaron

Hello

It looks like an issue with selinux, I disabled selinux and the server started.

Aaron