Freebox rClone does not properly connect

What is the problem you are having with rclone?

rClone doesn't work with the FTP set on Freebox routers but works with a FTP set on Windows (Filezilla server) on the same network (as the router) both distant.

Filezilla works without any issue, Duplicati had to have small adjustments (alternative FTP protocol & two args)

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

rclone v1.66.0
- os/version: Microsoft Windows 11 Home 23H2 (64 bit)
- os/kernel: 10.0.22631.3737 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.22.1
- go/linking: static
- go/tags: cmount

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 "dcvolo-vid-test:Videos/test" "pfvd:Disque 1/Vidéos" -vv

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

Current remotes:

Name                 Type
====                 ====
MFVD                 ftp
dcvolo-vid-test      local
pfvd                 ftp
pfvd2                sftp

e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q>

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

2024/06/17 14:46:01 DEBUG : rclone: Version "v1.66.0" starting with parameters ["C:\\Program Files\\Rclone\\rclone-v1.66.0-windows-amd64\\rclone.exe" "sync" "dcvolo-vid-test:Videos/test" "pfvd:Disque 1/Vidéos" "-vv"]
2024/06/17 14:46:01 DEBUG : Creating backend with remote "dcvolo-vid-test:Videos/test"
2024/06/17 14:46:01 DEBUG : Using config file from "C:\\Users\\llvol\\AppData\\Roaming\\rclone\\rclone.conf"
2024/06/17 14:46:01 DEBUG : fs cache: renaming cache item "dcvolo-vid-test:Videos/test" to be canonical "dcvolo-vid-test://?/C:/Users/llvol/Videos/test"
2024/06/17 14:46:01 DEBUG : Creating backend with remote "pfvd:Disque 1/Vidéos"
2024/06/17 14:46:01 DEBUG : ftp://[REDACTED-URL]/Disque 1/Vidéos: Connecting to FTP server
2024/06/17 14:46:01 DEBUG : ftp://[REDACTED-URL]/Disque 1/Vidéos: dial("tcp","[REDACTED-URL]")
2024/06/17 14:46:01 DEBUG : ftp://[REDACTED-URL]/Disque 1/Vidéos: > dial: conn=*fshttp.timeoutConn, err=<nil>
2024/06/17 14:46:01 DEBUG : ftp://[REDACTED-URL]/Disque 1/Vidéos: dial("tcp","[REDACTED-IP]")
2024/06/17 14:46:01 DEBUG : ftp://[REDACTED-URL]/Disque 1/Vidéos: > dial: conn=*tls.Conn, err=<nil>
2024/06/17 14:46:02 DEBUG : ftp://[REDACTED-URL]/Disque 1/Vidéos: dial("tcp","[REDACTED-IP]")
2024/06/17 14:46:02 DEBUG : ftp://[REDACTED-URL]/Disque 1/Vidéos: > dial: conn=*tls.Conn, err=<nil>
2024/06/17 14:46:02 ERROR : ftp://[REDACTED-URL]/Disque 1/Vidéos: error reading destination root directory: 1 error occurred:
        * 426 Data channel closed.

2024/06/17 14:46:02 DEBUG : ftp://[REDACTED-URL]/Disque 1/Vidéos: Waiting for checks to finish
2024/06/17 14:46:02 DEBUG : ftp://[REDACTED-URL]/Disque 1/Vidéos: Waiting for transfers to finish
2024/06/17 14:46:02 ERROR : ftp://[REDACTED-URL]/Disque 1/Vidéos: not deleting files as there were IO errors
2024/06/17 14:46:02 ERROR : ftp://[REDACTED-URL]/Disque 1/Vidéos: not deleting directories as there were IO errors
2024/06/17 14:46:02 ERROR : Attempt 1/3 failed with 1 errors and: 1 error occurred:
        * 426 Data channel closed.

2024/06/17 14:46:02 DEBUG : ftp://[REDACTED-URL]/Disque 1/Vidéos: dial("tcp","[REDACTED-IP]")
2024/06/17 14:46:02 DEBUG : ftp://[REDACTED-URL]/Disque 1/Vidéos: > dial: conn=*tls.Conn, err=<nil>
2024/06/17 14:46:02 ERROR : ftp://[REDACTED-URL]/Disque 1/Vidéos: error reading destination root directory: 1 error occurred:
        * 426 Data channel closed.

