Sonarr Unable to Import, Permissions Issue?

  • Hi I'm on OMV 6.4.4-1 (Shaitan) currently using a docker-compose file for several containers including sonarr. I am having issues setting up my folder permissions to get sonarr to successfully import. I wanted to double check my docker-compose to make sure I'm doing the right thing for the shared folders connected to it.


    I ran id myusername to get my PUID and PGID.


    In my Shared Folders/ACL page, My username has read/write access, the owner is myusername, group is users. Both have read/write/execute permissions. What else do I need to configure? This appears to be a shared folder permissions issue. Thank you


    Code
    root@omv:/home/docker# id myusername
    uid=1000(myusername) gid=100(users) groups=100(users),0(root),1(daemon),2(bin),4(adm),6(disk),7(lp),24(cdrom),29(audio),34(backup),37(operator),65534(nogroup),107(crontab),108(netdev),109(ssl-cert),113(ssh),114(_chrony),115(avahi),116(sambashare),999(openmediavault-config),998(openmediavault-engined),997(openmediavault-admin),996(openmediavault-webgui),995(openmediavault-notify),992(docker),117(qbittorrent-nox)


  • Code
    - /srv/dev-disk-by-uuid-XXXXXXX-XXXX-XXXX-XXXX-a9393c087104:/14TB
    - /srv/dev-disk-by-uuid-XXXXXXX-XXXX-XXXX-XXXX-90ccadc28761:/8TB


    Obfuscating drive mount point names is pointless.


    No idea what you are trying to do with these things:


    Code
    :/14TB
    :/8TB

    --
    Google is your friend and Bob's your uncle!


    A backup strategy is worthless unless you have a verified to work by testing restore strategy.


    OMV AMD64 7.x on headless Chenbro NR12000 1U Intel Xeon CPU E3-1230 V2 @ 3.30GHz 32GB ECC RAM.

    OMV AMD64 8.x on headless Tyan Thunder SX GT86C-B5630 1U Server with Intel Xeon Silver 4110 CPU @ 2.10GHz & 32GB DDR4 ECC RAM.

  • You need to read the documentation for the image you are using.

    --
    Google is your friend and Bob's your uncle!


    A backup strategy is worthless unless you have a verified to work by testing restore strategy.


    OMV AMD64 7.x on headless Chenbro NR12000 1U Intel Xeon CPU E3-1230 V2 @ 3.30GHz 32GB ECC RAM.

    OMV AMD64 8.x on headless Tyan Thunder SX GT86C-B5630 1U Server with Intel Xeon Silver 4110 CPU @ 2.10GHz & 32GB DDR4 ECC RAM.

  • Also don’t put your sonarr config in ./sonarr. It’s better map that to a finite application data directory on one of those shared drives such as

    - /srv/dev-disk-by-uuid-XXXXXXX-XXXX-XXXX-XXXX-a9393c087104/appdata/sonarr:/config


    Using that appdata directory as a root for all docker config files will make the app configurations and databases be persistent and survive docker pruning or OS re-installs.

    Asrock B450M, AMD 5600G, 64GB RAM, 6 x 4TB RAID 5 array, 2 x 10TB RAID 1 array, 100GB SSD for OS, 1TB SSD for docker and VMs, 1TB external SSD for fsarchiver OS and docker data daily backups

  • Also don’t put your sonarr config in ./sonarr. It’s better map that to a finite application data directory on one of those shared drives such as

    - /srv/dev-disk-by-uuid-XXXXXXX-XXXX-XXXX-XXXX-a9393c087104/appdata/sonarr:/config


    Using that appdata directory as a root for all docker config files will make the app configurations and databases be persistent and survive docker pruning or OS re-installs.

    Thank you. I have my docker-compose.yml stored in /home/docker/, so when you see ./sonarr the real address is /home/docker/sonarr. Which is on my SSD where OMV is installed, not the 2 shared drives


    Is this still bad practice?


    I still have a permissions issue and my configuration seems normal from what I see in Sonarr documentation. I believe it's shared folder permissions, is there a guide to just get 755 or 755 chmod done for the folders? The GUI has a learning cover for this page and command line for chmod isn't allowed it seems.

  • Thank you. I have my docker-compose.yml stored in /home/docker/, so when you see ./sonarr the real address is /home/docker/sonarr. Which is on my SSD where OMV is installed, not the 2 shared drives


    Is this still bad practice?


    I still have a permissions issue and my configuration seems normal from what I see in Sonarr documentation. I believe it's shared folder permissions, is there a guide to just get 755 or 755 chmod done for the folders? The GUI has a learning cover for this page and command line for chmod isn't allowed it seems.

    It's best to store all compose files and the config files in a directory that is not in a user's home directory. Home directories are owned by the user, so ownership of the files can cause issues. If they are not in a home directory, then they can be fully accessible to other users and you can deal with the permissions easier, and as I mentioned it will survive an os re-install.

    Asrock B450M, AMD 5600G, 64GB RAM, 6 x 4TB RAID 5 array, 2 x 10TB RAID 1 array, 100GB SSD for OS, 1TB SSD for docker and VMs, 1TB external SSD for fsarchiver OS and docker data daily backups

  • It's best to store all compose files and the config files in a directory that is not in a user's home directory. Home directories are owned by the user, so ownership of the files can cause issues. If they are not in a home directory, then they can be fully accessible to other users and you can deal with the permissions easier, and as I mentioned it will survive an os re-install.

    Would I be okay if I move the docker folder to the same level of the home folder, and not nested within? So instead of /home/docker/docker-compose.yml it's /docker/docker-compose.yml


    What about shared folders? Can you guide me to the best practice for this so my qbittorrent, sonarr, radarr, sonarr play nice with it (in terms of being able to write)? Currently it seems like I can read off it but not write to it.


    Below is my Permissions that I see in OMV web UI. The blacked out part is my only user created. I wish I could just type in a chmod 3 digit number instead


  • I’m just about to have a bit of supper. Let me circle back on this in a little bit when I can get a better look on my desktop system instead of on my phone as I am doing now.

    Asrock B450M, AMD 5600G, 64GB RAM, 6 x 4TB RAID 5 array, 2 x 10TB RAID 1 array, 100GB SSD for OS, 1TB SSD for docker and VMs, 1TB external SSD for fsarchiver OS and docker data daily backups

  • Ok, so going back through your posts, firstly, I see an error in your sonarr compose file.

    You have:

    Code
    environment:
    - PUID=1000
    - PUID=100

    The second one should be: PGID=100 not a second PUID. PUID is User ID, PGID is Group ID.


    Your Volumes in that same compose is:

    Code
    volumes:
    - ./sonarr:/config
    - /srv/dev-disk-by-uuid-XXXXXXX-XXXX-XXXX-XXXX-a9393c087104:/14TB
    - /srv/dev-disk-by-uuid-XXXXXXX-XXXX-XXXX-XXXX-90ccadc28761:/8TB

    OMV likes things to be in sub-directories of the root, not the root itself, so you should have something like this:

    Code
    volumes:
    - ./sonarr:/config
    - /srv/dev-disk-by-uuid-XXXXXXX-XXXX-XXXX-XXXX-a9393c087104/media:/14TB
    - /srv/dev-disk-by-uuid-XXXXXXX-XXXX-XXXX-XXXX-90ccadc28761/media:/8TB

    Then all your media should be in the media directories, or whatever you want to call them. The /14TB and /8TB would end up being the paths that sonarr sees inside the container


    Your docker storage path should ideally be something like this:

    /srv/dev-disk-by-uuid-XXXXXXX-XXXX-XXXX-XXXX-a9393c087104/appdata or whatever you want to call it.


    And likewise your shared directory for the compose files should be something like:

    /srv/dev-disk-by-uuid-XXXXXXX-XXXX-XXXX-XXXX-a9393c087104/compose-files or whatever you want to call it.


    This will keep all the docker related files off of your OS drive so that an OS reinstall will not kill all your docker containers. If you had to re-install, all you would need to do is set the docker storage path again and the dockers would all start up and keep any data that was created by them previously.


    Once you set those docker directories, you can stop docker, move all the existing docker directories into those directories and then start it up again and everything should come to life.


    You would also need to fix the permissions screen shot you sent so that it is pointing to the sub-directory your shared media directory is called , not the drive root.


    As a general rule too, I would recommend that you use the reset permissions plugin to remove those ACLs you made. ACLs can be powerful, but can create a lot of complexity between different user accounts and system accounts. Generally you don't need them for basic shared folders, just the regular shared folders permissions.

    Asrock B450M, AMD 5600G, 64GB RAM, 6 x 4TB RAID 5 array, 2 x 10TB RAID 1 array, 100GB SSD for OS, 1TB SSD for docker and VMs, 1TB external SSD for fsarchiver OS and docker data daily backups

    Edited once, last by BernH ().

  • You can use those notes as a guide to fix any other compose files you are running and things should begin to work better.


    Regarding qbittorrent and sonarr/radarr/etc. if you have them configured correctly, sonarr will monitor qbittorrent for the status of the downloads and when completed, it can hard link to the files. this allows it to import them even if qbittorrent is still seeding.


    I would also recommend that you make use of prowlarr for the indexers and link the other servarr apps to it using the API link options, instead of entering the indexers directly in sonarr/radarr/etc. This gives you one point of indexer configuration for all the *arr apps.

    Asrock B450M, AMD 5600G, 64GB RAM, 6 x 4TB RAID 5 array, 2 x 10TB RAID 1 array, 100GB SSD for OS, 1TB SSD for docker and VMs, 1TB external SSD for fsarchiver OS and docker data daily backups

  • thank you so much! I've followed the instructions to start for the reset permissions plugin, then I went back to apply. My permissions look like this now. Importing works now in my radarr/sonarr apps now.


  • vbarter

    Added the Label resolved
  • You are welcome.


    If you have not put the media files in sub directories yet and moved your docker files as suggested, you still should, as it will allow for better control of the permissions in the future.

    Asrock B450M, AMD 5600G, 64GB RAM, 6 x 4TB RAID 5 array, 2 x 10TB RAID 1 array, 100GB SSD for OS, 1TB SSD for docker and VMs, 1TB external SSD for fsarchiver OS and docker data daily backups

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!