Importing files stops after a few seconds #8344

Closed
opened 2026-02-20 00:02:52 -05:00 by deekerman · 7 comments
Owner

Originally created by @n0bbi on GitHub (Mar 18, 2024).

Is there an existing issue for this?

  • I have searched the existing open and closed issues

Current Behavior

Hello,

every movie breaks off after a few seconds when importing. Usually about 300 to 600 MB have been copied by then and I see the following error message in the queue:
"Failed to import movie, Destination already exists."

To fix this, I have to delete the only partially copied file and start the import again. In about 80% of cases, the import stops again with the same message. In about 20% of the cases it then works.

I cannot find any errors in the log. The only error is that "Destination already exists". It seems to me that it tries to import again during the import and then aborts completely.

What have I already tried?

  • CIFS mount instead of NFS
  • Reboot everything
  • Changed categories in Radarr and Downloader

I am currently helping myself by manually copying the file and then importing it with "Manage Files".

I am at a loss now and don't know where to start. I would appreciate any help and tips in the right direction. Thank you very much!

Expected Behavior

Import without canceling.

Steps To Reproduce

I need to use the folder mapping because SABnzbd is running on my NAS and Radarr is running on my server. The sharing is done with NFS and there don't seem to be any authorization problems.

image
image
image
image
image

Environment

- OS: Ubuntu LXC on ProxMox
- Radarr: 5.3.6.8612
- Using Reverse Proxy: traefik 
- Browser: Google Chrome

What branch are you running?

Master

Trace Logs? Not Optional

trace.txt

Trace Logs have been provided as applicable. Reports will be closed if the required logs are not provided.

  • I have read and followed the steps in the wiki link above and provided the required trace logs - the logs contain trace - that are relevant and show this issue.
Originally created by @n0bbi on GitHub (Mar 18, 2024). ### Is there an existing issue for this? - [X] I have searched the existing open and closed issues ### Current Behavior Hello, every movie breaks off after a few seconds when importing. Usually about 300 to 600 MB have been copied by then and I see the following error message in the queue: "Failed to import movie, Destination already exists." To fix this, I have to delete the only partially copied file and start the import again. In about 80% of cases, the import stops again with the same message. In about 20% of the cases it then works. I cannot find any errors in the log. The only error is that "Destination already exists". It seems to me that it tries to import again during the import and then aborts completely. What have I already tried? - CIFS mount instead of NFS - Reboot everything - Changed categories in Radarr and Downloader I am currently helping myself by manually copying the file and then importing it with "Manage Files". I am at a loss now and don't know where to start. I would appreciate any help and tips in the right direction. Thank you very much! ### Expected Behavior Import without canceling. ### Steps To Reproduce I need to use the folder mapping because SABnzbd is running on my NAS and Radarr is running on my server. The sharing is done with NFS and there don't seem to be any authorization problems. ![image](https://github.com/Radarr/Radarr/assets/59010376/ca4d7cd1-c409-4bbc-a630-e21cafeec27b) ![image](https://github.com/Radarr/Radarr/assets/59010376/8a2c49a5-bf84-4ba1-8039-886ddef99775) ![image](https://github.com/Radarr/Radarr/assets/59010376/c0612002-4228-4b64-b309-8d32bbe1e060) ![image](https://github.com/Radarr/Radarr/assets/59010376/7fea18bd-0058-48a5-99df-113cd5376aed) ![image](https://github.com/Radarr/Radarr/assets/59010376/9a638c87-965e-4594-8b3d-2df40f4dd1b1) ### Environment ```markdown - OS: Ubuntu LXC on ProxMox - Radarr: 5.3.6.8612 - Using Reverse Proxy: traefik - Browser: Google Chrome ``` ### What branch are you running? Master ### Trace Logs? **Not Optional** [trace.txt](https://github.com/Radarr/Radarr/files/14635464/trace.txt) ### Trace Logs have been provided as applicable. Reports will be closed if the required logs are not provided. - [X] I have read and followed the steps in the wiki link above and provided the required trace logs - the logs contain `trace` - that are relevant and show this issue.
deekerman 2026-02-20 00:02:52 -05:00
Author
Owner

