FTP List timeout

What is the problem you are having with rclone?

Hi,

I’m having an issue with rclone sync when syncing to a FTP server. Some folders containing more than 4,000 files fail with this error:

ftp://192.168.27.1:21/WD-MyPassport2628-01/backup/Nextcloud: Timeout when waiting for List

All files in this folders are copied afterwards, even if they already exist remote. This copying seems to loop as the folders were checked and timeout again.

However, using lsd, I can list all the folders successfully.

I also tested the affected folders with another FTP client (FileZilla) while the sync was running. A LIST request to the FTP server took about 180 seconds to return a response.

Is there a way to increase the timeout rclone uses while waiting for an FTP LIST response?

I already tried --timeout 5m --contimeout 4m --ftp-close-timeout 6m.

Syncing only one of the affected directories works fine but fails when trying to sync the parent/grandparent directory.

Thanks for any help!

Run the command 'rclone version' and share the full output of the command.

rclone v1.77.0-beta.10792.9b848691f

  • os/version: raspbian 13.8 (64 bit)
  • os/kernel: 6.18.60+rpt-rpi-v8 (aarch64)
  • os/type: linux
  • os/arch: arm64 (ARMv8 compatible)
  • go/version: go1.26.0
  • go/linking: dynamic
  • go/tags: none

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 sync --exclude-from exclude.remote /media/data/nextcloud/data/ ftp:/WD-MyPassport2628-01/backup/Nextcloud/ --delete-during -c --order-by size,mixed,50 --ftp-force-list-hidden --inplace --ftp-concurrency 11 --checkers 5 --transfers 5 --ftp-no-check-upload --max-backlog 100000 --timeout 5m --contimeout 4m --ftp-close-timeout 6m -vv

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
pass = XXX

A log from the command that you were trying to run with the -vv flag


....
2026/12/02 07:51:35 DEBUG : ftp://192.168.27.1:21/WD-MyPassport2628-01/backup/Nextcloud: > dial: conn=192.168.46.2:57560->192.168.27.1:42049, err=<nil>
2026/12/02 07:51:35 ERROR : ftp://192.168.27.1:21/WD-MyPassport2628-01/backup/Nextcloud: Timeout when waiting for List
2026/12/02 07:51:35 DEBUG : __groupfolders/1/Configs/CatHP/.cache/mozilla/firefox/u43x8tx2.default-esr/cache2/entries/000267514F6AEDD00DC06877B7AD7D324D468F5E: Need to transfer - File not found at Destination
2026/12/02 07:51:35 DEBUG : __groupfolders/1/Configs/CatHP/.cache/mozilla/firefox/u43x8tx2.default-esr/cache2/entries/0003FA85A8E3BAFC9FFCA04708E02344156A9873: Need to transfer - File not found at Destination
...
2026/12/02 07:51:35 DEBUG : __groupfolders/1/Configs/CatHP/.cache/mozilla/firefox/u43x8tx2.default-esr/cache2/entries/FFBAB7D239F65856294E11FA05A9539900A43C09: Need to transfer - File not found at Destination
2026/12/02 07:51:35 DEBUG : __groupfolders/1/Configs/CatHP/.cache/mozilla/firefox/u43x8tx2.default-esr/cache2/entries/FFDB835C8EBB0E0F261CB7CC5035192DD2B88505: Need to transfer - File not found at Destination
2026/12/02 07:51:35 DEBUG : __groupfolders/1/Configs/CatHP/.cache/mozilla/firefox/u43x8tx2.default-esr/cache2/entries/FFDD04FEFEE5786F59C275710CA5DCC86A348E2F: Need to transfer - File not found at Destination
2026/12/02 07:51:35 ERROR : __groupfolders/1/Configs/CatHP/.cache/mozilla/firefox/u43x8tx2.default-esr/cache2/entries: error reading destination directory: timeout when waiting for List
....

welcome to the forum,

no idea what the real issue is, but, for testing, i always try to simply commands by removing flags that do nothing or are not required such as
-c --order-by size,mixed,50


also, the top lines of the debug log were not posted?


imo, unencrypted ftp is the worst protocol to use with rclone. it relies on a third-party library.
all the more so, over the internet.
rclone has great support for sftp.

i am not a fan of western digital NAS but when i forced to use it, i choose sftp.
every WD NAS i have ever used supported that.

Thanks for your answer!

I think I figured it out.

I may be wrong here, but I think despite the statement in the documentation ( FTP ) --timeout is used while using LIST. The default value seems to be 5 minutes.

If so --timeout 5m didn't change a thing.

I increased it to 10m and LIST returns the directory content.


I know FTP is not the best choice :sweat_smile: I use an off-the-shelf router (AVM Fritzbox) as remote server just to create an off-site backup (yes, via VPN). It also provides SMB (not working with rclone) but no SFTP.

The router is there anyway and backups are running once a week. So I don't want to invest in any new hardware.


I can recreate the first lines of the log and add them, if you think it is necessary. It was just not possible to post the full log, because the error appeared 2 hours in to syncing.

imo, ftp is not suitable for backups, as it lacks file verification using checksums.
really should try to get smb working.

not sure how you set that up but check out my howto guide.

Thanks for the guide.

SMB is running with other clients but I ran in exactly into this problem.

And mounting via VPN is slow and unreliable.

yeah, that is why my how-to guide advises native mount command, not rclone's smb remote.