Unable to connect ftpes using rclone, but no problem with FileZilla

What is the problem you are having with rclone?

Hi everyone, I'm trying to connect, using FTP with Explicit TLS, but typing rclone -vvv test memory iliadbox-nonna: the following error occurs:

2024/04/28 11:22:24 DEBUG : rclone: Version "v1.65.0-DEV" starting with parameters ["rclone" "-vvv" "test" "memory" "redacted:"]
2024/04/28 11:22:24 DEBUG : Creating backend with remote "iliadbox-nonna:"
2024/04/28 11:22:24 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2024/04/28 11:22:24 DEBUG : ftp://[redacted].iliadboxos.it:5354: Connecting to FTP server
2024/04/28 11:22:24 DEBUG : ftp://[redacted].iliadboxos.it:5354: dial("tcp","[redacted].iliadboxos.it:5354")
2024/04/28 11:22:24 DEBUG : ftp://[redacted].iliadboxos.it:5354: > dial: conn=*fshttp.timeoutConn, err=<nil>
2024/04/28 11:22:25 DEBUG : ftp://[redacted].iliadboxos.it:5354: dial("tcp","***.***.***.***:15000")
2024/04/28 11:22:25 DEBUG : ftp://[redacted].iliadboxos.it:5354: > dial: conn=*tls.Conn, err=<nil>
2024/04/28 11:22:25 DEBUG : ftp://[redacted].iliadboxos.it:5354: dial("tcp","***.***.***.***:15000")
2024/04/28 11:22:25 DEBUG : ftp://[redacted].iliadboxos.it:5354: > dial: conn=*tls.Conn, err=<nil>
2024/04/28 11:22:25 ERROR : verbatim: error listing: 1 error occurred:
	* 426 Data channel closed.

2024/04/28 11:22:25 DEBUG : 4 go routines active
2024/04/28 11:22:25 DEBUG : ftp://[redacted]:5354: closing 1 unused connections
2024/04/28 11:22:25 Failed to memory with 2 errors: last error was: 1 error occurred:
	* 426 Data channel closed.

The strange think is that i haven't had any error using FileZilla :zipper_mouth_face:

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

rclone v1.65.0-DEV
- os/version: alpine 3.19.1 (64 bit)
- os/kernel: 5.15.0-105-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.21.9
- go/linking: static
- go/tags: none

Which cloud storage system are you using? (eg Google Drive)

FTP with Explicit TLS

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone -vvv test memory iliadbox-nonna: 

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[iliadbox-nonna]
type = ftp
host = XXX
user = XXX
port = 5354
pass = XXX
explicit_tls = true

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

above

welcome to the forum,

why use that?
does filezilla has an equivalent command?

if you want to make sure rclone works with that ftps server, could use rclone copy

also, you are using an old version of rclone.
to update, rclone selfupdate

Thanks for your answer,
For every operation I tried, i've got the same error. rclone test was an example
Also updating was irrelevant.
This is an example using the command rclone copy:

backrest:/# rclone copy pippo iliadbox-nonna:/verbatim/
2024/04/28 14:15:09 ERROR : Attempt 1/3 failed with 1 errors and: 1 error occurred:
	* 426 Data channel closed.

2024/04/28 14:15:09 ERROR : Attempt 2/3 failed with 1 errors and: 1 error occurred:
	* 426 Data channel closed.

2024/04/28 14:15:09 ERROR : Attempt 3/3 failed with 1 errors and: 1 error occurred:
	* 426 Data channel closed.

2024/04/28 14:15:09 Failed to copy: 1 error occurred:
	* 426 Data channel closed.

The stange things is that using FileZilla I'm able to copy files

try
rclone lsd iliadbox-nonna: -vv --dump=headers --retries=1

This is the output