@mynameisbogdan commented on GitHub (Mar 18, 2024):

what are the options for the share mount?

From the logs it looks like it fails to see the destination path.

2024-03-18 12:19:03.9|Debug|MovieFileMovingService|Moving movie file: /mnt/download/Sri.Asih.2022.German.1080p.BluRay.x264-LizardSquad/sri.asih.2022.german.1080p.bluray.x264-lizardsquad.mkv to /mnt/video/Movies/Sri Asih (2022)/Sri Asih (2022) Bluray-1080p.mkv
2024-03-18 12:19:03.9|Trace|ConfigService|Using default config value for 'usescriptimport' defaultValue:'False'
2024-03-18 12:19:03.9|Debug|DiskTransferService|Move [/mnt/download/Sri.Asih.2022.German.1080p.BluRay.x264-LizardSquad/sri.asih.2022.german.1080p.bluray.x264-lizardsquad.mkv] > [/mnt/video/Movies/Sri Asih (2022)/Sri Asih (2022) Bluray-1080p.mkv]
2024-03-18 12:19:03.9|Trace|DiskTransferService|On cifs mount. Starting verified copy [/mnt/download/Sri.Asih.2022.German.1080p.BluRay.x264-LizardSquad/sri.asih.2022.german.1080p.bluray.x264-lizardsquad.mkv] to [/mnt/video/Movies/Sri Asih (2022)/Sri Asih (2022) Bluray-1080p.mkv].
2024-03-18 12:19:03.9|Debug|DiskTransferService|Rolling back file copy [/mnt/download/Sri.Asih.2022.German.1080p.BluRay.x264-LizardSquad/sri.asih.2022.german.1080p.bluray.x264-lizardsquad.mkv] to [/mnt/video/Movies/Sri Asih (2022)/Sri Asih (2022) Bluray-1080p.mkv].
2024-03-18 12:19:06.9|Warn|ImportApprovedMovie|Couldn't import movie /mnt/download/Sri.Asih.2022.German.1080p.BluRay.x264-LizardSquad/sri.asih.2022.german.1080p.bluray.x264-lizardsquad.mkv

[v5.3.6.8612] System.IO.DirectoryNotFoundException: Could not find a part of the path '/mnt/video/Movies/Sri Asih (2022)/Sri Asih (2022) Bluray-1080p.mkv'.
   at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)
   at Interop.CheckIo(Error error, String path, Boolean isDirectory, Func`2 errorRewriter)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
   at System.IO.FileSystem.CopyFile(String sourceFullPath, String destFullPath, Boolean overwrite)
   at System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite)
   at NzbDrone.Mono.Disk.DiskProvider.TransferFilePatched(String source, String destination, Boolean overwrite, Boolean move) in ./Radarr.Mono/Disk/DiskProvider.cs:line 356
   at NzbDrone.Mono.Disk.DiskProvider.CopyFileInternal(String source, String destination, Boolean overwrite) in ./Radarr.Mono/Disk/DiskProvider.cs:line 280
   at NzbDrone.Common.Disk.DiskProviderBase.CopyFile(String source, String destination, Boolean overwrite) in ./Radarr.Common/Disk/DiskProviderBase.cs:line 235
   at NzbDrone.Common.Disk.DiskTransferService.TryCopyFileVerified(String sourcePath, String targetPath, Int64 originalSize) in ./Radarr.Common/Disk/DiskTransferService.cs:line 476
   at NzbDrone.Common.Disk.DiskTransferService.TransferFile(String sourcePath, String targetPath, TransferMode mode, Boolean overwrite) in ./Radarr.Common/Disk/DiskTransferService.cs:line 380
   at NzbDrone.Core.MediaFiles.MovieFileMovingService.TransferFile(MovieFile movieFile, Movie movie, String destinationFilePath, TransferMode mode, LocalMovie localMovie) in ./Radarr.Core/MediaFiles/MovieFileMovingService.cs:line 139
   at NzbDrone.Core.MediaFiles.MovieFileMovingService.MoveMovieFile(MovieFile movieFile, LocalMovie localMovie) in ./Radarr.Core/MediaFiles/MovieFileMovingService.cs:line 82
   at NzbDrone.Core.MediaFiles.UpgradeMediaFileService.UpgradeMovieFile(MovieFile movieFile, LocalMovie localMovie, Boolean copyOnly) in ./Radarr.Core/MediaFiles/UpgradeMediaFileService.cs:line 78
   at NzbDrone.Core.MediaFiles.MovieImport.ImportApprovedMovie.Import(List`1 decisions, Boolean newDownload, DownloadClientItem downloadClientItem, ImportMode importMode) in ./Radarr.Core/MediaFiles/MovieImport/ImportApprovedMovie.cs:line 132

