Hi
Just had a small issue with repack/proper downloading when using hard links. An error happened when trying to import the repack saying that the original file was still in use (the non repack version). This was probably because it was still seeding at the time.
[code]
Couldn’t import episode D:\Torrent\Complete\TV Shows\Witches.of.East.End.S02E08.REPACK.HDTV.x264-KILLERS[rarbg]\Witches.of.East.End.S02E08.REPACK.HDTV.x264-KILLERS.mp4: The process cannot access the file ‘D:\TV Shows\Witches of East End\Season 2\Witches of East End - S02E08 - Sex, Lies, and Birthday Cake.mp4’ because it is being used by another process.
System.IO.IOException: The process cannot access the file ‘D:\TV Shows\Witches of East End\Season 2\Witches of East End - S02E08 - Sex, Lies, and Birthday Cake.mp4’ because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at System.IO.File.Delete(String path)
at NzbDrone.Common.Disk.DiskProviderBase.DeleteFile(String path) in m:\BuildAgent2\work\328d72309b633a8\src\NzbDrone.Common\Disk\DiskProviderBase.cs:line 222
at NzbDrone.Core.MediaFiles.RecycleBinProvider.DeleteFile(String path) in m:\BuildAgent2\work\328d72309b633a8\src\NzbDrone.Core\MediaFiles\RecycleBinProvider.cs:line 85
at NzbDrone.Core.MediaFiles.UpgradeMediaFileService.UpgradeEpisodeFile(EpisodeFile episodeFile, LocalEpisode localEpisode, Boolean copyOnly) in m:\BuildAgent2\work\328d72309b633a8\src\NzbDrone.Core\MediaFiles\UpgradeMediaFileService.cs:line 52
at NzbDrone.Core.MediaFiles.EpisodeImport.ImportApprovedEpisodes.Import(List`1 decisions, Boolean newDownload, DownloadClientItem historyItem) in m:\BuildAgent2\work\328d72309b633a8\src\NzbDrone.Core\MediaFiles\EpisodeImport\ImportApprovedEpisodes.cs:line 85[/code]
How do you replace files in nzbdrone - do you overwrite the previous file or delete it and then move/copy/hard link the new one?
If you try to overwrite a hard link (say in the tv show directory) it appears to edit the original file in the download directory too (either causing an error with seeding or failing to overwrite because the file is in use by seeding).
Deleting the file in the tv show directory and then creating a new hard link will be a better solution when replacing files.
Everything else has been working pretty solidly the last week or so for me