Couldn't import episode, file already in use by another process

Sonarr version (exact version): 2.0.0.5322
Mono version (if Sonarr is not running on Windows): Running on Windows
OS: Windows 10
Debug logs:
Couldn't import episode E:\Torrents\xxxxxxx.mkv: Le processus ne peut pas accéder au fichier, car il est utilisé par un autre processus. (Translation: The process cannot access the file as it is in use by another process.)

System.IO.IOException: Le processus ne peut pas accéder au fichier, car il est utilisé par un autre processus.
   à System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   à System.IO.__Error.WinIOError()
   à System.IO.File.InternalMove(String sourceFileName, String destFileName, Boolean checkHost)
   à NzbDrone.Common.Disk.DiskProviderBase.MoveFileInternal(String source, String destination) dans C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Common\Disk\DiskProviderBase.cs:ligne 232
   à NzbDrone.Common.Disk.DiskProviderBase.MoveFile(String source, String destination, Boolean overwrite) dans C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Common\Disk\DiskProviderBase.cs:ligne 227
   à NzbDrone.Common.Disk.DiskTransferService.TryMoveFileVerified(String sourcePath, String targetPath, Int64 originalSize) dans C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Common\Disk\DiskTransferService.cs:ligne 577
   à NzbDrone.Common.Disk.DiskTransferService.TransferFile(String sourcePath, String targetPath, TransferMode mode, Boolean overwrite, DiskTransferVerificationMode verificationMode) dans C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Common\Disk\DiskTransferService.cs:ligne 321
   à NzbDrone.Common.Disk.DiskTransferService.TransferFile(String sourcePath, String targetPath, TransferMode mode, Boolean overwrite, Boolean verified) dans C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Common\Disk\DiskTransferService.cs:ligne 196
   à NzbDrone.Core.MediaFiles.EpisodeFileMovingService.TransferFile(EpisodeFile episodeFile, Series series, List`1 episodes, String destinationFilePath, TransferMode mode) dans C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Core\MediaFiles\EpisodeFileMovingService.cs:ligne 119
   à NzbDrone.Core.MediaFiles.EpisodeFileMovingService.MoveEpisodeFile(EpisodeFile episodeFile, LocalEpisode localEpisode) dans C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Core\MediaFiles\EpisodeFileMovingService.cs:ligne 79
   à NzbDrone.Core.MediaFiles.UpgradeMediaFileService.UpgradeEpisodeFile(EpisodeFile episodeFile, LocalEpisode localEpisode, Boolean copyOnly) dans C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Core\MediaFiles\UpgradeMediaFileService.cs:ligne 76
   à NzbDrone.Core.MediaFiles.EpisodeImport.ImportApprovedEpisodes.Import(List`1 decisions, Boolean newDownload, DownloadClientItem downloadClientItem, ImportMode importMode) dans C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Core\MediaFiles\EpisodeImport\ImportApprovedEpisodes.cs:ligne 105

Here is the full log: https://pastebin.com/spDrMYuW

Description of issue:
Hello, since few weeks, I have many (~40%) of my download that fails to import.
I can manualy add the by clicking on the manual import and then it works, but the automatic feature fails regularly with that error.

Few words on my setup:

  • Windows 10 computer running Deluge (~1000 torrent seeding) stored mixed on a local HD or on a NAS. (I have the issue on torrent stored on both location.)
  • My media Library is on a Cloud using StableBit CloudSync - It creates a local harddrive with a cache. (I exclude this from the equation as it is an error on the torrent before the copy.)

I tried to change hardlink to copy to see if it would change, but no luck.

Thank you for your help :slight_smile:

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