Sonarr version (exact version): 2.0.0.4689
Mono version (if Sonarr is not running on Windows): 4.8.1
OS: Ubuntu 16.04
((Debug logs)): https://drive.google.com/file/d/0B6giA8A4MXDRR0tnNkwxeFVYVUU/view?usp=sharing
(Make sure debug logging is enabled in settings and post the full log to hastebin/pastebin/dropbox/google drive or something similar, do not post them directly here)
Description of issue: Completed download handling is deleting files and folders without importing them. I manually imported a few single episodes into Nzbget and set them with my Sonarr category. Sonarr sees them, removes them from history then deletes the folders without importing. I can’t figure out why. What do I have configured wrong here? I haven’t seen this until this week. You can see in the log where files were imported correctly and then later the last two are just deleted without import. Help please.
In that log what is being imported? (I didn’t see anything being removed or imported).
Sonarr shouldn’t remove anything unless at least one file was imported and no video files exist in the folder still.
I guess that’s part of the issue, Sonarr is seeing 0 files. This snipped shows the folder being removed even though to my knowledge there are files in it. Could it be a timing thing, like nzbget is still moving the files? Another thing I noticed is that Sonarr isn’t seeing all the downloads currently in nzbget. I have right now 14 downloads in the sonarr-tv catagory but Sonarr only shows 8 active. Could this affect what files it sees?
‘17-4-28 10:08:14.2|Debug|DownloadEventHub|[Shameless.US.S02E09.Hurricane.Monica.BluRay.Remux.1080p.AVC.DTS-HD.MA.5.1-decibeL] Removing download from Nzbget history
17-4-28 10:08:14.2|Debug|Nzbget|[Shameless.US.S02E09.Hurricane.Monica.BluRay.Remux.1080p.AVC.DTS-HD.MA.5.1-decibeL] Deleting folder ‘/home/plex/Downloads/completed/sonarr-tv/Shameless.US.S02E09.Hurricane.Monica.BluRay.Remux.1080p.AVC.DTS-HD.MA.5.1-decibeL’.’
Knowing what Sonarr did before it removed it would be useful to see.
NZBGet shouldn’t report completion until it everything has been moved and then Sonarr will process it.
It takes ~60 seconds for Sonarr to pick up changes, if it still sin’t seeing them it could be how they are named (if Sonarr didn’t grab them).
Yes, but then it wouldn’t remove them because it never knew they were even there (and hadn’t imported anything either).
Is Drone Factory enabled?
Is NZBGet extracting the RAR files?
Have you previously downloaded these files?
No, Drone factory is not enabled (blank and 0). Nzbget is extracting RAR files. I have previously downloaded them. The first time it happened I cleaned out everything and enabled debug and went again to capture the issue.
I just created a new catagory, cleaned out all history from Nzbget and readded all the nzbs from scratch. Sonarr is now reporting all active downloads again. I’ll keep my eye on it and see if it occurs again. Thanks Markus.
I’m still seeing inconsistencies between what’s listed in Nzbget and what Sonarr sees as Active. Currently I have 9 items in Nzbget all in the same sonarr category but sonarr only sees 4. I’ve restarted both sonarr and nzbget with no change. Deleted and readded the Nzbget download client. Deleted readded nzb files. Any ideas?
Were the missing onesadded by Sonarr?
Are they missing for more than a couple minutes?
Do the logs show Sonarr processing them (check debug or better yet, trace)…
These are nzb files I added myself manually with the sonarr category. I added a bunch of Nzbs paused just to test. It was incorrect for hours. Never resolved. I’ll turn on trace and see if I can see more.
I just saw the issue occur again. Nzbget successfully downloaded the file and sonarr immediately deleted the folder and removed it from history without looking for files. I can’t figure out why this is happening.
17-4-29 11:04:27.4|Debug|Parser|Release Group parsed: HD
17-4-29 11:04:27.4|Debug|DownloadEventHub|[The.X-Files.S07E01.1080p.BluRay.x264-ROVERS] Removing download from Nzbget history
17-4-29 11:04:27.5|Debug|Nzbget|[The.X-Files.S07E01.1080p.BluRay.x264-ROVERS] Deleting folder ‘/home/plex/Downloads/completed/television/The.X-Files.S07E01.1080p.BluRay.x264-ROVERS’.
17-4-29 11:04:28.3|Debug|Api|[GET] /api/queue?sort_by=timeleft&order=asc: 200.OK (11 ms)
17-4-29 11:05:50.2|Debug|Api|[GET] /api/history?page=1&pageSize=15&sortKey=date&sortDir=desc: 200.OK (1270 ms)
Okay, I captured it with a trace. It happened around 11:28.
I verified the files existed below.
ls -laR Downloads/completed/television/The.X-Files.S07E02.1080p.BluRay.x264-ROVERS
Downloads/completed/television/The.X-Files.S07E02.1080p.BluRay.x264-ROVERS:
total 3435104
drwxrwxrwx 2 nzbget nzbget 4096 Apr 29 11:28 .
drwxrwxrwx 3 nzbget nzbget 4096 Apr 29 11:27 …
-rwxrwxrwx 1 nzbget nzbget 3517531847 Feb 9 2016 9mGZMww7dgViaCGJ.mkv
Here are the relevant debug and trace logs for that time frame.
https://drive.google.com/file/d/0B6giA8A4MXDRR0tnNkwxeFVYVUU/view?usp=sharing
https://drive.google.com/file/d/0B6giA8A4MXDRSHRLWHFrODkyM1E/view?usp=sharing
https://drive.google.com/file/d/0B6giA8A4MXDRZkQtaXJTN0RzUWM/view?usp=sharing
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.