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

Sonarr cant find the data folder #71

Open
breixopd opened this issue Dec 17, 2021 · 4 comments
Open

Sonarr cant find the data folder #71

breixopd opened this issue Dec 17, 2021 · 4 comments

Comments

@breixopd
Copy link

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

@cbytestech
Copy link

cbytestech commented Jan 2, 2022

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?

@duindain
Copy link

duindain commented Jan 2, 2022

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

@breixopd
Copy link
Author

breixopd commented Jan 2, 2022 via email

@cbytestech
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants