Radarr: partial~ keep writing and deleting over and over again

Created on 29 Jul 2019  路  5Comments  路  Source: Radarr/Radarr

I can see that Radarr have write access to the folder and that it moves the files as partial.
But after writing the full file to the folder it is deleted and it start over again?

Looking at the log files:
Couldn't import movie /downloads/Movie2.2014/movie2.2014.mkv: Access to the path is denied.
But I can see the file being written to the file to the shared folder? over and over again

This is when writing to a SMB share, everything worked before the upgrade...
Radarr have write access to the share

Latest update to
Radarr Version:
Version
0.2.0.1358
Mono Version:
Mono Version
6.0.0.313 (tarball Sun Jul 14 09:57:59 UTC 2019)

Debug Logs:
System.UnauthorizedAccessException: Access to the path is denied. ---> System.IO.IOException: Operation not permitted
--- End of inner exception stack trace ---
at Interop.ThrowExceptionForIoErrno (Interop+ErrorInfo errorInfo, System.String path, System.Boolean isDirectory, System.Func2[T,TResult] errorRewriter) [0x00014] in <81342d83acda4c5590ec19c7afdf26b9>:0 at Interop.CheckIo (System.Int64 result, System.String path, System.Boolean isDirectory, System.Func2[T,TResult] errorRewriter) [0x0000a] in <81342d83acda4c5590ec19c7afdf26b9>:0
at Interop.CheckIo (System.Int32 result, System.String path, System.Boolean isDirectory, System.Func2[T,TResult] errorRewriter) [0x00000] in <81342d83acda4c5590ec19c7afdf26b9>:0 at System.IO.FileSystem.CopyFile (System.String sourceFullPath, System.String destFullPath, System.Boolean overwrite) [0x00052] in <81342d83acda4c5590ec19c7afdf26b9>:0 at System.IO.File.Copy (System.String sourceFileName, System.String destFileName, System.Boolean overwrite) [0x00062] in <81342d83acda4c5590ec19c7afdf26b9>:0 at NzbDrone.Common.Disk.DiskProviderBase.CopyFile (System.String source, System.String destination, System.Boolean overwrite) [0x000bc] in C:\projects\radarr-usby1\src\NzbDrone.Common\Disk\DiskProviderBase.cs:205 at NzbDrone.Common.Disk.DiskTransferService.TryCopyFileTransactional (System.String sourcePath, System.String targetPath, System.Int64 originalSize) [0x00128] in C:\projects\radarr-usby1\src\NzbDrone.Common\Disk\DiskTransferService.cs:449 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) [0x0033e] in C:\projects\radarr-usby1\src\NzbDrone.Common\Disk\DiskTransferService.cs:276 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 C:\projects\radarr-usby1\src\NzbDrone.Common\Disk\DiskTransferService.cs:183 at NzbDrone.Core.MediaFiles.MovieFileMovingService.TransferFile (NzbDrone.Core.MediaFiles.MovieFile movieFile, NzbDrone.Core.Movies.Movie movie, System.String destinationFilePath, NzbDrone.Common.Disk.TransferMode mode) [0x0012b] in C:\projects\radarr-usby1\src\NzbDrone.Core\MediaFiles\MovieFileMovingService.cs:120 at NzbDrone.Core.MediaFiles.MovieFileMovingService.CopyMovieFile (NzbDrone.Core.MediaFiles.MovieFile movieFile, NzbDrone.Core.Parser.Model.LocalMovie localMovie) [0x00086] in C:\projects\radarr-usby1\src\NzbDrone.Core\MediaFiles\MovieFileMovingService.cs:99 at NzbDrone.Core.MediaFiles.UpgradeMediaFileService.UpgradeMovieFile (NzbDrone.Core.MediaFiles.MovieFile movieFile, NzbDrone.Core.Parser.Model.LocalMovie localMovie, System.Boolean copyOnly) [0x0009b] in C:\projects\radarr-usby1\src\NzbDrone.Core\MediaFiles\UpgradeMediaFileService.cs:65 at NzbDrone.Core.MediaFiles.MovieImport.ImportApprovedMovie.Import (System.Collections.Generic.List1[T] decisions, System.Boolean newDownload, NzbDrone.Core.Download.DownloadClientItem downloadClientItem, NzbDrone.Core.MediaFiles.MovieImport.ImportMode importMode) [0x00258] in C:\projects\radarr-usby1\src\NzbDrone.Core\MediaFiles\MovieImport\ImportApprovedMovie.cs:109

Do not remove anything from your logs and post the full logs! If not everything fits in here use a service like https://pastebin.com to upload them.

bug

Most helpful comment

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.74. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

All 5 comments

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.74. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

Revert to version with the 5.14 tag which contains Mono 5.14. Movies are now successfully moved to a SMB share.... so confirmed that the new version breaks this funct.

same Problem.
Will try to go back to an older version

The other "fix" right now is to architect your file system so that hard links work and moves are atomic instead of copy + delete. That probably means having your download client do a post download move to a folder near the library. For example, I download to /hot/usenet/movies, my usenet client moves to /data/videos/.usenet/movies and my library is /data/videos/Movies. That way, the import is an atomic move or a hard link.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

HitsvilleUK picture HitsvilleUK  路  3Comments

danielb2 picture danielb2  路  3Comments

scope999 picture scope999  路  3Comments

DaveidWeba picture DaveidWeba  路  3Comments

jipjan picture jipjan  路  3Comments