2024/04/28 14:38:23 DEBUG : rclone: Version "v1.66.0" starting with parameters ["rclone" "lsd" "iliadbox-nonna:" "-vv" "--dump=headers" "--retries=1"]
2024/04/28 14:38:23 DEBUG : Creating backend with remote "iliadbox-nonna:"
2024/04/28 14:38:23 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2024/04/28 14:38:23 DEBUG : ftp://[redacted].iliadboxos.it:5354: Connecting to FTP server
2024/04/28 14:38:23 DEBUG : ftp://[redacted].iliadboxos.it:5354: dial("tcp","[redacted].iliadboxos.it:5354")
2024/04/28 14:38:23 DEBUG : ftp://[redacted].iliadboxos.it:5354: > dial: conn=*fshttp.timeoutConn, err=<nil>
2024/04/28 14:38:23 DEBUG : FTP Rx: "220 Welcome to Freebox FTP Server."
2024/04/28 14:38:23 DEBUG : FTP Tx: "AUTH TLS"
2024/04/28 14:38:23 DEBUG : FTP Rx: "234 Proceed with negotiation."
2024/04/28 14:38:23 DEBUG : FTP Tx: "USER iliadbox"
2024/04/28 14:38:23 DEBUG : FTP Rx: "331 User name okay, need password."
2024/04/28 14:38:23 DEBUG : FTP Tx: PASS *****
2024/04/28 14:38:23 DEBUG : FTP Rx: "230 User logged in, proceed."
2024/04/28 14:38:23 DEBUG : FTP Tx: "FEAT"
2024/04/28 14:38:23 DEBUG : FTP Rx: "211-Extensions supported:"
2024/04/28 14:38:23 DEBUG : FTP Rx: " UTF8"
2024/04/28 14:38:23 DEBUG : FTP Rx: " EPRT"
2024/04/28 14:38:23 DEBUG : FTP Rx: " EPSV"
2024/04/28 14:38:23 DEBUG : FTP Rx: " REST STREAM"
2024/04/28 14:38:23 DEBUG : FTP Rx: " SIZE"
2024/04/28 14:38:23 DEBUG : FTP Rx: " CLNT"
2024/04/28 14:38:23 DEBUG : FTP Rx: " AUTH TLS"
2024/04/28 14:38:23 DEBUG : FTP Rx: " PBSZ"
2024/04/28 14:38:23 DEBUG : FTP Rx: " PROT"
2024/04/28 14:38:23 DEBUG : FTP Rx: "211 End"
2024/04/28 14:38:23 DEBUG : FTP Tx: "TYPE I"
2024/04/28 14:38:23 DEBUG : FTP Rx: "200 Command Okay."
2024/04/28 14:38:23 DEBUG : FTP Tx: "OPTS UTF8 ON"
2024/04/28 14:38:23 DEBUG : FTP Rx: "200 Command Okay."
2024/04/28 14:38:23 DEBUG : FTP Tx: "PBSZ 0"
2024/04/28 14:38:23 DEBUG : FTP Rx: "200 Command Okay."
2024/04/28 14:38:23 DEBUG : FTP Tx: "PROT P"
2024/04/28 14:38:23 DEBUG : FTP Rx: "200 Command Okay."
2024/04/28 14:38:23 DEBUG : FTP Tx: "EPSV"
2024/04/28 14:38:23 DEBUG : FTP Rx: "229 Entering extended passive mode (|||15000|)"
2024/04/28 14:38:23 DEBUG : ftp://[redacted].iliadboxos.it:5354: dial("tcp","***.***.***.***:15000")
2024/04/28 14:38:23 DEBUG : ftp://[redacted].iliadboxos.it:5354: > dial: conn=*tls.Conn, err=<nil>
2024/04/28 14:38:23 DEBUG : FTP Tx: "LIST"
2024/04/28 14:38:23 DEBUG : FTP Rx: "150 File Status OK."
2024/04/28 14:38:23 DEBUG : FTP Rx: "drwxr-xr-x   3 iliadbox iliadbox       60 Apr 26 20:17 .."
2024/04/28 14:38:23 DEBUG : FTP Rx: "drwxr-xr-x   3 iliadbox iliadbox     4096 Apr 26 20:18 verbatim"
2024/04/28 14:38:23 DEBUG : FTP Rx: "226 Closing data connection."
          -1 2024-04-26 20:18:00        -1 verbatim
2024/04/28 14:38:23 DEBUG : 4 go routines active
2024/04/28 14:38:23 DEBUG : ftp://[redacted].iliadboxos.it:5354: closing 1 unused connections
2024/04/28 14:38:23 DEBUG : FTP Tx: "QUIT"

ok, so rclone can connect to that ftps server without error.

Thanks for your patience.
But, do you have any idea about the reason i'm not able to copy file with rclone?

no idea, as you posted a one-line snippet.
need to post a full debug log, using the flags i shared up above.

try to copy a small text file
rclone copy file.ext iliadbox-nonna:verbatim -vv --dump=headers --retries=1

here it is:

