Sonarr version (exact version): 3.0.0.348
Mono version (if Sonarr is not running on Windows): 5.14.0.177
OS: Synology DSM 6.2 (Sonarr installed via Docker)
Debug logs:
(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. Post in .txt not .doc, .rtf or some other formatted document)
Description of issue: Manually importing an episode of ‘Channel 4 (UK) Documentaries’ and getting this exception:
18-12-30 12:32:48.3|Warn|ImportApprovedEpisodes|Couldn't import episode /downloads/The Secret World of Emily Bronte (29 Dec 2018)[Hdtv mp4][Subs]SnG.mp4
[v3.0.0.348] System.ArgumentException: An empty file name is not valid.
at System.IO.DirectoryInfo.CheckPath (System.String path) [0x00016] in <2943701620b54f86b436d3ffad010412>:0
at System.IO.DirectoryInfo..ctor (System.String path, System.Boolean simpleOriginalPath) [0x00006] in <2943701620b54f86b436d3ffad010412>:0
at System.IO.DirectoryInfo..ctor (System.String path) [0x00000] in <2943701620b54f86b436d3ffad010412>:0
at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo..ctor(string)
at NzbDrone.Common.Extensions.PathExtensions.IsParentPath (System.String parentPath, System.String childPath) [0x00060] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Common\Extensions\PathExtensions.cs:92
at NzbDrone.Common.Extensions.PathExtensions.GetRelativePath (System.String parentPath, System.String childPath) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Common\Extensions\PathExtensions.cs:60
at NzbDrone.Core.MediaFiles.EpisodeImport.ImportApprovedEpisodes.GetOriginalFilePath (NzbDrone.Core.Download.DownloadClientItem downloadClientItem, NzbDrone.Core.Parser.Model.LocalEpisode localEpisode) [0x0006f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\MediaFiles\EpisodeImport\ImportApprovedEpisodes.cs:188
at NzbDrone.Core.MediaFiles.EpisodeImport.ImportApprovedEpisodes.Import (System.Collections.Generic.List`1[T] decisions, System.Boolean newDownload, NzbDrone.Core.Download.DownloadClientItem downloadClientItem, NzbDrone.Core.MediaFiles.EpisodeImport.ImportMode importMode) [0x00270] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\MediaFiles\EpisodeImport\ImportApprovedEpisodes.cs:108
Tried renaming the MP4 file, but get the same:
18-12-30 12:39:21.0|Warn|QualityFinder|Unable to find exact quality for Unknown and 480. Using SDTV as fallback
18-12-30 12:39:21.1|Warn|ImportApprovedEpisodes|Couldn't import episode /downloads/Secret World of Emily Bronte.mp4
[v3.0.0.348] System.ArgumentException: An empty file name is not valid.
at System.IO.DirectoryInfo.CheckPath (System.String path) [0x00016] in <2943701620b54f86b436d3ffad010412>:0
at System.IO.DirectoryInfo..ctor (System.String path, System.Boolean simpleOriginalPath) [0x00006] in <2943701620b54f86b436d3ffad010412>:0
at System.IO.DirectoryInfo..ctor (System.String path) [0x00000] in <2943701620b54f86b436d3ffad010412>:0
at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo..ctor(string)
at NzbDrone.Common.Extensions.PathExtensions.IsParentPath (System.String parentPath, System.String childPath) [0x00060] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Common\Extensions\PathExtensions.cs:92
at NzbDrone.Common.Extensions.PathExtensions.GetRelativePath (System.String parentPath, System.String childPath) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Common\Extensions\PathExtensions.cs:60
at NzbDrone.Core.MediaFiles.EpisodeImport.ImportApprovedEpisodes.GetOriginalFilePath (NzbDrone.Core.Download.DownloadClientItem downloadClientItem, NzbDrone.Core.Parser.Model.LocalEpisode localEpisode) [0x0006f] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\MediaFiles\EpisodeImport\ImportApprovedEpisodes.cs:188
at NzbDrone.Core.MediaFiles.EpisodeImport.ImportApprovedEpisodes.Import (System.Collections.Generic.List`1[T] decisions, System.Boolean newDownload, NzbDrone.Core.Download.DownloadClientItem downloadClientItem, NzbDrone.Core.MediaFiles.EpisodeImport.ImportMode importMode) [0x00270] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\MediaFiles\EpisodeImport\ImportApprovedEpisodes.cs:108
Feels like something with the 29-Dec release, as manual import (and Sonarr v3) has been working perfectly and without incident for the last 2 months. May be something specific to this file/import, since at least one other show has correctly imported (automatic, not manual) in the last 12 hours. This is the first episode for this show, so I tried manually creating the show folder, but that didn’t solve it.
I guess it could be file permissions or something, but perhaps the exception could be caught and more diagnostics logged so it’s easier to understand what the problem is?