Plex in docker have issues recovering a current stream after container restart

I have the latest plex docker container and I’ve set up a separate volume for the transcoded sessions, I’ve also pointed the plexserver to the /transcode directory within the container.

full run instructions fo the plex docker container:

  plex:
    container_name: plex
    image: linuxserver/plex
    restart: unless-stopped
    network_mode: host
    environment:
      - TZ=Europe/Stockholm
      - PUID=1000
      - PGID=1000
    volumes:
      - /configs/plex:/config
      - /home/user/docker/transcode:/transcode
      - /storage/plex/library:/data/library

the underlying OS is ubuntu 18.04. and the transcoding temporary directory is set to /transcode. there are no issues with permissions.

the container works great, with the exception of recovering a playing movie after a container restart. I can replicate this 100% of the time using this method:

1 - start the container.
2 - start watching a movie and make sure it’s transcoding.
3 - restart the container.

the expected result here is to see no hitches in the movie since the server is only down for a few seconds and it should be able to recover the transcoded stream and restore the session. the result is however that once the movie have played out the buffered content it simply freezes and show a loading symbol for ever. the movie continues after either changing the quality/subtitles or restarting the movie.

I’m unsure if this is my bad and I’ve missconfigured something or an issue with the container, either way, I’d like to have confirmation of this or get help to fix my issue.

have a good one!

When you restart the container you are killing the transcode session along with everything it has transcoded thus far. The transcode session will not be restarted when the container is brought back up so you effectively removed all the data out from under the client trying to play.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.