Error: DownloadMonitoringService Couldn't process tracked download

Sonarr version (exact version): 2.0.0.5338
Mono version (if Sonarr is not running on Windows): 5.20.1.34
OS: Linux (Sonarr is a Docker running in OpenMediaVault)
Debug logs:
Description of issue:

I’m new to Sonarr and I have a somewhat complicated configuration scenario. I almost have it fully working, with the exception of unattended imports. Any time a torrent completes downloading, I get the following error in System > Logs:

Couldn't process tracked download [file name]: Access to the path '/etc/s6/services/s6-fdholderd/supervise' is denied.

Exception:
System.UnauthorizedAccessException: Access to the path '/etc/s6/services/s6-fdholderd/supervise' is denied.
  at System.IO.__Error.WinIOError (System.Int32 errorCode, System.String maybeFullPath) [0x00129] in <254335e8c4aa42e3923a8ba0d5ce8650>:0 
  at System.IO.FileSystemEnumerableIterator`1[TSource].HandleError (System.Int32 hr, System.String path) [0x00006] in <254335e8c4aa42e3923a8ba0d5ce8650>:0 
  at System.IO.FileSystemEnumerableIterator`1[TSource].AddSearchableDirsToStack (System.IO.Directory+SearchData localSearchData) [0x00053] in <254335e8c4aa42e3923a8ba0d5ce8650>:0 
  at System.IO.FileSystemEnumerableIterator`1[TSource].MoveNext () [0x0008e] in <254335e8c4aa42e3923a8ba0d5ce8650>:0 
  at System.Collections.Generic.List`1[T].AddEnumerable (System.Collections.Generic.IEnumerable`1[T] enumerable) [0x00059] in <254335e8c4aa42e3923a8ba0d5ce8650>:0 
  at System.Collections.Generic.List`1[T]..ctor (System.Collections.Generic.IEnumerable`1[T] collection) [0x00062] in <254335e8c4aa42e3923a8ba0d5ce8650>:0 
  at System.IO.Directory.InternalGetFileDirectoryNames (System.String path, System.String userPathOriginal, System.String searchPattern, System.Boolean includeFiles, System.Boolean includeDirs, System.IO.SearchOption searchOption, System.Boolean checkHost) [0x0000f] in <254335e8c4aa42e3923a8ba0d5ce8650>:0 
  at System.IO.Directory.InternalGetFiles (System.String path, System.String searchPattern, System.IO.SearchOption searchOption) [0x00000] in <254335e8c4aa42e3923a8ba0d5ce8650>:0 
  at System.IO.Directory.GetFiles (System.String path, System.String searchPattern, System.IO.SearchOption searchOption) [0x00038] in <254335e8c4aa42e3923a8ba0d5ce8650>:0 
  at NzbDrone.Common.Disk.DiskProviderBase.GetFiles (System.String path, System.IO.SearchOption searchOption) [0x00048] in M:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Common\Disk\DiskProviderBase.cs:154 
  at NzbDrone.Core.MediaFiles.DiskScanService.GetVideoFiles (System.String path, System.Boolean allDirectories) [0x00019] in M:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Core\MediaFiles\DiskScanService.cs:139 
  at NzbDrone.Core.MediaFiles.DownloadedEpisodesImportService.ProcessFolder (System.IO.DirectoryInfo directoryInfo, NzbDrone.Core.MediaFiles.EpisodeImport.ImportMode importMode, NzbDrone.Core.Tv.Series series, NzbDrone.Core.Download.DownloadClientItem downloadClientItem) [0x00035] in M:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Core\MediaFiles\DownloadedEpisodesImportService.cs:160 
  at NzbDrone.Core.MediaFiles.DownloadedEpisodesImportService.ProcessPath (System.String path, NzbDrone.Core.MediaFiles.EpisodeImport.ImportMode importMode, NzbDrone.Core.Tv.Series series, NzbDrone.Core.Download.DownloadClientItem downloadClientItem) [0x00023] in M:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Core\MediaFiles\DownloadedEpisodesImportService.cs:83 
  at NzbDrone.Core.Download.CompletedDownloadService.Import (NzbDrone.Core.Download.TrackedDownloads.TrackedDownload trackedDownload) [0x00014] in M:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Core\Download\CompletedDownloadService.cs:114 
  at NzbDrone.Core.Download.CompletedDownloadService.Process (NzbDrone.Core.Download.TrackedDownloads.TrackedDownload trackedDownload, System.Boolean ignoreWarnings) [0x00127] in M:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Core\Download\CompletedDownloadService.cs:108 
  at NzbDrone.Core.Download.TrackedDownloads.DownloadMonitoringService.ProcessClientItems (NzbDrone.Core.Download.IDownloadClient downloadClient, NzbDrone.Core.Download.DownloadClientItem downloadItem) [0x00042] in M:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Core\Download\TrackedDownloads\DownloadMonitoringService.cs:134

The exact same error happens for every single torrent.

Some backstory:

I have Sonarr running in a Docker container on my OpenMediaVault server. My torrents are downloaded using a Seedbox. At first I had a hard time setting up Remote Path Mappings so that Sonarr could see the Seedbox as a volume, but I SSH’d into the Docker container and installed curlftpfs. Once I did that, I could mount my Seedbox and set up Remote Path Mappings successfully. I thought that would solve the problem, and it did let me use Manual Import. But, alas, unattended importing does not work. Sonarr successfully grabs the torrents for my watched shows, the seedbox downloads them, Sonarr sees that the downloads have completed, and then I get the error pasted above.

Some relevant details:

  • As I mentioned, I am able to import using the Wanted > Manual Import tool. Both “Import File(s) Automatically” and “Manual Import” work, so Sonarr can read from my seedbox and write to my destination folders.

  • I do not have renaming enabled (I don’t need it–scene names are fine) so any potential issues around renaming files that live on the seedbox should be moot.

  • The presence of “access denied” makes me think there’s a permissions issue. I believe the UID I have set in the Docker container has sufficient rights (none of my other Dockers using that UID have had any issues), but I haven’t yet tried to alter the permissions for the /etc/s6/services/s6-fdholderd/supervise directory because I wanted to get some advice first. I’m not a Linux expert and I didn’t want to break things worse than they are.

  • I searched extensively for this issue and while there were other people with the “Couldn’t process tracked download” issue, I did not see anything about /etc/s6/services/s6-fdholderd/supervise.

Sonarr is an incredible piece of software and I hope I can get everything working. I feel like I’m so close!

Thank you so much for the help!

I gathered a little more info. I enabled trace logging and there was an additional error having to do with symlinks. Here’s the log:

https://pastebin.com/ez7KsDFW

The bit that jumped out at me was:

19-9-15 15:36:40.4|Debug|DiskProvider|Hardlink '/seedbox/files/[file].mkv' to '/seedbox/files/[file].mkv.backup~' failed.

[v2.0.0.5338] Mono.Unix.UnixIOException: Function not implemented [ENOSYS].
  at Mono.Unix.UnixMarshal.ThrowExceptionForLastError () [0x00005] in <4a040cc44eb54354b3d289eb2bbc1e23>:0 
  at Mono.Unix.UnixMarshal.ThrowExceptionForLastErrorIf (System.Int32 retval) [0x00004] in <4a040cc44eb54354b3d289eb2bbc1e23>:0 
  at Mono.Unix.UnixFileSystemInfo.CreateLink (System.String path) [0x0000c] in <4a040cc44eb54354b3d289eb2bbc1e23>:0 
  at NzbDrone.Mono.Disk.DiskProvider.TryCreateHardLink (System.String source, System.String destination) [0x00013] in M:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Mono\Disk\DiskProvider.cs:182 

19-9-15 15:36:40.4|Trace|DiskTransferService|Hardlink move failed, reverting to move.

It makes sense that it can’t create a symlink on the seedbox. It also shouldn’t move the file at all, it should just copy it, no?

In Settings, I have “Use Hardlinks instead of Copy” set to No, but I don’t see any setting to always copy instead of move files. Like I said, I have renaming entirely disabled so all Sonarr has to do is copy the file from the mounted seedbox volume to the local TV directory.

I also disabled both “Remove” options under Settings > Download Client to see if that might have created a problem.

The main thing that confuses me is that manual import totally works. I did a manual import while the trace log was running so that successful process should also be in the log linked above, in case that provides any clues.

Really the functionality I guess I’m looking for is for Sonarr to do whatever it does when I invoke Wanted > Manual Import > Import File(s) Automatically by itself whenever a torrent finishes downloading.

Thanks for any assistance!

In case anyone with this issue stumbles on this thread, I was never able to solve this so I switched to Medusa, which is working as expected.

There’s a lot I actually prefer about Sonarr compared to Medusa/SickRage/SickChill (especially the ability to really tweak quality settings and file sizes; the UI is also a lot nicer), and maybe I’ll try Sonarr again sometime. With my setup, though, I just couldn’t get it to automatically import the files.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.