htpc-download-box icon indicating copy to clipboard operation
htpc-download-box copied to clipboard

Sonarr cant find the data folder

Open breixopd opened this issue 3 years ago • 4 comments

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

breixopd avatar Dec 17 '21 02:12 breixopd

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?

cbytestech avatar Jan 02 '22 06:01 cbytestech

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

duindain avatar Jan 02 '22 08:01 duindain

Turns out I just didn't have any storage left and had to clear some space

On Sun, 2 Jan 2022, 06:53 cbytestech, @.***> wrote:

which side of the folder var 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

— Reply to this email directly, view it on GitHub https://github.com/sebgl/htpc-download-box/issues/71#issuecomment-1003672670, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHYFJQ6VMV2FWHIZMKK7LLLUT7ZAFANCNFSM5KHZWJLA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

breixopd avatar Jan 02 '22 15:01 breixopd

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

cbytestech avatar Feb 22 '22 03:02 cbytestech