2024/04/28 15:19:47 DEBUG : rclone: Version "v1.66.0" starting with parameters ["rclone" "copy" "file.ext" "iliadbox-nonna:verbatim" "-vv" "--dump=headers" "--retries=1"]
2024/04/28 15:19:47 DEBUG : Creating backend with remote "file.ext"
2024/04/28 15:19:47 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2024/04/28 15:19:47 DEBUG : fs cache: adding new entry for parent of "file.ext", "/"
2024/04/28 15:19:47 DEBUG : Creating backend with remote "iliadbox-nonna:verbatim"
2024/04/28 15:19:47 DEBUG : ftp://[redacted].iliadboxos.it:5354/verbatim: Connecting to FTP server
2024/04/28 15:19:47 DEBUG : ftp://[redacted].iliadboxos.it:5354/verbatim: dial("tcp","[redacted].iliadboxos.it:5354")
2024/04/28 15:19:47 DEBUG : ftp://[redacted].iliadboxos.it:5354/verbatim: > dial: conn=*fshttp.timeoutConn, err=<nil>
2024/04/28 15:19:47 DEBUG : FTP Rx: "220 Welcome to Freebox FTP Server."
2024/04/28 15:19:47 DEBUG : FTP Tx: "AUTH TLS"
2024/04/28 15:19:47 DEBUG : FTP Rx: "234 Proceed with negotiation."
2024/04/28 15:19:47 DEBUG : FTP Tx: "USER iliadbox"
2024/04/28 15:19:47 DEBUG : FTP Rx: "331 User name okay, need password."
2024/04/28 15:19:47 DEBUG : FTP Tx: PASS *****
2024/04/28 15:19:47 DEBUG : FTP Rx: "230 User logged in, proceed."
2024/04/28 15:19:47 DEBUG : FTP Tx: "FEAT"
2024/04/28 15:19:47 DEBUG : FTP Rx: "211-Extensions supported:"
2024/04/28 15:19:47 DEBUG : FTP Rx: " UTF8"
2024/04/28 15:19:47 DEBUG : FTP Rx: " EPRT"
2024/04/28 15:19:47 DEBUG : FTP Rx: " EPSV"
2024/04/28 15:19:47 DEBUG : FTP Rx: " REST STREAM"
2024/04/28 15:19:47 DEBUG : FTP Rx: " SIZE"
2024/04/28 15:19:47 DEBUG : FTP Rx: " CLNT"
2024/04/28 15:19:47 DEBUG : FTP Rx: " AUTH TLS"
2024/04/28 15:19:47 DEBUG : FTP Rx: " PBSZ"
2024/04/28 15:19:47 DEBUG : FTP Rx: " PROT"
2024/04/28 15:19:47 DEBUG : FTP Rx: "211 End"
2024/04/28 15:19:47 DEBUG : FTP Tx: "TYPE I"
2024/04/28 15:19:47 DEBUG : FTP Rx: "200 Command Okay."
2024/04/28 15:19:47 DEBUG : FTP Tx: "OPTS UTF8 ON"
2024/04/28 15:19:47 DEBUG : FTP Rx: "200 Command Okay."
2024/04/28 15:19:47 DEBUG : FTP Tx: "PBSZ 0"
2024/04/28 15:19:47 DEBUG : FTP Rx: "200 Command Okay."
2024/04/28 15:19:47 DEBUG : FTP Tx: "PROT P"
2024/04/28 15:19:47 DEBUG : FTP Rx: "200 Command Okay."
2024/04/28 15:19:47 DEBUG : FTP Tx: "EPSV"
2024/04/28 15:19:47 DEBUG : FTP Rx: "229 Entering extended passive mode (|||15000|)"
2024/04/28 15:19:47 DEBUG : ftp://[redacted].iliadboxos.it:5354/verbatim: dial("tcp","***.***.***.***:15000")
2024/04/28 15:19:47 DEBUG : ftp://[redacted].iliadboxos.it:5354/verbatim: > dial: conn=*tls.Conn, err=<nil>
2024/04/28 15:19:47 DEBUG : FTP Tx: "LIST ."
2024/04/28 15:19:47 DEBUG : FTP Rx: "150 File Status OK."
2024/04/28 15:19:47 DEBUG : FTP Rx: "drwxr-xr-x   3 iliadbox iliadbox       60 Apr 26 20:17 .."
2024/04/28 15:19:47 DEBUG : FTP Rx: "drwxr-xr-x   3 iliadbox iliadbox     4096 Apr 26 20:18 verbatim"
2024/04/28 15:19:47 DEBUG : FTP Rx: "226 Closing data connection."
2024/04/28 15:19:47 DEBUG : FTP Tx: "EPSV"
2024/04/28 15:19:47 DEBUG : FTP Rx: "229 Entering extended passive mode (|||15000|)"
2024/04/28 15:19:47 DEBUG : ftp://[redacted].iliadboxos.it:5354/verbatim: dial("tcp","***.***.***.***:15000")
2024/04/28 15:19:47 DEBUG : ftp://[redacted].iliadboxos.it:5354/verbatim: > dial: conn=*tls.Conn, err=<nil>
2024/04/28 15:19:47 DEBUG : FTP Tx: "LIST verbatim"
2024/04/28 15:19:47 DEBUG : FTP Rx: "150 File Status OK."
2024/04/28 15:19:47 DEBUG : FTP Rx: "426 Data channel closed."
2024/04/28 15:19:47 DEBUG : FTP Tx: "NOOP"
2024/04/28 15:19:47 DEBUG : FTP Rx: "200 Command Okay."
2024/04/28 15:19:47 ERROR : Attempt 1/1 failed with 1 errors and: 1 error occurred:
	* 426 Data channel closed.

