Sonarr: Season import failed - episode already exists

Created on 16 Apr 2019  路  4Comments  路  Source: Sonarr/Sonarr

Describe the bug
What happened:

  1. Added Anime series (Fate/Zero)
  2. Manually clicked to search for whole series and it started downloading torrent hash: EC89A2D2CC1CFF5DAF1CFDAE49BF0AD23C787223
  3. After downloaded, it tried importing series. It only imported first episode, other imports failed.

Episode that was successfully imported was renamed to:
[HorribleSubs] Fate Zero (01-25) [1080p] (Batch).mkv.
All file names have consistent naming, with episode number 1-25. E.g:
[HorribleSubs] Fate Zero - 01 [1080p].mkv.

Screenshots
Episode rename settings

Logs
All failed episode imports produced following log:

Couldn't import episode /data/downloads/transmission/[HorribleSubs] Fate Zero (01-25) [1080p] (Batch)/[HorribleSubs] Fate Zero - 25 [1080p].mkv: Destination /data/downloads/sonarr/Fate+Zero/[HorribleSubs] Fate Zero (01-25) [1080p] (Batch).mkv already exists.

NzbDrone.Common.Disk.DestinationAlreadyExistsException: Destination /data/downloads/sonarr/Fate+Zero/[HorribleSubs] Fate Zero (01-25) [1080p] (Batch).mkv already exists.
  at NzbDrone.Common.Disk.DiskTransferService.ClearTargetPath (System.String sourcePath, System.String targetPath, System.Boolean overwrite) [0x0002e] in <9f2860bf31524b16b46524deed33ec4b>: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) [0x00225] in <9f2860bf31524b16b46524deed33ec4b>: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 <9f2860bf31524b16b46524deed33ec4b>:0 
  at NzbDrone.Core.MediaFiles.EpisodeFileMovingService.TransferFile (NzbDrone.Core.MediaFiles.EpisodeFile episodeFile, NzbDrone.Core.Tv.Series series, System.Collections.Generic.List`1[T] episodes, System.String destinationFilePath, NzbDrone.Common.Disk.TransferMode mode) [0x0012c] in <6a3dcbc5b3c2463890627fff9fca65cd>:0 
  at NzbDrone.Core.MediaFiles.EpisodeFileMovingService.CopyEpisodeFile (NzbDrone.Core.MediaFiles.EpisodeFile episodeFile, NzbDrone.Core.Parser.Model.LocalEpisode localEpisode) [0x00079] in <6a3dcbc5b3c2463890627fff9fca65cd>:0 
  at NzbDrone.Core.MediaFiles.UpgradeMediaFileService.UpgradeEpisodeFile (NzbDrone.Core.MediaFiles.EpisodeFile episodeFile, NzbDrone.Core.Parser.Model.LocalEpisode localEpisode, System.Boolean copyOnly) [0x00167] in <6a3dcbc5b3c2463890627fff9fca65cd>:0 
  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) [0x00281] in <6a3dcbc5b3c2463890627fff9fca65cd>:0

Link to debug or trace log files:
sonarr.debug.26.txt - series added
sonarr.debug.25.txt
sonarr.debug.24.txt
sonarr.debug.23.txt
sonarr.debug.22.txt
sonarr.debug.21.txt
sonarr.debug.20.txt
sonarr.debug.19.txt
sonarr.debug.18.txt
sonarr.debug.17.txt - import failed

System Information

  • Sonarr Version: 2.0.0.5322
  • Operating System: Arch ARM (4.19.34-1-ARCH)
  • .net Framework (Windows) or mono (macOS/Linux) Version: 5.18.1
bug naming

Most helpful comment

I think this is due to having renaming off and Sonarr not treating the batch more like a season pack instead of a multi-episode release.

For a workaround you can enable renaming and choose {Original Filename} for the only renaming token, but that'll have issues with any obfuscated filenames.

All 4 comments

Link to debug or trace log files.

Please upload the relevant debug logs somewhere and link them here as requested.

What are your renaming settings?

Updated my original post with logs and episode rename settings. I'm surprised episode was even renamed. It has the same name as the folder it was downloaded into by my torrent client - [HorribleSubs] Fate Zero (01-25) [1080p] (Batch)

I think this is due to having renaming off and Sonarr not treating the batch more like a season pack instead of a multi-episode release.

For a workaround you can enable renaming and choose {Original Filename} for the only renaming token, but that'll have issues with any obfuscated filenames.

I also have this problem with Sonarr v3. The workaround suggested by @markus101 does help.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

daviddavo picture daviddavo  路  4Comments

Taloth picture Taloth  路  4Comments

mommalongnips picture mommalongnips  路  3Comments

markus101 picture markus101  路  4Comments

mabasic picture mabasic  路  3Comments