2024/06/17 14:46:02 DEBUG : ftp://[REDACTED-URL]/Disque 1/Vidéos: Waiting for checks to finish
2024/06/17 14:46:02 DEBUG : ftp://[REDACTED-URL]/Disque 1/Vidéos: Waiting for transfers to finish
2024/06/17 14:46:02 ERROR : ftp://[REDACTED-URL]/Disque 1/Vidéos: not deleting files as there were IO errors
2024/06/17 14:46:02 ERROR : ftp://[REDACTED-URL]/Disque 1/Vidéos: not deleting directories as there were IO errors
2024/06/17 14:46:02 ERROR : Attempt 2/3 failed with 1 errors and: 1 error occurred:
        * 426 Data channel closed.

2024/06/17 14:46:02 DEBUG : ftp://[REDACTED-URL]/Disque 1/Vidéos: dial("tcp","[REDACTED-IP]")
2024/06/17 14:46:02 DEBUG : ftp://[REDACTED-URL]/Disque 1/Vidéos: > dial: conn=*tls.Conn, err=<nil>
2024/06/17 14:46:02 ERROR : ftp://[REDACTED-URL]/Disque 1/Vidéos: error reading destination root directory: 1 error occurred:
        * 426 Data channel closed.

2024/06/17 14:46:02 DEBUG : ftp://[REDACTED-URL]/Disque 1/Vidéos: Waiting for checks to finish
2024/06/17 14:46:02 DEBUG : ftp://[REDACTED-URL]/Disque 1/Vidéos: Waiting for transfers to finish
2024/06/17 14:46:02 ERROR : ftp://[REDACTED-URL]/Disque 1/Vidéos: not deleting files as there were IO errors
2024/06/17 14:46:02 ERROR : ftp://[REDACTED-URL]/Disque 1/Vidéos: not deleting directories as there were IO errors
2024/06/17 14:46:02 ERROR : Attempt 3/3 failed with 1 errors and: 1 error occurred:
        * 426 Data channel closed.

2024/06/17 14:46:02 INFO  :
Transferred:              0 B / 0 B, -, 0 B/s, ETA -
Errors:                 1 (retrying may help)
Elapsed time:         1.4s

2024/06/17 14:46:02 DEBUG : 2 go routines active
2024/06/17 14:46:02 DEBUG : ftp://[REDACTED-URL]/Disque 1/Vidéos: closing 1 unused connections
2024/06/17 14:46:02 Failed to sync: 1 error occurred:
        * 426 Data channel closed.

