Skip to content

Cannot finish downloading files from FTP #4622

Closed

Description

@ben108472

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

  1. darthShadow commented on Sep 24, 2020

    @darthShadow
    Member

    Does adding --multi-thread-streams=1 to the command help?

  2. ben108472 commented on Sep 24, 2020

    @ben108472
    Author

    Does adding --multi-thread-streams=1 to the command help?

    It still doesn't work.

  3. ncw commented on Sep 25, 2020

    @ncw
    Member

    Does adding --multi-thread-streams=1 to the command help?

    It still doesn't work.

    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 1

    If that doesn't work then post a log with -vv --multi-thread-streams 1 --dump bodies - thanks

  4. ben108472 commented on Sep 26, 2020

    @ben108472
    Author

    Does adding --multi-thread-streams=1 to the command help?

    It still doesn't work.

    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 1

    If that doesn't work then post a log with -vv --multi-thread-streams 1 --dump bodies - thanks

    Here is the log files.
    build.log

  5. ncw commented on Oct 13, 2020

    @ncw
    Member

    What it looks like is the file was succesfully downloaded, but rclone got an EOF error at the last moment so retried...

    2020/09/26 17:55:05 INFO  : 
    Transferred:   	    4.780G / 4.789 GBytes, 100%, 173.327 kBytes/s, ETA 55s
    Transferred:            0 / 1, 0%
    Elapsed time:     8h2m3.0s
    Transferring:
     * file: 99% /4.789G, 864.396k/s, 11s
    
    2020/09/26 17:55:15 DEBUG : FTP Tx: "QUIT"
    2020/09/26 17:55:15 DEBUG : : Received error: EOF - low level retry 1/10
    2020/09/26 17:55:15 DEBUG : : Connecting to FTP server
    

    What FTP server is it?

    Can you transfer smaller files?

  6. ben108472 commented on Oct 16, 2020

    @ben108472
    Author

    What it looks like is the file was succesfully downloaded, but rclone got an EOF error at the last moment so retried...

    2020/09/26 17:55:05 INFO  : 
    Transferred:   	    4.780G / 4.789 GBytes, 100%, 173.327 kBytes/s, ETA 55s
    Transferred:            0 / 1, 0%
    Elapsed time:     8h2m3.0s
    Transferring:
     * file: 99% /4.789G, 864.396k/s, 11s
    
    2020/09/26 17:55:15 DEBUG : FTP Tx: "QUIT"
    2020/09/26 17:55:15 DEBUG : : Received error: EOF - low level retry 1/10
    2020/09/26 17:55:15 DEBUG : : Connecting to FTP server
    

    What FTP server is it?

    Can you transfer smaller files?

    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

  7. ncw commented on Oct 22, 2020

    @ncw
    Member

    Ah, try disabling multi-thread streaming with --multi-thread-streams 0

    This will download a bit slower but may work better.

  8. ben108472 commented on Nov 18, 2020

    @ben108472
    Author

    Ah, try disabling multi-thread streaming with --multi-thread-streams 0

    This will download a bit slower but may work better.

    It still doesn't work in bigger files.

  9. jcn50 commented on May 17, 2021

    @jcn50

    @ben108472 can you try to disable EPSV on your remote config (advanced config) and try again?.. I had a similar problem!

  10. ivandeex commented on Oct 23, 2021

    @ivandeex
    Member

    up/down-loading large files was fixed in latest beta (use rclone selfupdate --beta to obtain). will be released with 1.57 in a week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions