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

[BUG] Permission issues after mounting transcodes to tmpfs #265

Open
1 task done
GoingTime opened this issue Sep 7, 2024 · 2 comments
Open
1 task done

[BUG] Permission issues after mounting transcodes to tmpfs #265

GoingTime opened this issue Sep 7, 2024 · 2 comments

Comments

@GoingTime
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I use docker compose to deploy jellyfin. When I mount tmpfs to /config/cache/transcodes, I notice that all the owners and groups of the /config/cache directory in jellyfin are abc, and only the owner and group of transcodes are root, and the permissions are drwxrwx---,which causes ffmpeg to have no permission to access the transcodes directory.

This is an inconsistent behavior. For newly created folders, some are owned by root and some are owned by abc. For folder permissions, some are drwxrwx--- and some are drwxr-xr-x, which will lead to confusing permission problems.

I suggest using some kind of script to automatically configure the owner and permissions of the newly mounted folder when jellfyin is initialized to avoid permission problems. Or recheck the code related to owner and permission configuration.

Expected Behavior

No response

Steps To Reproduce

# docker compose

version: "3.8"
services:
  jellyfin:
    image: lscr.io/linuxserver/jellyfin:latest
    container_name: jellyfin
    restart: unless-stopped
    environment:
      - PUID=568
      - PGID=568
      devices:
      - /dev/dri:/dev/dri
    volumes:
      - /mnt/containers/jellyfin:/config
      - /mnt/videos:/data/videos
      - type: tmpfs
        target: /config/cache/transcodes
        tmpfs:
          size: 8G
# ls -l /config/cache

drwxrwx---  5 abc  abc    5 Sep  7 19:52 attachments
drwxrwx--- 29 abc  abc   29 Sep  7 19:31 audiodb-artist
drwxrwx--- 15 abc  abc   15 Sep  7 19:29 extracted-audio-images
drwxrwx---  3 abc  abc    3 Sep  7 19:36 images
drwxrwx---  2 abc  abc    3 Sep  7 19:32 imagesbyname
drwxrwx---  2 abc  abc   16 Sep  7 19:30 omdb
drwxrwx---  2 abc  abc  196 Sep  7 19:41 temp
drwxrwx---  2 root root  40 Sep  7 20:32 transcodes
# ls -l /data
total 1
drwxr-xr-x 3 root root 3 Sep  7 20:32 videos

Environment

- OS: TrueNAS SCALE 24.10 BETA.1 base Debian 12

CPU architecture

x86-64

Docker creation

Please see "Steps To Reproduce".

Container logs

null
Copy link

github-actions bot commented Sep 7, 2024

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

@LinuxServer-CI
Copy link
Collaborator

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Issues
Development

No branches or pull requests

2 participants