Additional informations (and also clearing some stuff i've read in similar cases)

Free (a French ISP) provides great routers that have many features, including hosting a FTP on the router itself.

Freebox OS redirect to the dashboard of the local router, it's meant to be used locally and so won't connect to anything on the internet.

running the GUI

rclone rcd --rc-web-gui

I can tell that it can safely connect once and then getting disconnect.
I can explore/see directories ONCE and if i move to another directory nothing will show up, like i would be disconnected.


opening "Vidéos", it disconnects and shows nothing

Content in " PFVD / Disque 1 / Vidéos / " via Filezilla

the same thing happens with

rclone lsd "pfvd:Disque 1/" -vv
2024/06/17 16:08:56 DEBUG : rclone: Version "v1.66.0" starting with parameters ["C:\\Program Files\\Rclone\\rclone-v1.66.0-windows-amd64\\rclone.exe" "lsd" "pfvd:Disque 1/" "-vv"]
2024/06/17 16:08:56 DEBUG : Creating backend with remote "pfvd:Disque 1/"
2024/06/17 16:08:56 DEBUG : Using config file from "C:\\Users\\llvol\\AppData\\Roaming\\rclone\\rclone.conf"
2024/06/17 16:08:56 DEBUG : ftp://[REDACTED-URL]/Disque 1: Connecting to FTP server
2024/06/17 16:08:56 DEBUG : ftp://[REDACTED-URL]/Disque 1: dial("tcp","[REDACTED-URL]")
2024/06/17 16:08:56 DEBUG : ftp://[REDACTED-URL]/Disque 1: > dial: conn=*fshttp.timeoutConn, err=<nil>
2024/06/17 16:08:57 DEBUG : ftp://[REDACTED-URL]/Disque 1: dial("tcp","[REDACTED-IP]")
2024/06/17 16:08:57 DEBUG : ftp://[REDACTED-URL]/Disque 1: > dial: conn=*tls.Conn, err=<nil>
2024/06/17 16:08:57 DEBUG : ftp://[REDACTED-URL]/Disque 1: dial("tcp","[REDACTED-IP]")
2024/06/17 16:08:57 DEBUG : ftp://[REDACTED-URL]/Disque 1: > dial: conn=*tls.Conn, err=<nil>
2024/06/17 16:08:57 ERROR : : error listing: 1 error occurred:
        * 426 Data channel closed.

2024/06/17 16:08:57 DEBUG : 2 go routines active
2024/06/17 16:08:57 DEBUG : ftp://[REDACTED-URL]/Disque 1: closing 1 unused connections
2024/06/17 16:08:57 Failed to lsd with 2 errors: last error was: 1 error occurred:
        * 426 Data channel closed.

Same thing was also happening with Duplicati (with the standard/default FTP protocol) and i have the strong feeling that rClone should use the same aFTP protocol as Duplicati, the Aternative FTP protocol.
Using the original one i could connect but getting stuck in the transfer, probably the same issue, connecting once and then geting stuck as rClone.
Changing to aFTP and using these arguments;

--accept-any-ssl-certificate=true
--aftp-encryption-mode=Explicit

It then works. But what should it be for rClone ?.

So. Is there a similar way to achieve this with rClone ?

" Do not verify the TLS certificate of the server. (true / false) " doesn't seem to be the same as to automaticly accept any certificate.
I've already set "Use Explicit FTPS (FTP over TLS)." to true.

To me it's either the protocol wich isn't the right one, or the fact that it's not automaticly accepting the certificate.

Feel free to answer this !

Similar (not very clear) cases of French people having the same issue

Unable to connect ftpes using rclone, but no problem with FileZilla - Help and Support - rclone forum

Rclone copy gives error Connection reset by peer, using FTP - Help and Support - rclone forum

welcome to the forum,

can you please do that.


try using
" --dump headers, --dump bodies, --dump auth for debugging"


rclone has better support for sftp.

I doubt that's the right command you're asking me as

rclone config pfvd


Usage:
  rclone config [flags]
  rclone config [command]

Available Commands:
  create      Create a new remote with name, type and options.
  delete      Delete an existing remote.
  disconnect  Disconnects user from remote
  dump        Dump the config file as JSON.
  edit        Enter an interactive configuration session.
  file        Show path of configuration file in use.
  password    Update password in an existing remote.
  paths       Show paths used for configuration, cache, temp etc.
  providers   List in JSON format all the providers and options.
  reconnect   Re-authenticates user with remote.
  redacted    Print redacted (decrypted) config file, or the redacted config for a single remote.
  show        Print (decrypted) config file, or the config for a single remote.
  touch       Ensure configuration file exists.
  update      Update options in an existing remote.
  userinfo    Prints info about logged in user of remote.

Flags:
  -h, --help   help for config

Use "rclone [command] --help" for more information about a command.
Use "rclone help flags" for to see the global flags.
Use "rclone help backends" for a list of supported services.
Command config needs 0 arguments maximum: you provided 1 non flag arguments: ["pfvd"]

shows a list of available arguments, i think what you're asking me is

rclone config show pfvd


[pfvd]
type = ftp
pass = *** ENCRYPTED ***
port = [REDACTED]
user = freebox
explicit_tls = true
host = [REDACTED]
no_check_certificate = true
disable_epsv = false
concurrency = 1

I'd prefer to use their default present feature than having to run a VM on the router and having to setup everything only for a FTP backup

trying to force TLS with flag

rclone sync "dcvolo-vid-test:Videos/test" "pfvd:Disque 1/" --ftp-explicit-tls --dump headers --dump bodies --dump auth
2024/06/17 16:53:25 NOTICE: Automatically setting -vv as --dump is enabled
2024/06/17 16:53:25 DEBUG : rclone: Version "v1.66.0" starting with parameters ["C:\\Program Files\\Rclone\\rclone-v1.66.0-windows-amd64\\rclone.exe" "sync" "dcvolo-vid-test:Videos/test" "pfvd:Disque 1/" "--ftp-explicit-tls" "--dump" "headers" "--dump" "bodies" "--dump" "auth"]
2024/06/17 16:53:25 DEBUG : Creating backend with remote "dcvolo-vid-test:Videos/test"
2024/06/17 16:53:25 DEBUG : Using config file from "C:\\Users\\llvol\\AppData\\Roaming\\rclone\\rclone.conf"
2024/06/17 16:53:25 DEBUG : fs cache: renaming cache item "dcvolo-vid-test:Videos/test" to be canonical "dcvolo-vid-test://?/C:/Users/llvol/Videos/test"
2024/06/17 16:53:25 DEBUG : Creating backend with remote "pfvd:Disque 1/"
2024/06/17 16:53:25 DEBUG : pfvd: detected overridden config - adding "{xbXDR}" suffix to name
2024/06/17 16:53:25 DEBUG : ftp://[REDACTED-URL]/Disque 1: Connecting to FTP server
2024/06/17 16:53:25 DEBUG : ftp://[REDACTED-URL]/Disque 1: dial("tcp","[REDACTED-URL]")
2024/06/17 16:53:25 DEBUG : ftp://[REDACTED-URL]/Disque 1: > dial: conn=*fshttp.timeoutConn, err=<nil>
2024/06/17 16:53:26 DEBUG : ftp://[REDACTED-URL]/Disque 1: dial("tcp","[REDACTED-IP]")
2024/06/17 16:53:26 DEBUG : ftp://[REDACTED-URL]/Disque 1: > dial: conn=*tls.Conn, err=<nil>
2024/06/17 16:53:26 DEBUG : fs cache: renaming cache item "pfvd:Disque 1/" to be canonical "pfvd{xbXDR}:Disque 1/"
2024/06/17 16:53:26 DEBUG : ftp://[REDACTED-URL]/Disque 1: dial("tcp","[REDACTED-IP]")
2024/06/17 16:53:26 DEBUG : ftp://[REDACTED-URL]/Disque 1: > dial: conn=*tls.Conn, err=<nil>
2024/06/17 16:53:26 ERROR : ftp://[REDACTED-URL]/Disque 1: error reading destination root directory: 1 error occurred:
        * 426 Data channel closed.

2024/06/17 16:53:26 DEBUG : ftp://[REDACTED-URL]/Disque 1: Waiting for checks to finish
2024/06/17 16:53:26 DEBUG : ftp://[REDACTED-URL]/Disque 1: Waiting for transfers to finish
2024/06/17 16:53:26 ERROR : ftp://[REDACTED-URL]/Disque 1: not deleting files as there were IO errors
2024/06/17 16:53:26 ERROR : ftp://[REDACTED-URL]/Disque 1: not deleting directories as there were IO errors
2024/06/17 16:53:26 ERROR : Attempt 1/3 failed with 1 errors and: 1 error occurred:
        * 426 Data channel closed.

2024/06/17 16:53:26 DEBUG : ftp://[REDACTED-URL]/Disque 1: dial("tcp","[REDACTED-IP]")
2024/06/17 16:53:26 DEBUG : ftp://[REDACTED-URL]/Disque 1: > dial: conn=*tls.Conn, err=<nil>
2024/06/17 16:53:26 ERROR : ftp://[REDACTED-URL]/Disque 1: error reading destination root directory: 1 error occurred:
        * 426 Data channel closed.

2024/06/17 16:53:26 DEBUG : ftp://[REDACTED-URL]/Disque 1: Waiting for checks to finish
2024/06/17 16:53:26 DEBUG : ftp://[REDACTED-URL]/Disque 1: Waiting for transfers to finish
2024/06/17 16:53:26 ERROR : ftp://[REDACTED-URL]/Disque 1: not deleting files as there were IO errors
2024/06/17 16:53:26 ERROR : ftp://[REDACTED-URL]/Disque 1: not deleting directories as there were IO errors
2024/06/17 16:53:26 ERROR : Attempt 2/3 failed with 1 errors and: 1 error occurred:
        * 426 Data channel closed.

2024/06/17 16:53:26 DEBUG : ftp://[REDACTED-URL]/Disque 1: dial("tcp","[REDACTED-IP]")
2024/06/17 16:53:26 DEBUG : ftp://[REDACTED-URL]/Disque 1: > dial: conn=*tls.Conn, err=<nil>
2024/06/17 16:53:27 ERROR : ftp://[REDACTED-URL]/Disque 1: error reading destination root directory: 1 error occurred:
        * 426 Data channel closed.

2024/06/17 16:53:27 DEBUG : ftp://[REDACTED-URL]/Disque 1: Waiting for checks to finish
2024/06/17 16:53:27 DEBUG : ftp://[REDACTED-URL]/Disque 1: Waiting for transfers to finish
2024/06/17 16:53:27 ERROR : ftp://[REDACTED-URL]/Disque 1: not deleting files as there were IO errors
2024/06/17 16:53:27 ERROR : ftp://[REDACTED-URL]/Disque 1: not deleting directories as there were IO errors
2024/06/17 16:53:27 ERROR : Attempt 3/3 failed with 1 errors and: 1 error occurred:
        * 426 Data channel closed.

2024/06/17 16:53:27 INFO  :
Transferred:              0 B / 0 B, -, 0 B/s, ETA -
Errors:                 1 (retrying may help)
Elapsed time:         1.4s

2024/06/17 16:53:27 DEBUG : 2 go routines active
2024/06/17 16:53:27 DEBUG : ftp://[REDACTED-URL]/Disque 1: closing 1 unused connections
2024/06/17 16:53:27 Failed to sync: 1 error occurred:
        * 426 Data channel closed.

try listing the root dir
rclone lsd pfvd: -vv

PS C:\Users\llvol> rclone lsd pfvd: -vv
2024/06/17 17:06:59 DEBUG : rclone: Version "v1.66.0" starting with parameters ["C:\\Program Files\\Rclone\\rclone-v1.66.0-windows-amd64\\rclone.exe" "lsd" "pfvd:" "-vv"]
2024/06/17 17:06:59 DEBUG : Creating backend with remote "pfvd:"
2024/06/17 17:06:59 DEBUG : Using config file from "C:\\Users\\llvol\\AppData\\Roaming\\rclone\\rclone.conf"
2024/06/17 17:06:59 DEBUG : [REDACTED]:61201: Connecting to FTP server
2024/06/17 17:06:59 DEBUG : [REDACTED]:61201: dial("tcp","[REDCATED]:61201")
2024/06/17 17:06:59 DEBUG : [REDACTED]:61201: > dial: conn=*fshttp.timeoutConn, err=<nil>
2024/06/17 17:07:00 DEBUG : [REDACTED]: dial("tcp","[REDACTED]:57901")
2024/06/17 17:07:00 DEBUG : [REDACTED]: > dial: conn=*tls.Conn, err=<nil>
          -1 2024-05-27 17:01:00        -1 Disque 1
2024/06/17 17:07:00 DEBUG : 2 go routines active
2024/06/17 17:07:00 DEBUG : [REDACTED]:61201: closing 1 unused connections

I kept the port just in case.

Again, i'd like to mention that using the GUI i can see the directory, but after i change from another folder, it stops working for few minutes. Until i can repeat the "whole process" (two steps)

Watch Recording 2024-06-17 171644 | Streamable

ok, so that worked, rclone worked as expected

now try
rclone lsd "pfvd:/Disque 1" -vv


about the gui, never used it, cannot help you with that.

PS C:\Users\llvol> rclone lsd "pfvd:/Disque 1" -vv
2024/06/17 17:23:09 DEBUG : rclone: Version "v1.66.0" starting with parameters ["C:\\Program Files\\Rclone\\rclone-v1.66.0-windows-amd64\\rclone.exe" "lsd" "pfvd:/Disque 1" "-vv"]
2024/06/17 17:23:09 DEBUG : Creating backend with remote "pfvd:/Disque 1"
2024/06/17 17:23:09 DEBUG : Using config file from "C:\\Users\\llvol\\AppData\\Roaming\\rclone\\rclone.conf"
2024/06/17 17:23:09 DEBUG : ftp://[REDACTED-URL]:61201/Disque 1: Connecting to FTP server
2024/06/17 17:23:09 DEBUG : ftp://[REDACTED-URL]:61201/Disque 1: dial("tcp","[REDACTED-URL]:61201")
2024/06/17 17:23:09 DEBUG : ftp://[REDACTED-URL]:61201/Disque 1: > dial: conn=*fshttp.timeoutConn, err=<nil>
2024/06/17 17:23:10 DEBUG : ftp://[REDACTED-URL]:61201/Disque 1: dial("tcp","[REDACTED-IP]:57901")
2024/06/17 17:23:10 DEBUG : ftp://[REDACTED-URL]:61201/Disque 1: > dial: conn=*tls.Conn, err=<nil>
2024/06/17 17:23:10 DEBUG : ftp://[REDACTED-URL]:61201/Disque 1: dial("tcp","[REDACTED-IP]:57901")
2024/06/17 17:23:10 DEBUG : ftp://[REDACTED-URL]:61201/Disque 1: > dial: conn=*tls.Conn, err=<nil>
2024/06/17 17:23:10 ERROR : : error listing: 1 error occurred:
        * 426 Data channel closed.

2024/06/17 17:23:10 DEBUG : 2 go routines active
2024/06/17 17:23:10 DEBUG : ftp://[REDACTED-URL]:61201/Disque 1: closing 1 unused connections
2024/06/17 17:23:10 Failed to lsd with 2 errors: last error was: 1 error occurred:
        * 426 Data channel closed.


Yeah i've seen that the GUI is experimental and shouldn't be used, but at that point i was just trying to get a visible result.

EDIT : Maybe i could try reusing the two certificates i validated for Filezilla ?

On Windows either modify your " rclone.conf " file :

%APPDATA%/rclone/

like this

[THE_NAME_OF_YOUR_REMOTE]
type = ftp
pass = YOUR_PW
port = YOUR_PORT
user = YOUR_USERNAME
host = YOUR_DOMAIN_OR_IP
no_check_certificate = true
concurrency = 2
explicit_tls = true
disable_tls13 = true

Using a configured remote

rclone lsd "THE_NAME_OF_YOUR_REMOTE:Disque 1/"

Or if you want to test first

rclone lsd :ftp:"Disque 1" --ftp-host YOUR_DOMAIN_OR_IP --ftp-port YOUR_PORT--ftp-user YOUR_USERNAME--ftp-pass YOUR_OBSCURED_PW --ftp-disable-tls13 --ftp-explicit-tls --ftp-no-check-certificate

this was previously returning an error (426), but now should work properly :

          -1 2024-05-27 17:01:00        -1 Enregistrements
          -1 2024-05-27 17:01:00        -1 Musiques
          -1 2024-05-27 17:01:00        -1 Photos
          -1 2024-05-28 10:32:00        -1 Téléchargements
          -1 2024-05-29 00:41:00        -1 VMs
          -1 2024-06-17 15:22:00        -1 Vidéos

Filezilla, WinScp, Duplicati work with TLS 1.3 but rClone doesn't in that particular case (handling FTPES). I still think that rClone doesn't handle the certificates correctly and should automaticly validate instead of ignoring. That's what Duplicati does and it works. And for Filezilla and WinScp we do it manually.


I'd prefer Free to update and use SFTP instead but for those that own a VM capable router, you could do that. I don't care enough to be bothered with doing this.


Anyway, this is now fixed. Sync works, everything works.

PS : @mattiarainieri , @Aymene , @techandapp in the hope that you'll receive a notification about this.

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