Giter VIP home page Giter VIP logo

Comments (2)

frebib avatar frebib commented on August 12, 2024

With the docker-compose file you provided (with the typos fixed), Plex starts and runs as uid 1000. I do see the following warnings about /transcode not being writeable, although that's because Docker created that directory as owned by root:root

frebib@frebib-PC /t/tmp.oy4rCCI0> rg /transcode config/Logs/Plex\ Media\ Server.log
2180:Jan 05, 2022 19:46:17.287 [0x7f71b6af86e8] ERROR - IsFileWritable: failed to create file '"/transcode/0821d080-fd6e-4cbe-acf8-8f9e1ded3195"'
2181:Jan 05, 2022 19:46:17.287 [0x7f71b6af86e8] WARN - IsDirWritable: directory '"/transcode"' is not writable
frebib@frebib-PC /t/tmp.oy4rCCI0> l
total 4.0K
drwxr-xrwx 8 frebib frebib 180 Jan  5 19:46 config/
drwxr-xr-x 2 root   root    40 Jan  5 19:46 transcode/
-rw-r--r-- 1 frebib frebib 262 Jan  5 19:46 docker-compose.yml

If I chown the directory and restart plex, the error goes away.

Here is the full compose file I tested with, from your example above.

version: "2.1"

services:
  plex:
    image: spritsail/plex-media-server
    network_mode: host
    environment:
    - SUID=1000
    - SGID=1000
    volumes:
    - ./config:/config
    - ./transcode:/transcode
    - /dev/dri:/dev/dri
    restart: unless-stopped

I might suggest you exec into the container and check the permissions:

frebib@frebib-PC /t/tmp.oy4rCCI0> docker exec -ti tmpoy4rcci0-plex-1 su-exec 1000:1000 sh          
/usr/lib/plexmediaserver $ id
uid=1000 gid=1000 groups=1000
/usr/lib/plexmediaserver $ ls -al /transcode/
total 4
drwxr-xr-x    3 1000     1000            60 Jan  5 19:49 .
drwxr-xr-x    1 0        0             4096 Jan  5 19:52 ..
drwxr-xr-x    3 1000     1000            60 Jan  5 19:49 Transcode
/usr/lib/plexmediaserver $ touch /transcode/test
/usr/lib/plexmediaserver $

from plex-media-server.

karkcoder avatar karkcoder commented on August 12, 2024

Yep the chown solved the issue. It just does not makes sense why config had right permission but not transcode ...

from plex-media-server.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.