Sonarr version (exact version): 4.0.10.2544
Mono version (if Sonarr is not running on Windows): Yes (6.0.13)
OS: Ubuntu Server 24.04
Debug logs:
Description of issue: This has happened a couple times, an episode completes downloading, copies it to the library folder (/mnt/videos/TV//), then seemingly throws an error about not being able to import it. Sonarr then deletes the file from the folder and re-attemps the import. It does this over and over until I notice and stop the on-going download client job. The last time this happened, it basically ended up killing my NAS and had to buy a new one (not your fault, just indicating the severity of the issue). Hopefully this is maybe just a setting change, but cannot seem to find out why this is happening and does not happen on every download.
2024-11-14 14:10:35.5|Info|DiskScanService|Scanning Abbott Elementary
2024-11-14 14:10:35.6|Info|DiskScanService|Completed scanning disk for Abbott Elementary
2024-11-14 14:10:35.8|Info|ExistingMetadataImporter|Found 0 existing metadata files
2024-11-14 14:10:35.8|Info|ExistingSubtitleImporter|Found 0 existing subtitle files
2024-11-14 14:10:35.8|Info|ExistingOtherExtraImporter|Found 0 existing other extra files
2024-11-14 14:10:35.8|Info|ExistingExtraFileService|Found 0 possible extra files, imported 0 files.
2024-11-14 14:10:40.7|Info|RecycleBinProvider|Recycling Bin has not been configured, deleting permanently. /mnt/videos/TV/Abbott Elementary/Season 4/Abbott Elementary.S04E06.The Deli.mkv
2024-11-14 14:10:50.4|Warn|ImportApprovedEpisodes|Couldn’t import episode /data/downloads/Abbott.Elementary.S04E06.1080p.WEB.H264-SuccessfulCrab[TGx]/abbott.elementary.s04e06.1080p.web.h264-successfulcrab.mkv
[v4.0.10.2544] System.UnauthorizedAccessException: Access to the path ‘/data/downloads/Abbott.Elementary.S04E06.1080p.WEB.H264-SuccessfulCrab[TGx]/abbott.elementary.s04e06.1080p.web.h264-successfulcrab.mkv’ is denied.
—> System.IO.IOException: Permission denied
— End of inner exception stack trace —
at System.IO.FileSystem.DeleteFile(String fullPath)
at NzbDrone.Common.Disk.DiskTransferService.TransferFile(String sourcePath, String targetPath, TransferMode mode, Boolean overwrite) in ./Sonarr.Common/Disk/DiskTransferService.cs:line 296
at NzbDrone.Core.MediaFiles.EpisodeFileMovingService.TransferFile(EpisodeFile episodeFile, Series series, List1 episodes, String destinationFilePath, TransferMode mode, LocalEpisode localEpisode) in ./Sonarr.Core/MediaFiles/EpisodeFileMovingService.cs:line 174 at NzbDrone.Core.MediaFiles.EpisodeFileMovingService.MoveEpisodeFile(EpisodeFile episodeFile, LocalEpisode localEpisode) in ./Sonarr.Core/MediaFiles/EpisodeFileMovingService.cs:line 85 at NzbDrone.Core.MediaFiles.UpgradeMediaFileService.UpgradeEpisodeFile(EpisodeFile episodeFile, LocalEpisode localEpisode, Boolean copyOnly) in ./Sonarr.Core/MediaFiles/UpgradeMediaFileService.cs:line 80 at NzbDrone.Core.MediaFiles.EpisodeImport.ImportApprovedEpisodes.Import(List
1 decisions, Boolean newDownload, DownloadClientItem downloadClientItem, ImportMode importMode) in ./Sonarr.Core/MediaFiles/EpisodeImport/ImportApprovedEpisodes.cs:line 159
2024-11-14 14:12:05.5|Warn|ImportApprovedEpisodes|Couldn’t import episode /data/downloads/Abbott.Elementary.S04E06.1080p.WEB.H264-SuccessfulCrab[TGx]/abbott.elementary.s04e06.1080p.web.h264-successfulcrab.mkv
[v4.0.10.2544] NzbDrone.Common.Disk.DestinationAlreadyExistsException: Destination /mnt/videos/TV/Abbott Elementary/Season 4/Abbott Elementary.S04E06.The Deli.mkv already exists.
at NzbDrone.Common.Disk.DiskTransferService.ClearTargetPath(String sourcePath, String targetPath, Boolean overwrite) in ./Sonarr.Common/Disk/DiskTransferService.cs:line 403
at NzbDrone.Common.Disk.DiskTransferService.TransferFile(String sourcePath, String targetPath, TransferMode mode, Boolean overwrite) in ./Sonarr.Common/Disk/DiskTransferService.cs:line 296
at NzbDrone.Core.MediaFiles.EpisodeFileMovingService.TransferFile(EpisodeFile episodeFile, Series series, List1 episodes, String destinationFilePath, TransferMode mode, LocalEpisode localEpisode) in ./Sonarr.Core/MediaFiles/EpisodeFileMovingService.cs:line 174 at NzbDrone.Core.MediaFiles.EpisodeFileMovingService.MoveEpisodeFile(EpisodeFile episodeFile, LocalEpisode localEpisode) in ./Sonarr.Core/MediaFiles/EpisodeFileMovingService.cs:line 85 at NzbDrone.Core.MediaFiles.UpgradeMediaFileService.UpgradeEpisodeFile(EpisodeFile episodeFile, LocalEpisode localEpisode, Boolean copyOnly) in ./Sonarr.Core/MediaFiles/UpgradeMediaFileService.cs:line 80 at NzbDrone.Core.MediaFiles.EpisodeImport.ImportApprovedEpisodes.Import(List
1 decisions, Boolean newDownload, DownloadClientItem downloadClientItem, ImportMode importMode) in ./Sonarr.Core/MediaFiles/EpisodeImport/ImportApprovedEpisodes.cs:line 159
2024-11-14 14:12:05.5|Info|DiskScanService|Scanning Abbott Elementary
2024-11-14 14:12:05.7|Info|DiskScanService|Completed scanning disk for Abbott Elementary
2024-11-14 14:12:05.8|Info|ExistingMetadataImporter|Found 0 existing metadata files
2024-11-14 14:12:05.8|Info|ExistingSubtitleImporter|Found 0 existing subtitle files
2024-11-14 14:12:05.8|Info|ExistingOtherExtraImporter|Found 0 existing other extra files
2024-11-14 14:12:05.8|Info|ExistingExtraFileService|Found 0 possible extra files, imported 0 files.
2024-11-14 14:12:10.7|Info|RecycleBinProvider|Recycling Bin has not been configured, deleting permanently. /mnt/videos/TV/Abbott Elementary/Season 4/Abbott Elementary.S04E06.The Deli.mkv
2024-11-14 14:12:20.4|Warn|ImportApprovedEpisodes|Couldn’t import episode /data/downloads/Abbott.Elementary.S04E06.1080p.WEB.H264-SuccessfulCrab[TGx]/abbott.elementary.s04e06.1080p.web.h264-successfulcrab.mkv
for futher context, this is the NIC on the server and was how i noticed there was a problem. this is way more traffic than expected for a single episode of a show: