Sonarr version (exact version): 2.0.5200 Mono version (if Sonarr is not running on Windows):5.10.1.47 OS: Docker Image / Arch Linux Debug logs: https://hastebin.com/ofamemunag.tex Description of issue:
A season pack for a show has snagged twice now with the same issue so I thought I’d report…
What I have is inside the Season Pack folder are more folders with each episode (and that episodes files). So, for example:
ShowName-S02/ReleaseName-S02E01/releasename.mkv
ShowName-S02/ReleaseName-S02E02/releasename.mkv
etc, etc.
The issue I’m having is the contents of all the ShowName-S02 are being deleted before the rest are imported and leaving the showname-s02. Any ideas why this would be happening as some are imported fine, then seemingly random deleted after a few successful imports?
Your logs don’t show Sonarr deleting anything, we’d need to see what Sonarr is doing during the import process, leading up to the error.
Is Sonarr running on the same system as your download client?
If not, how does Sonarr access the files? sshfs, they’re downloaded with BTsync or FTP or something?
Should I try to enable trace logs then for the next time it happens, I assume? It’s reproducible as well so I can test with something again if you’d like.
Same system-ish. It’s a docker image.
I use NFS to share resources between the host and docker but open to all the other images if that helps.
Yeah, at a minimum we’ll need debug logs, but having trace logs would be good to have as well.
Okay, I just wanted to rule out a season pack being mid transfer from a remote location and Sonarr tries to import only one file, but sounds like that’s not an issue.
Nope. It downloads them all and moves as a pack. I have debug logging on but not sure why that’s not showing any more information than that. I have trace logging on now and I’ll try manually downloading the season pack again.
If the files aren’t all in the directory when Sonarr starts the import, then items could be missed, that can happen if they’re being unrarred one by one or if the files are moved from one drive to another and the the move isn’t instantaneous (including moving from an incomplete download folder to a completed download folder).
It extracts the files after downloading then moves them to the pickup folder. I’m snagging one now so I can get a trace dump. I’ll verify 100% all the files are there as well.
This of course, isn’t doing it now… urgh
I changed my script a little so if folder nesting is going on, it’ll now move all files to the root download path so this hopefully won’t happen again.
Resolved. The issue was my download script snags files but deletes files older than 2 weeks inside the import folder. What was happening is some of the files that just downloaded had the wrong dates packed inside the RARs. I’ve updated my script to update the timestamp to the download time so this won’t happen again.