Repository navigation
Description
What is the problem you are having with rclone?
Cannot finish downloading files from FTP.
The file is downloaded repeatedly but never finish downloading.
The transferred size becomes bigger and bigger.
What is your rclone version (output from rclone version)
rclone v1.53.1-DEV
Which OS you are using and how many bits (eg Windows 7, 64 bit)
CentOS 6.5
Which cloud storage system are you using? (eg Google Drive)
FTP
The command you were trying to run (eg rclone copy /tmp remote:tmp)
rclone copy
A log from the command with the -vv flag (eg output from rclone -vv copy /tmp remote:tmp)
2020/09/24 09:16:24 DEBUG : Using config file from "/home/.config/rclone/rclone.conf"
2020/09/24 09:16:24 DEBUG : Creating backend with remote "URL/filename"
2020/09/24 09:16:24 DEBUG : URL/filename: Connecting to FTP server
2020/09/24 09:16:28 DEBUG : fs cache: adding new entry for parent of "URL/filename", ""
2020/09/24 09:16:28 DEBUG : Creating backend with remote ""
2020-09-24 09:16:29 DEBUG : filename: Need to transfer - File not found at Destination
2020-09-24 09:16:29 DEBUG : preAllocate: got error on fallocate, trying combination 1/2: operation not supported
2020-09-24 09:16:29 DEBUG : preAllocate: got error on fallocate, trying combination 2/2: operation not supported
2020-09-24 09:16:29 DEBUG : filename: Starting multi-thread copy with 4 parts of size 1.197G
2020-09-24 09:16:29 DEBUG : filename: multi-thread copy: stream 4/4 (3857055744-5142538872) size 1.197G starting
2020-09-24 09:16:29 DEBUG : filename: multi-thread copy: stream 2/4 (1285685248-2571370496) size 1.197G starting
2020-09-24 09:16:29 DEBUG : URL/filename: Connecting to FTP server
2020-09-24 09:16:29 DEBUG : filename: multi-thread copy: stream 3/4 (2571370496-3857055744) size 1.197G starting
2020-09-24 09:16:29 DEBUG : URL/filename: Connecting to FTP server
2020-09-24 09:16:29 DEBUG : filename: multi-thread copy: stream 1/4 (0-1285685248) size 1.197G starting
2020-09-24 09:16:29 DEBUG : URL/filename: Connecting to FTP server
2020-09-24 09:37:21 DEBUG : filename: multi-thread copy: stream 2/4 (1285685248-2571370496) size 1.197G finished
2020-09-24 09:37:21 DEBUG : filename: multi-thread copy: stream 2/4 failed: EOF
2020-09-24 09:37:21 DEBUG : filename: multi-thread copy: stream 3/4 failed: context canceled
2020-09-24 09:37:21 DEBUG : filename: multi-thread copy: stream 1/4 failed: context canceled
2020-09-24 09:37:21 DEBUG : filename: multi-thread copy: stream 4/4 failed: context canceled
2020-09-24 09:37:21 DEBUG : filename: Received error: EOF - low level retry 1/10
2020-09-24 09:37:23 DEBUG : filename: Starting multi-thread copy with 4 parts of size 1.197G
2020-09-24 09:37:23 DEBUG : filename: multi-thread copy: stream 4/4 (3857055744-5142538872) size 1.197G starting
2020-09-24 09:37:23 DEBUG : URL/filename: Connecting to FTP server
2020-09-24 09:37:23 DEBUG : filename: multi-thread copy: stream 2/4 (1285685248-2571370496) size 1.197G starting
2020-09-24 09:37:23 DEBUG : URL/filename: Connecting to FTP server
2020-09-24 09:37:23 DEBUG : filename: multi-thread copy: stream 3/4 (2571370496-3857055744) size 1.197G starting
2020-09-24 09:37:23 DEBUG : URL/filename: Connecting to FTP server
2020-09-24 09:37:23 DEBUG : filename: multi-thread copy: stream 1/4 (0-1285685248) size 1.197G starting
2020-09-24 09:37:23 DEBUG : URL/filename: Connecting to FTP server
Activity
darthShadow commentedon Sep 24, 2020
Does adding
--multi-thread-streams=1to the command help?ben108472 commentedon Sep 24, 2020
It still doesn't work.
ncw commentedon Sep 25, 2020
Can you try the release 1.53.1 and if that doesn't work the latest beta
Can you post a log with
-vv --multi-thread-streams 1If that doesn't work then post a log with
-vv --multi-thread-streams 1 --dump bodies- thanksben108472 commentedon Sep 26, 2020
Here is the log files.
build.log
ncw commentedon Oct 13, 2020
What it looks like is the file was succesfully downloaded, but rclone got an EOF error at the last moment so retried...
What FTP server is it?
Can you transfer smaller files?
ben108472 commentedon Oct 16, 2020
Tiny file is OK.
Here is the test file in that FTP.
ftp://ftp.gfdl.noaa.gov/perm/GFDL_pubrelease/HIRAM/HIRAM.input_data.tar.gz
ncw commentedon Oct 22, 2020
Ah, try disabling multi-thread streaming with
--multi-thread-streams 0This will download a bit slower but may work better.
ben108472 commentedon Nov 18, 2020
It still doesn't work in bigger files.
jcn50 commentedon May 17, 2021
@ben108472 can you try to disable EPSV on your remote config (advanced config) and try again?.. I had a similar problem!
ivandeex commentedon Oct 23, 2021
up/down-loading large files was fixed in latest beta (use
rclone selfupdate --betato obtain). will be released with 1.57 in a week.