worked fine for a long time, but it looks like as of around end of May this has been occurring, preventing shows from being processed
First off don’t spam create new threads, at first look they all look to be related as they all relate to importing files…
Check permissions and you should be running mono with the --debug
switch.
mono is running as the user that has ownership rights to all the files and folders. Some items import, even some items for some shows import. However, other items have all these different errors pop up. Different episodes have different “excuses” as to why they won’t import.
for example (now running with --debug),
Couldn’t import episode /media/storage/4/Downloads/Downloaded/TV/Top Gear - S21E07/Top Gear - S21E07 - Series 21, Episode 7.mkv: Cannot create a file that already exist.
System.IO.IOException: Cannot create a file that already exist.
at System.IO.File.Move (System.String sourceFileName, System.String destFileName) [0x0013a] in /build/buildd/mono-3-3.12.1+precise1/mcs/class/corlib/System.IO/File.cs:319
at NzbDrone.Common.Disk.DiskProviderBase.TransferFile (System.String source, System.String destination, TransferMode mode, Boolean overwrite) [0x0017f] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Common\Disk\DiskProviderBase.cs:285
at NzbDrone.Core.MediaFiles.EpisodeFileMovingService.TransferFile (NzbDrone.Core.MediaFiles.EpisodeFile episodeFile, NzbDrone.Core.Tv.Series series, System.Collections.Generic.List1 episodes, System.String destinationFilename, TransferMode mode) [0x001b5] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\MediaFiles\EpisodeFileMovingService.cs:126 at NzbDrone.Core.MediaFiles.EpisodeFileMovingService.MoveEpisodeFile (NzbDrone.Core.MediaFiles.EpisodeFile episodeFile, NzbDrone.Core.Parser.Model.LocalEpisode localEpisode) [0x00055] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\MediaFiles\EpisodeFileMovingService.cs:68 at NzbDrone.Core.MediaFiles.UpgradeMediaFileService.UpgradeEpisodeFile (NzbDrone.Core.MediaFiles.EpisodeFile episodeFile, NzbDrone.Core.Parser.Model.LocalEpisode localEpisode, Boolean copyOnly) [0x00119] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\MediaFiles\UpgradeMediaFileService.cs:64 at NzbDrone.Core.MediaFiles.EpisodeImport.ImportApprovedEpisodes.Import (System.Collections.Generic.List
1 decisions, Boolean newDownload, NzbDrone.Core.Download.DownloadClientItem downloadClientItem) [0x0022c] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\MediaFiles\EpisodeImport\ImportApprovedEpisodes.cs:89
however, the file does not exist.
or,
Unable to check free disk space while importing: /media/storage/4/Downloads/Downloaded/TV/Gotham S01E21 The Anvil Or The Hammer 1080p WEB-DL DD5 1 H 264-ECI-NZBgeek/ZQ40Ih0eUWaSRp.mkv: Invalid handle to path “/media/storage/all”
System.IO.IOException: Invalid handle to path "/media/storage/all"
at System.IO.DriveInfo.GetDiskFreeSpace (System.String path, System.UInt64& availableFreeSpace, System.UInt64& totalSize, System.UInt64& totalFreeSpace) [0x00010] in /build/buildd/mono-3-3.12.1+precise1/mcs/class/corlib/System.IO/DriveInfo.cs:73
at System.IO.DriveInfo.get_AvailableFreeSpace () [0x00000] in /build/buildd/mono-3-3.12.1+precise1/mcs/class/corlib/System.IO/DriveInfo.cs:82
at NzbDrone.Mono.DiskProvider.GetAvailableSpace (System.String path) [0x0008e] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Mono\DiskProvider.cs:37
at NzbDrone.Core.MediaFiles.EpisodeImport.Specifications.FreeSpaceSpecification.IsSatisfiedBy (NzbDrone.Core.Parser.Model.LocalEpisode localEpisode) [0x00058] in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\MediaFiles\EpisodeImport\Specifications\FreeSpaceSpecification.cs:41
Which version of Sonarr?
Which version of Mono?
Which OS?
Do the files that import have different permissions than the files that don’t (at the file level are the owner, group or permissions different)?
Is this a disk or a share?
Is the destination on /media/storage/all
? Are all the series on this same disk/share?
Sonarr Ver. 2.0.0.3243
Mono JIT compiler version 3.12.1 (tarball Mon Mar 9 16:17:40 UTC 2015)
Linux fileserver 3.2.0-54-generic-pae #82-Ubuntu SMP Tue Sep 10 20:29:22 UTC 2013 i686 i686 i386 GNU/Linux
now it seems nothing will import. all the files and directories have the same user/group ownership, downloaded “source”, and destination directories.
the disk is an mhddfs mounted directory, which has been working fine with nzbdrone/sonarr for a while now. Did sonarr change how it handles obtaining remaining size information?
I see a lot of,
15-7-8 10:16:52.7|Error|FreeSpaceSpecification|Unable to check free disk space while importing:
and
System.IO.IOException: Invalid handle to path “/media/storage/all”
but also,
System.IO.IOException: Invalid handle to path “”
in the log.
Try turning off the free space check in Media Management settings, offhand I don’t know if its the same issue as here:
But I suspect it it.
turned off free space check, clicked save, reran the “Downloaded Episodes Scan” task, and still see these,
http://pastebin.com/dpSptK4Y
What permissions have you told Sonarr to set on the files? Screenshot please.
Which user is running Sonarr?
root
is the only user that is able to take ownership of a file thats not owned by it and give the file away, try clearing the user and group fields and saving the settings.
not root, disabled Set Permissions, will see how that works out. waiting for the task to run…
now just the invalid path errors.
Could you post fresh logs please.
Are there existing files of any quality for these episodes?
Does Sonarr have read and write permissions to the source and destination?
sonarr is being run as the user who owns and has full rights to both the source and destination files.
these are all episodes that do not already exist in the destination location.
Okay great, could you get us some trace logs of the import, they should give us a better indication of what Sonarr is doing before it runs into problems.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.