
Sonarr is a PVR for Usenet and BitTorrent users. It can monitor multiple RSS feeds for new episodes of your favorite shows and will interface with clients and indexers to grab, sort, and rename them. It can also be configured to automatically upgrade the quality of files already downloaded when a better quality format becomes available. You can find us on discord at https://discord.sonarr.tv/
Newly downloaded files having no write permissions
I have been running Sonarr, Radarr, and SABnzbd for years on my Unraid server. In general it's been working great.
I am in the process of migrating these apps to my k3s/Rancher environment, a set of 1U servers running Proxmox running Ubuntu cloud-init VMs. The media files are hosted on my Unraid server, with the Media and Downloads directories being exposed on the network as NFS shares.
I've got Sonarr up and running but I'm seeing in the queue that there are a lot of errors stating "No files found that are eligible for import".
-
When I check the downloaded file via SMB share, it plays fine with no issues.
-
the newly downloaded files appear in the /completed folder, they have only r-x permissions, no write.
-
In Media Management > Permissions, I put 'Set Permissions' to enabled, chmod to 777, and chown group to 1000 to match the Rancher container config.
-
No change in issue.
Looking at the logs, I see Import failed, path does not exist or is not accessible by Sonarr: /downloads/TV Shows/Attack.On.Titan.S01E01.1080p.BluRay.x264-DeBTViD/. Ensure the path exists and the user running Sonarr has the correct permissions to access this file/folder
Sonarr, Radarr, and SAB are all running as privileged users. Apologies for missing info, I'm still new to this and could use help on setting the correct permissions from the beginning. Trace logs are found here.
UPDATE:
Alright so turns out there is an advanced setting in SABnzbd to set the file permissions when completed. After setting that, it did come through with 777.
However now, it's not renaming and moving the file into the Media directory. It also seems like it's not properly scanning the media library to see what is already there.




Hi u/DevinBridgwater - You've mentioned Docker, if you're needing Docker help be sure to generate a docker-compose of all your docker images in a pastebin or gist and link to it. Just about all Docker issues can be solved by understanding the Docker Guide, which is all about the concepts of user, group, ownership, permissions and paths. Many find TRaSH's Docker/Hardlink Guide/Tutorial easier to understand and is less conceptual.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
Hi u/DevinBridgwater - It appears you're using Docker and have a mount of [/downloads]. This is indicative of a docker setup that results in double space for all seeds and IO intensive copies / copy+deletes instead of hardlinks and atomic moves. Please review TRaSH's Docker/Hardlink Guide/Tutorial or the Docker Guide for how to correct this issue).
Moderator Note: this automoderator rule is under going testing. Please send a modmail with feedback for false positives or other issues. Revised 2022-01-18
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
My NFS shares are coming from Unraid, and if I turn on the 'Enable Hardlinks' option, I get stale file handle errors that crash the VMs.
Hi u/DevinBridgwater -
There are many resources available to help you troubleshoot and help the community help you. Please review this comment and you can likely have your problem solved without needing to wait for a human.
Most troubleshooting questions require debug or trace logs. In all instances where you are providing logs please ensure you followed the Gathering Logs wiki article to ensure your logs are what are needed for troubleshooting.
Logs should be provided via the methods prescribed in the wiki article. Note that
Info
logs are rarely helpful for troubleshooting.Dozens of common questions & issues and their answers can be found on our FAQ.
Please review our troubleshooting guides that lead you through how to troubleshoot and note various common problems.
Searches, Indexers, and Trackers - For if something cannot be found
Downloading & Importing - For when download clients have issues or files cannot be imported
If you're still stuck you'll have useful debug or trace logs and screenshots to share with the humans who will arrive soon. Those humans will likely ask you for the exact same thing this comment is asking..
Once your question/problem is solved, please comment anywhere in the thread saying '!solved' to change the flair to
solved
.I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
Well the set permissions option is for after sonarr moves the file. The permissions that are on the file to start are set by your download client, so you’ll need to investigate on that side to either change the permissions or the user/group
That's good to know, I'll start looking there. Thanks so much.
Alright so turns out there is an advanced setting to set the file permissions when completed. After setting that, it did come through with 777.
However now, it's not renaming and moving the file into the Media directory. It also seems like it's not properly scanning the media library to see what is already there. Do you want me to post new logs?
I had the same issue with a Sab Docker image on Synology and I never figured it out. I tried tons of things, so really curious if you can figure it out. Or if somebody has the answer here, good luck!
See the docker guides the bot linked
Your ownership and permissions were poor and inconsistent