Import issus on smb shares

Sonarr version 2.0.0.4427
Mono version 4.2.3
Debian Jessie

6-12-19 09:34:19.7|Debug|Api|[GET] /api/health: 200.OK (5 ms)
16-12-19 09:34:19.7|Debug|Api|[GET] /api/health: 200.OK (3 ms)
16-12-19 09:34:20.0|Debug|Api|[GET] /api/diskspace: 200.OK (308 ms)
16-12-19 09:34:20.0|Debug|Api|[GET] /api/diskspace: 200.OK (305 ms)
16-12-19 09:34:20.0|Debug|Api|[GET] /api/system/task?sort_by=name&order=asc: 200.OK (15 ms)
16-12-19 09:34:20.0|Debug|Api|[GET] /api/system/task?sort_by=name&order=asc: 200.OK (15 ms)
16-12-19 09:34:20.5|Debug|Api|[GET] /api/log?page=1&pageSize=50&sortKey=time&sortDir=desc: 200.OK (16 ms)
16-12-19 09:34:20.5|Debug|Api|[GET] /api/log?page=1&pageSize=50&sortKey=time&sortDir=desc: 200.OK (9 ms)
16-12-19 09:34:20.8|Warn|DiskTransferService|Failed to completely transfer [/home/plexdl/nzbget/downloads/completed/Series/Homeland.S05E03.720p.WEB-DL.DD5.1.H.264-KiNGS/64yrtfghder6tyuw456ye5tuyjy54w.mkv] to [/home4/plex/tv/Homeland/Season 5/Homeland.S05E03.720p.WEB
-DL.DD5.1.H.264-KiNGS.mkv], retrying [2/2].
16-12-19 09:34:33.7|Debug|Api|[GET] /api/log/file: 200.OK (2 ms)
16-12-19 09:34:33.8|Debug|Api|[GET] /api/log/file/sonarr.debug.txt: 200.OK (5 ms)
16-12-19 09:35:43.9|Debug|Api|[GET] /api/system/task?sort_by=name&order=asc: 200.OK (5 ms)
16-12-19 09:35:44.0|Debug|Api|[GET] /api/system/task?sort_by=name&order=asc: 200.OK (5 ms)
16-12-19 09:35:47.2|Error|DiskTransferService|Failed to completely transfer [/home/plexdl/nzbget/downloads/completed/Series/Homeland.S05E03.720p.WEB-DL.DD5.1.H.264-KiNGS/64yrtfghder6tyuw456ye5tuyjy54w.mkv] to [/home4/plex/tv/Homeland/Season 5/Homeland.S05E03.720p.WEB-DL.DD5.1.H.264-KiNGS.mkv], aborting.
16-12-19 09:35:47.2|Warn|ImportApprovedEpisodes|Couldn’t import episode /home/plexdl/nzbget/downloads/completed/Series/Homeland.S05E03.720p.WEB-DL.DD5.1.H.264-KiNGS/64yrtfghder6tyuw456ye5tuyjy54w.mkv

[v2.0.0.4427] System.IO.IOException: Failed to completely transfer [/home/plexdl/nzbget/downloads/completed/Series/Homeland.S05E03.720p.WEB-DL.DD5.1.H.264-KiNGS/64yrtfghder6tyuw456ye5tuyjy54w.mkv] to [/home4/plex/tv/Homeland/Season 5/Homeland.S05E03.720p.WEB-DL.DD5.1.H.264-KiNGS.mkv], aborting.
at NzbDrone.Common.Disk.DiskTransferService.TransferFile (System.String sourcePath, System.String targetPath, TransferMode mode, Boolean overwrite, DiskTransferVerificationMode verificationMode) <0x4098fc50 + 0x00abf> in :0
at NzbDrone.Common.Disk.DiskTransferService.TransferFile (System.String sourcePath, System.String targetPath, TransferMode mode, Boolean overwrite, Boolean verified) <0x4098fbd0 + 0x0005b> in :0
at NzbDrone.Core.MediaFiles.EpisodeFileMovingService.TransferFile (NzbDrone.Core.MediaFiles.EpisodeFile episodeFile, NzbDrone.Core.Tv.Series series, System.Collections.Generic.List1 episodes, System.String destinationFilePath, TransferMode mode) <0x4098f420 + 0x00439> in <filename unknown>:0 at NzbDrone.Core.MediaFiles.EpisodeFileMovingService.MoveEpisodeFile (NzbDrone.Core.MediaFiles.EpisodeFile episodeFile, NzbDrone.Core.Parser.Model.LocalEpisode localEpisode) <0x40947680 + 0x0011f> in <filename unknown>:0 at NzbDrone.Core.MediaFiles.UpgradeMediaFileService.UpgradeEpisodeFile (NzbDrone.Core.MediaFiles.EpisodeFile episodeFile, NzbDrone.Core.Parser.Model.LocalEpisode localEpisode, Boolean copyOnly) <0x409466d0 + 0x005b7> in <filename unknown>:0 at NzbDrone.Core.MediaFiles.EpisodeImport.ImportApprovedEpisodes.Import (System.Collections.Generic.List1 decisions, Boolean newDownload, NzbDrone.Core.Download.DownloadClientItem downloadClientItem, ImportMode importMode) <0x409409a0 + 0x0143a> in :0

I have two smb shares from one debian to another. When I copy files to the share manually (from the same user that runs sonarr) everything is working great, but when I let sonarr handle the import the system is hanging completely and the copy/move failes right on the end. I am looking at the filesize from the samba server and it copies the whole file, but when it should be finalized the error comes. If i let sonarr try it again and again and again it suddenly works. I have turned off chmod at import in Sonarr config, but that did not help. Is Sonarr doing anything special at the end of an import? Anyone got any idea? Is Samba the problem?

It’s an issue we’ve seen before with mono and smb shares, but it seems to be inconsistent and doesn’t always affect all setups. Sonarr is capable of detecting it (what you’re seeing in the logs) and attempts to get around it, but here it failed.

NFS does not have the same issue and is the recommended workaround.

Thank you for the answer. NFS was the first one I used, but i could not get it to work like it should. After copying 5GB++ it would stall. Used several months to fix it but I could not.

Now I am using an combination og sshfs and nfs. sshfs with sonarr to import the files. Havent tested the speed, but it is going fast enough. Then using NFS for the plex library. I probably could use sshfs there to and it would work good, but NFS was working OK with plex (Not so intensive with read).

Edit: double up with shares, but so what - It works :slight_smile:

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.