sebgl/htpc-download-box

Sonarr cant find the data folder

Opened this issue · 4 comments

I cant seem to find the data volume that my plex libraries are tied to on Sonarr, anyone know why?

which side of the directory are you changing in the docker-compose.yml?

  sonarr:
    container_name: sonarr
    image: linuxserver/sonarr:latest
    restart: unless-stopped
    network_mode: host
    environment:
      - PUID=${PUID} # default user id, defined in .env
      - PGID=${PGID} # default group id, defined in .env
      - TZ=${TZ} # timezone, defined in .env
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - ${ROOT}/config/sonarr:/config # config files
      - ${ROOT}/complete/tv:/tv # tv shows folder
      - ${ROOT}/downloads:/downloads # download folder

  plex-server:
    container_name: plex-server
    image: plexinc/pms-docker:latest
    restart: unless-stopped
    environment:
      - TZ=${TZ} # timezone, defined in .env
    network_mode: host
    volumes:
      - ${ROOT}/config/plex/db:/config # plex database
      - ${ROOT}/config/plex/transcode:/transcode # temp transcoded files
      - ${ROOT}/complete:/data # media library

Make sure you are editing the left side of the directory..
- ${ROOT}/config/sonarr: Do not edit this side /config # config files
- ${ROOT}/complete/tv: Do not edit this side /tv # tv shows folder
- ${ROOT}/downloads: Do not edit this side /downloads # download folder
- ${ROOT}/config/plex/db: Do not edit this side /config # plex database
- ${ROOT}/config/plex/transcode: Do not edit this side /transcode # temp transcoded files
- ${ROOT}/complete: Do not edit this side /data # media library

could you share your YML?

Docker containers are not able to see each others files or content, one of the ways we handle this is by directly specifying a external volume on the host file system that both containers can access, you likely have a mis-configuration in your YML that is spelling the name differently either in Sonarr or Plex config

You can use the command line to view what is mounted in the container by running the following
get the container ids with
docker container ls
Find the plex container for me it is called "plexinc/pms-docker:latest" and note the container id
docker exec -it 808f0b39dccc bash
then standard linux commands to browse the file system in the container
ls, cd so on

You should have a single YML config file that handles all your docker containers related to media and a single config file with the variables in the .env file to avoid data entry errors and will make the config much easier to understand

for instance you could put this in the .env file and it would handle both Sonarr and Plex volumes

# Different drives with content
CONFIGROOT=/opt/config/
TVROOT=/mnt/Media/Episodes
MOVIEROOT=/mnt/Movies/Movies
COMPLETEDOWNLOADROOT="/mnt/ADrive/New Stuff"
TRASHROOT="/mnt/ADrive/New Stuff/trash"

These are the real paths from the mounted drives in the filesystem outside of docker, the .env file is just key=value pairs

Then the sonar volumes in the YML file would be

volumes:
      - /etc/localtime:/etc/localtime:ro
      - ${CONFIGROOT}/sonarr:/config # config files
      - ${TVROOT}:/episodes # tv shows folder
      - ${COMPLETEDOWNLOADROOT}:/downloads/complete # download folder
      - ${TRASHROOT}:/downloads/trash # deleted file folder
      - PLEXTRANSCODE=/dev/shm/Plex.Transcode

Plex volumes in the YML file would be

volumes:
      - ${CONFIGROOT}/plex/db:/config # plex database
      - ${PLEXTRANSCODE}:/transcode # temp transcoded files
      - ${TVROOT}:/episodes # episodes
      - /dev:/dev

Radarr would be similar but for MOVIEROOT

This way you only ever need to change the config file not the YML and everything will update correctly and its automatically in sync always between all the related containers just through sharing the same variable from the .env config

be careful with that, thought I had the same issue when TS, turned out it was install and permissions issues