@mynameisbogdan commented on GitHub (Mar 18, 2024): what are the options for the share mount? From the logs it looks like it fails to see the destination path. ``` 2024-03-18 12:19:03.9|Debug|MovieFileMovingService|Moving movie file: /mnt/download/Sri.Asih.2022.German.1080p.BluRay.x264-LizardSquad/sri.asih.2022.german.1080p.bluray.x264-lizardsquad.mkv to /mnt/video/Movies/Sri Asih (2022)/Sri Asih (2022) Bluray-1080p.mkv 2024-03-18 12:19:03.9|Trace|ConfigService|Using default config value for 'usescriptimport' defaultValue:'False' 2024-03-18 12:19:03.9|Debug|DiskTransferService|Move [/mnt/download/Sri.Asih.2022.German.1080p.BluRay.x264-LizardSquad/sri.asih.2022.german.1080p.bluray.x264-lizardsquad.mkv] > [/mnt/video/Movies/Sri Asih (2022)/Sri Asih (2022) Bluray-1080p.mkv] 2024-03-18 12:19:03.9|Trace|DiskTransferService|On cifs mount. Starting verified copy [/mnt/download/Sri.Asih.2022.German.1080p.BluRay.x264-LizardSquad/sri.asih.2022.german.1080p.bluray.x264-lizardsquad.mkv] to [/mnt/video/Movies/Sri Asih (2022)/Sri Asih (2022) Bluray-1080p.mkv]. 2024-03-18 12:19:03.9|Debug|DiskTransferService|Rolling back file copy [/mnt/download/Sri.Asih.2022.German.1080p.BluRay.x264-LizardSquad/sri.asih.2022.german.1080p.bluray.x264-lizardsquad.mkv] to [/mnt/video/Movies/Sri Asih (2022)/Sri Asih (2022) Bluray-1080p.mkv]. 2024-03-18 12:19:06.9|Warn|ImportApprovedMovie|Couldn't import movie /mnt/download/Sri.Asih.2022.German.1080p.BluRay.x264-LizardSquad/sri.asih.2022.german.1080p.bluray.x264-lizardsquad.mkv [v5.3.6.8612] System.IO.DirectoryNotFoundException: Could not find a part of the path '/mnt/video/Movies/Sri Asih (2022)/Sri Asih (2022) Bluray-1080p.mkv'. at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter) at Interop.CheckIo(Error error, String path, Boolean isDirectory, Func`2 errorRewriter) at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode) at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize) at System.IO.FileSystem.CopyFile(String sourceFullPath, String destFullPath, Boolean overwrite) at System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite) at NzbDrone.Mono.Disk.DiskProvider.TransferFilePatched(String source, String destination, Boolean overwrite, Boolean move) in ./Radarr.Mono/Disk/DiskProvider.cs:line 356 at NzbDrone.Mono.Disk.DiskProvider.CopyFileInternal(String source, String destination, Boolean overwrite) in ./Radarr.Mono/Disk/DiskProvider.cs:line 280 at NzbDrone.Common.Disk.DiskProviderBase.CopyFile(String source, String destination, Boolean overwrite) in ./Radarr.Common/Disk/DiskProviderBase.cs:line 235 at NzbDrone.Common.Disk.DiskTransferService.TryCopyFileVerified(String sourcePath, String targetPath, Int64 originalSize) in ./Radarr.Common/Disk/DiskTransferService.cs:line 476 at NzbDrone.Common.Disk.DiskTransferService.TransferFile(String sourcePath, String targetPath, TransferMode mode, Boolean overwrite) in ./Radarr.Common/Disk/DiskTransferService.cs:line 380 at NzbDrone.Core.MediaFiles.MovieFileMovingService.TransferFile(MovieFile movieFile, Movie movie, String destinationFilePath, TransferMode mode, LocalMovie localMovie) in ./Radarr.Core/MediaFiles/MovieFileMovingService.cs:line 139 at NzbDrone.Core.MediaFiles.MovieFileMovingService.MoveMovieFile(MovieFile movieFile, LocalMovie localMovie) in ./Radarr.Core/MediaFiles/MovieFileMovingService.cs:line 82 at NzbDrone.Core.MediaFiles.UpgradeMediaFileService.UpgradeMovieFile(MovieFile movieFile, LocalMovie localMovie, Boolean copyOnly) in ./Radarr.Core/MediaFiles/UpgradeMediaFileService.cs:line 78 at NzbDrone.Core.MediaFiles.MovieImport.ImportApprovedMovie.Import(List`1 decisions, Boolean newDownload, DownloadClientItem downloadClientItem, ImportMode importMode) in ./Radarr.Core/MediaFiles/MovieImport/ImportApprovedMovie.cs:line 132 ```
Author
Owner

@n0bbi commented on GitHub (Mar 18, 2024):

I have tried CIFS and NFS and could not find any difference. Here are both fstab entries:

#192.168.178.47:/volume1/video   /mnt/video   nfs   defaults     0 0
#192.168.178.47:/volume1/download   /mnt/download   nfs   defaults     0 0
//192.168.178.47/video     /mnt/video        cifs    uid=0,username=xxx,password=xxx,iocharset=utf8,vers=3.0,noperm 0 0
//192.168.178.47/download     /mnt/download        cifs    uid=0,username=xxx,password=xxx,iocharset=utf8,vers=3.0,noperm 0 0
root@radarr:~# ls -lisa /mnt/video/Movies/Sri\ Asih\ \(2022\)/
total 3236476
2939053       0 drwxr-xr-x 2 root root          0 Mar 18 13:11  .
    261       0 drwxr-xr-x 2 root root          0 Mar 18 13:11  ..
2939054 3236476 -rwxr-xr-x 1 root root 3314151424 Mar 18 13:14 'Sri Asih (2022) Bluray-1080p.mkv'
root@radarr:~# ps aux | grep radarr
root         919  0.0 37.0 3280100 194000 ?      Ssl  13:14   0:06 /opt/Radarr/Radarr -nobrowser -data=/var/lib/radarr/
root        1031  0.0  0.2   3460  1536 pts/3    S+   13:18   0:00 grep --color=auto radarr
root@radarr:~#

radarr runs under root and the authorizations are consistently 755

@n0bbi commented on GitHub (Mar 18, 2024): I have tried CIFS and NFS and could not find any difference. Here are both fstab entries: ``` #192.168.178.47:/volume1/video /mnt/video nfs defaults 0 0 #192.168.178.47:/volume1/download /mnt/download nfs defaults 0 0 //192.168.178.47/video /mnt/video cifs uid=0,username=xxx,password=xxx,iocharset=utf8,vers=3.0,noperm 0 0 //192.168.178.47/download /mnt/download cifs uid=0,username=xxx,password=xxx,iocharset=utf8,vers=3.0,noperm 0 0 ``` ``` root@radarr:~# ls -lisa /mnt/video/Movies/Sri\ Asih\ \(2022\)/ total 3236476 2939053 0 drwxr-xr-x 2 root root 0 Mar 18 13:11 . 261 0 drwxr-xr-x 2 root root 0 Mar 18 13:11 .. 2939054 3236476 -rwxr-xr-x 1 root root 3314151424 Mar 18 13:14 'Sri Asih (2022) Bluray-1080p.mkv' root@radarr:~# ps aux | grep radarr root 919 0.0 37.0 3280100 194000 ? Ssl 13:14 0:06 /opt/Radarr/Radarr -nobrowser -data=/var/lib/radarr/ root 1031 0.0 0.2 3460 1536 pts/3 S+ 13:18 0:00 grep --color=auto radarr root@radarr:~# ``` radarr runs under root and the authorizations are consistently 755
Author
Owner

@mynameisbogdan commented on GitHub (Mar 18, 2024):

Might be related to this?

Screenshot

/cc @bakerboy448

@mynameisbogdan commented on GitHub (Mar 18, 2024): Might be related to this? ![Screenshot](https://github.com/Radarr/Radarr/assets/707714/4550e6ba-6b01-4d2b-b96c-f9b43c00922b) /cc @bakerboy448
Author
Owner

@n0bbi commented on GitHub (Mar 18, 2024):

You are my hero, this error has now cost me several days. I have ruled out that it could be the fileshare, because it is mostly just permissions here.

My initial tests are very positive. I tried CIFS and NFS, both seem to work now - I hope this is not a coincidence :)

Thanks for your support!

I'll close the issue now and open it again if needed.

@n0bbi commented on GitHub (Mar 18, 2024): You are my hero, this error has now cost me several days. I have ruled out that it could be the fileshare, because it is mostly just permissions here. My initial tests are very positive. I tried CIFS and NFS, both seem to work now - I hope this is not a coincidence :) Thanks for your support! I'll close the issue now and open it again if needed.
Author
Owner

