What is the problem you are having with rclone?
R: Failed to upload files to the FTP server.
Description: I have an FTP server using CrushFTP Server, with my files. I'm sending the files to an Oracle cloud VM, to use Tdarr and convert my video classes to x265 and return them to my FTP server.
In the Oracle VM I pull the files by mounting FTP through the command
rclone mount FTP: /mnt/data/Drive --vfs-cache-mode full --vfs-cache-max-size 80G --file-perms 0777 --cache-dir /mnt/data/cacheRclone/ --size- only
Tdarr accesses this mounted drive, converts the video lessons and places them back on this drive, which is synchronized with my FTP server.
The Problem: When I use the "--vfs-cache-mode full" flag or any "--vfs-cache-mode" that is not "off", I get an error when the file is completing download to my FTP server (at home). It looks like it's an error when renaming the partial downloaded file to overwrite the old file.
When I use the "--vfs-cache-mode off" flag, there is no error and the file is placed on my server normally.
The Question: Can I use the "--vfs-cache-mode off" flag without any risk of a file being deleted from my FTP server, without the file having been correctly downloaded from the Oracle VM to my FTP server (by doing I lose my file)? Or is it better for me to fix the problem when I use "--vfs-cache-mode full" and continue using cache mode full?
The Error: The error generated by the terminal and the Log when the xxx.partial file is finishing back to my FTP server:
ERROR : Aula 01.mp4: vfs cache: failed to upload try #1, will retry in 10s: vfs cache: failed to transfer file from cache to remote: Move Rename failed: 550 File rename error. (bad path? in use? locked?)
ERROR : Aula 01.mp4.tenitax1.partial: partial file rename failed: Move Rename failed: 550 File rename error. (bad path? in use? locked?)
Run the command 'rclone version' and share the full output of the command.
rclone v1.65.0
- os/version: ubuntu 22.04 (64 bit)
- os/kernel: 5.15.0-1048-oracle (aarch64)
- os/type: linux
- os/arch: arm64 (ARMv8 compatible)
- go/version: go1.21.4
- go/linking: static
- go/tags: none
Which cloud storage system are you using?
None. I am using my FTP server. I have a public IP, and the FTP server is 100% operational.
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone mount FTP: /mnt/data/Drive --vfs-cache-mode full --vfs-cache-max-size 80G --file-perms 0777 --cache-dir /mnt/data/cacheRclone/ --size-only
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
[FTP]
type = ftp
host = XXX
user = XXX
port = 2122
pass = XXX
A log from the command that you were trying to run with the -vv
flag
2023/11/28 10:55:37 ERROR : Aula 01.mp4.tarucim3.partial: partial file rename failed: Move Rename failed: 550 File rename error. (bad path? in use? locked?)
2023/11/28 10:55:38 ERROR : Aula 01.mp4: vfs cache: failed to upload try #1, will retry in 10s: vfs cache: failed to transfer file from cache to remote: Move Rename failed: 550 File rename error. (bad path? in use? locked?)
2023/11/28 10:56:33 ERROR : Aula 01.mp4.tenitax1.partial: partial file rename failed: Move Rename failed: 550 File rename error. (bad path? in use? locked?)
2023/11/28 10:56:33 ERROR : Aula 01.mp4: vfs cache: failed to upload try #2, will retry in 20s: vfs cache: failed to transfer file from cache to remote: Move Rename failed: 550 File rename error. (bad path? in use? locked?)
Can you shed some light on this problem?
I don't know if the problem is solved in Rclone because of the cache, or in the FTP Server.