Couldn't import episode - Invalid handle to path

Sonarr version (exact version): 2.0.0.5228
Mono version (if Sonarr is not running on Windows): 5.14.0.177
OS: Ubuntu 18.04

Iv recently switched to Linux and re-imported and recreated all my Sonarr settings. Iv also switched my torrent client.

For some reason I am seeing the error below when some torrents have completed.
For context, /media/mediacomp and /media/mediacompcompdir are both mounted CIFS shares on a windows computer.

Couldn’t import episode /media/mediacompcompdir/13.Reasons.Why.S01E10.2160p.NF.WEBRip.DD5.1.x264-VLAD[rartv]/13.Reasons.Why.S01E10.2160p.NF.WEBRip.DD5.1.x264-VLAD.mkv: Invalid handle to path “/media/mediacompcompdir/13.Reasons.Why.S01E10.2160p.NF.WEBRip.DD5.1.x264-VLAD[rartv]/13.Reasons.Why.S01E10.2160p.NF.WEBRip.DD5.1.x264-VLAD.mkv” or “/media/mediacomp/Media/TV Shows/13 Reasons Why/Season 01/13.Reasons.Why.S01E10.2160p.NF.WEBRip.DD5.1.x264-VLAD[rartv].mkv.partial~”

System.IO.IOException: Invalid handle to path “/media/mediacompcompdir/13.Reasons.Why.S01E10.2160p.NF.WEBRip.DD5.1.x264-VLAD[rartv]/13.Reasons.Why.S01E10.2160p.NF.WEBRip.DD5.1.x264-VLAD.mkv” or “/media/mediacomp/Media/TV Shows/13 Reasons Why/Season 01/13.Reasons.Why.S01E10.2160p.NF.WEBRip.DD5.1.x264-VLAD[rartv].mkv.partial~”
at System.IO.File.Copy (System.String sourceFileName, System.String destFileName, System.Boolean overwrite) [0x00192] in <2943701620b54f86b436d3ffad010412>:0
at NzbDrone.Common.Disk.DiskProviderBase.CopyFileInternal (System.String source, System.String destination, System.Boolean overwrite) [0x00000] in <8faeb593f49341d6a7a6d2c3c281887c>:0
at NzbDrone.Mono.Disk.DiskProvider.CopyFileInternal (System.String source, System.String destination, System.Boolean overwrite) [0x00076] in :0
at NzbDrone.Common.Disk.DiskProviderBase.CopyFile (System.String source, System.String destination, System.Boolean overwrite) [0x000bc] in <8faeb593f49341d6a7a6d2c3c281887c>:0
at NzbDrone.Common.Disk.DiskTransferService.TryCopyFileTransactional (System.String sourcePath, System.String targetPath, System.Int64 originalSize) [0x00108] in <8faeb593f49341d6a7a6d2c3c281887c>:0
at NzbDrone.Common.Disk.DiskTransferService.TransferFile (System.String sourcePath, System.String targetPath, NzbDrone.Common.Disk.TransferMode mode, System.Boolean overwrite, NzbDrone.Common.Disk.DiskTransferVerificationMode verificationMode) [0x0034a] in <8faeb593f49341d6a7a6d2c3c281887c>:0
at NzbDrone.Common.Disk.DiskTransferService.TransferFile (System.String sourcePath, System.String targetPath, NzbDrone.Common.Disk.TransferMode mode, System.Boolean overwrite, System.Boolean verified) [0x0000e] in <8faeb593f49341d6a7a6d2c3c281887c>:0
at NzbDrone.Core.MediaFiles.EpisodeFileMovingService.TransferFile (NzbDrone.Core.MediaFiles.EpisodeFile episodeFile, NzbDrone.Core.Tv.Series series, System.Collections.Generic.List1[T] episodes, System.String destinationFilePath, NzbDrone.Common.Disk.TransferMode mode) [0x0012c] in <f8c4a2c9e6194b509efc6018724d76df>:0 at NzbDrone.Core.MediaFiles.EpisodeFileMovingService.CopyEpisodeFile (NzbDrone.Core.MediaFiles.EpisodeFile episodeFile, NzbDrone.Core.Parser.Model.LocalEpisode localEpisode) [0x000a6] in <f8c4a2c9e6194b509efc6018724d76df>:0 at NzbDrone.Core.MediaFiles.UpgradeMediaFileService.UpgradeEpisodeFile (NzbDrone.Core.MediaFiles.EpisodeFile episodeFile, NzbDrone.Core.Parser.Model.LocalEpisode localEpisode, System.Boolean copyOnly) [0x00167] in <f8c4a2c9e6194b509efc6018724d76df>:0 at NzbDrone.Core.MediaFiles.EpisodeImport.ImportApprovedEpisodes.Import (System.Collections.Generic.List1[T] decisions, System.Boolean newDownload, NzbDrone.Core.Download.DownloadClientItem downloadClientItem, NzbDrone.Core.MediaFiles.EpisodeImport.ImportMode importMode) [0x00272] in :0

Strange. a restart of the linux server seems to have resolved the issue.

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