@n0bbi commented on GitHub (Mar 18, 2024):

Oh no, I was too quick. The error still exists. Unfortunately, it only occurs sporadically, so troubleshooting is difficult.

@n0bbi commented on GitHub (Mar 18, 2024): Oh no, I was too quick. The error still exists. Unfortunately, it only occurs sporadically, so troubleshooting is difficult.
Author
Owner

@mynameisbogdan commented on GitHub (Mar 18, 2024):

Hop on our discord, maybe one of our fellas know something I don't since I don't use NFS.

@mynameisbogdan commented on GitHub (Mar 18, 2024): Hop on our discord, maybe one of our fellas know something I don't since I don't use NFS.
Author
Owner

@n0bbi commented on GitHub (Mar 19, 2024):

Perhaps I have found a solution. I have at least been able to import some files without any problems.

I can't really explain it, but I have noticed that the web gui is always temporarily unavailable and then the import aborts. In ProxMox I couldn't see a 100% load/RAM Usage, but I increased the CPUs and RAM anyway (previously 1 CPU + 512 MB RAM, now 2 CPU + 1GB RAM).

Maybe it really was just the environment in the end. I will continue to monitor it.

@n0bbi commented on GitHub (Mar 19, 2024): Perhaps I have found a solution. I have at least been able to import some files without any problems. I can't really explain it, but I have noticed that the web gui is always temporarily unavailable and then the import aborts. In ProxMox I couldn't see a 100% load/RAM Usage, but I increased the CPUs and RAM anyway (previously 1 CPU + 512 MB RAM, now 2 CPU + 1GB RAM). Maybe it really was just the environment in the end. I will continue to monitor it.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Radarr#8344
No description provided.