2024/04/28 15:19:47 INFO  : 
Transferred:   	          0 B / 0 B, -, 0 B/s, ETA -
Errors:                 1 (retrying may help)
Elapsed time:         0.5s

2024/04/28 15:19:47 DEBUG : 4 go routines active
2024/04/28 15:19:47 DEBUG : ftp://[redacted].iliadboxos.it:5354/verbatim: closing 1 unused connections
2024/04/28 15:19:47 DEBUG : FTP Tx: "QUIT"
2024/04/28 15:19:47 Failed to copy: 1 error occurred:
	* 426 Data channel closed.


what other protocols does the provider offer, sftp, webdav or what?

Try to disable EPSV mode by using --ftp-disable-epsv flag.

Unfortunately, it's the only one

Same result

2024/04/28 15:39:53 DEBUG : rclone: Version "v1.66.0" starting with parameters ["rclone" "copy" "file.ext" "iliadbox-nonna:verbatim" "-vv" "--dump=headers" "--retries=1" "--ftp-disable-epsv"]
2024/04/28 15:39:53 DEBUG : Creating backend with remote "file.ext"
2024/04/28 15:39:53 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2024/04/28 15:39:53 DEBUG : fs cache: adding new entry for parent of "file.ext", "/"
2024/04/28 15:39:53 DEBUG : Creating backend with remote "iliadbox-nonna:verbatim"
2024/04/28 15:39:53 DEBUG : iliadbox-nonna: detected overridden config - adding "{suApg}" suffix to name
2024/04/28 15:39:53 DEBUG : ftp://[redacted].iliadboxos.it:5354/verbatim: Connecting to FTP server
2024/04/28 15:39:53 DEBUG : ftp://[redacted].iliadboxos.it:5354/verbatim: dial("tcp","[redacted].iliadboxos.it:5354")
2024/04/28 15:39:53 DEBUG : ftp://[redacted].iliadboxos.it:5354/verbatim: > dial: conn=*fshttp.timeoutConn, err=<nil>
2024/04/28 15:39:53 DEBUG : FTP Rx: "220 Welcome to Freebox FTP Server."
2024/04/28 15:39:53 DEBUG : FTP Tx: "AUTH TLS"
2024/04/28 15:39:53 DEBUG : FTP Rx: "234 Proceed with negotiation."
2024/04/28 15:39:53 DEBUG : FTP Tx: "USER iliadbox"
2024/04/28 15:39:53 DEBUG : FTP Rx: "331 User name okay, need password."
2024/04/28 15:39:53 DEBUG : FTP Tx: PASS *****
2024/04/28 15:39:53 DEBUG : FTP Rx: "230 User logged in, proceed."
2024/04/28 15:39:53 DEBUG : FTP Tx: "FEAT"
2024/04/28 15:39:53 DEBUG : FTP Rx: "211-Extensions supported:"
2024/04/28 15:39:53 DEBUG : FTP Rx: " UTF8"
2024/04/28 15:39:53 DEBUG : FTP Rx: " EPRT"
2024/04/28 15:39:53 DEBUG : FTP Rx: " EPSV"
2024/04/28 15:39:53 DEBUG : FTP Rx: " REST STREAM"
2024/04/28 15:39:53 DEBUG : FTP Rx: " SIZE"
2024/04/28 15:39:53 DEBUG : FTP Rx: " CLNT"
2024/04/28 15:39:53 DEBUG : FTP Rx: " AUTH TLS"
2024/04/28 15:39:53 DEBUG : FTP Rx: " PBSZ"
2024/04/28 15:39:53 DEBUG : FTP Rx: " PROT"
2024/04/28 15:39:53 DEBUG : FTP Rx: "211 End"
2024/04/28 15:39:53 DEBUG : FTP Tx: "TYPE I"
2024/04/28 15:39:53 DEBUG : FTP Rx: "200 Command Okay."
2024/04/28 15:39:53 DEBUG : FTP Tx: "OPTS UTF8 ON"
2024/04/28 15:39:53 DEBUG : FTP Rx: "200 Command Okay."
2024/04/28 15:39:53 DEBUG : FTP Tx: "PBSZ 0"
2024/04/28 15:39:53 DEBUG : FTP Rx: "200 Command Okay."
2024/04/28 15:39:53 DEBUG : FTP Tx: "PROT P"
2024/04/28 15:39:53 DEBUG : FTP Rx: "200 Command Okay."
2024/04/28 15:39:53 DEBUG : FTP Tx: "PASV"
2024/04/28 15:39:53 DEBUG : FTP Rx: "227 PASV OK (***,***,***,***,58,152)"
2024/04/28 15:39:53 DEBUG : ftp://[redacted].iliadboxos.it:5354/verbatim: dial("tcp","***.***.***.***:15000")
2024/04/28 15:39:53 DEBUG : ftp://[redacted].iliadboxos.it:5354/verbatim: > dial: conn=*tls.Conn, err=<nil>
2024/04/28 15:39:53 DEBUG : FTP Tx: "LIST ."
2024/04/28 15:39:53 DEBUG : FTP Rx: "150 File Status OK."
2024/04/28 15:39:53 DEBUG : FTP Rx: "drwxr-xr-x   3 iliadbox iliadbox       60 Apr 26 20:17 .."
2024/04/28 15:39:53 DEBUG : FTP Rx: "drwxr-xr-x   3 iliadbox iliadbox     4096 Apr 26 20:18 verbatim"
2024/04/28 15:39:53 DEBUG : FTP Rx: "226 Closing data connection."
2024/04/28 15:39:53 DEBUG : fs cache: renaming cache item "iliadbox-nonna:verbatim" to be canonical "iliadbox-nonna{suApg}:verbatim"
2024/04/28 15:39:53 DEBUG : FTP Tx: "PASV"
2024/04/28 15:39:53 DEBUG : FTP Rx: "227 PASV OK (***,***,***,***,58,152)"
2024/04/28 15:39:53 DEBUG : ftp://[redacted].iliadboxos.it:5354/verbatim: dial("tcp","***.***.***.***:15000")
2024/04/28 15:39:53 DEBUG : ftp://[redacted].iliadboxos.it:5354/verbatim: > dial: conn=*tls.Conn, err=<nil>
2024/04/28 15:39:53 DEBUG : FTP Tx: "LIST verbatim"
2024/04/28 15:39:53 DEBUG : FTP Rx: "150 File Status OK."
2024/04/28 15:39:53 DEBUG : FTP Rx: "426 Data channel closed."
2024/04/28 15:39:53 DEBUG : FTP Tx: "NOOP"
2024/04/28 15:39:53 DEBUG : FTP Rx: "200 Command Okay."
2024/04/28 15:39:53 ERROR : Attempt 1/1 failed with 1 errors and: 1 error occurred:
	* 426 Data channel closed.

2024/04/28 15:39:53 INFO  : 
Transferred:   	          0 B / 0 B, -, 0 B/s, ETA -
Errors:                 1 (retrying may help)
Elapsed time:         0.5s

2024/04/28 15:39:53 DEBUG : 4 go routines active
2024/04/28 15:39:53 DEBUG : ftp://[redacted].iliadboxos.it:5354/verbatim: closing 1 unused connections
2024/04/28 15:39:53 DEBUG : FTP Tx: "QUIT"
2024/04/28 15:39:53 Failed to copy: 1 error occurred:
	* 426 Data channel closed.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.