Hi! I am trying to setup a private ftp-based backup solution, that has to be secure and reliable. After struggling with various programs, I found rclone, which seems like the only tool that coud work for me. But I'm having some issues with it.
What is the problem you are having with rclone?
FTP with explicit TLS does not seem to work. With the 'dump bodies' option it seems the problem is lack of SSL session reuse support on rclone. Am I right?
Is there a way to solve this, or do I have to wait for the feature to be implemented (or search for another tool)?
Strangely I couldn't find anything on this issue in the internet, which suggests only I am having it.
What is your rclone version (output from rclone version
)
1.55.1 (latest). Also tried 1.53 (latest beta) with same result.
Which OS you are using and how many bits (eg Windows 7, 64 bit)
WIndows 10 64-bit
Which cloud storage system are you using? (eg Google Drive)
FTP
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
& "C:\PProg\Dysk\rclone\rclone.exe" lsf "enklawa:/test_dir/" -vv --dump bodies --retries 1 --low-level-retries 1 --config="$PSScriptRoot\rclone.config" --password-command="powershell -NoProfile -File $PSScriptRoot\rclone_pass.ps1"
Post your config file
Cannot post it, because my config is encrypted. I am pasting the configuration of my server printed by the config command.
--------------------
[enklawa]
type = ftp
host = *PRIVATE*
user = *PRIVATE*
port = *PRIVATE
pass = *** ENCRYPTED ***
explicit_tls = true
no_check_certificate = true
--------------------
A log from the command with the -vv
flag
2021/06/15 19:22:25 DEBUG : rclone: Version "v1.55.1" starting with parameters ["C:\\pprog\\Dysk\\rclone\\rclone.exe" "lsf" "enklawa:/test_dir/" "-vv" "--dump" "bodies" "--retries"
"1" "--low-level-retries" "1" "--config=D:\\BackupScript\\rclone\\rclone.config" "--password-command=powershell -NoProfile -File D:\\BackupScript\\rclone\\rclone_pass.ps1"]
2021/06/15 19:22:25 DEBUG : Creating backend with remote "enklawa:/test_dir/"
2021/06/15 19:22:25 DEBUG : ftp://*PRIVATE*/test_dir: Connecting to FTP server
2021/06/15 19:22:25 DEBUG : FTP Rx: "220 Welcome to Backup server 1."
2021/06/15 19:22:25 DEBUG : FTP Tx: "AUTH TLS"
2021/06/15 19:22:25 DEBUG : FTP Rx: "234 Proceed with negotiation."
2021/06/15 19:22:25 DEBUG : FTP Tx: "USER *PRIVATE*"
2021/06/15 19:22:25 DEBUG : FTP Rx: "331 Please specify the password."
2021/06/15 19:22:25 DEBUG : FTP Tx: PASS *****
2021/06/15 19:22:26 DEBUG : FTP Rx: "230 Login successful."
2021/06/15 19:22:26 DEBUG : FTP Tx: "FEAT"
2021/06/15 19:22:26 DEBUG : FTP Rx: "211-Features:"
2021/06/15 19:22:26 DEBUG : FTP Rx: " AUTH TLS"
2021/06/15 19:22:26 DEBUG : FTP Rx: " UTF8"
2021/06/15 19:22:26 DEBUG : FTP Rx: " EPRT"
2021/06/15 19:22:26 DEBUG : FTP Rx: " EPSV"
2021/06/15 19:22:26 DEBUG : FTP Rx: " MDTM"
2021/06/15 19:22:26 DEBUG : FTP Rx: " PASV"
2021/06/15 19:22:26 DEBUG : FTP Rx: " PBSZ"
2021/06/15 19:22:26 DEBUG : FTP Rx: " PROT"
2021/06/15 19:22:26 DEBUG : FTP Rx: " REST STREAM"
2021/06/15 19:22:26 DEBUG : FTP Rx: " SIZE"
2021/06/15 19:22:26 DEBUG : FTP Rx: " TVFS"
2021/06/15 19:22:26 DEBUG : FTP Rx: "211 End"
2021/06/15 19:22:26 DEBUG : FTP Tx: "TYPE I"
2021/06/15 19:22:26 DEBUG : FTP Rx: "200 Switching to Binary mode."
2021/06/15 19:22:26 DEBUG : FTP Tx: "OPTS UTF8 ON"
2021/06/15 19:22:26 DEBUG : FTP Rx: "200 Always in UTF8 mode."
2021/06/15 19:22:26 DEBUG : FTP Tx: "PBSZ 0"
2021/06/15 19:22:26 DEBUG : FTP Rx: "200 PBSZ set to 0."
2021/06/15 19:22:26 DEBUG : FTP Tx: "PROT P"
2021/06/15 19:22:26 DEBUG : FTP Rx: "200 PROT now Private."
2021/06/15 19:22:26 DEBUG : FTP Tx: "EPSV"
2021/06/15 19:22:26 DEBUG : FTP Rx: "229 Entering Extended Passive Mode (|||6697|)"
2021/06/15 19:22:26 DEBUG : FTP Tx: "LIST /test_dir"
2021/06/15 19:22:26 DEBUG : FTP Rx: "150 Here comes the directory listing."
2021/06/15 19:22:26 DEBUG : FTP Rx: "522 SSL connection failed: session reuse required"
2021/06/15 19:22:26 DEBUG : FTP Tx: "EPSV"
2021/06/15 19:22:26 DEBUG : FTP Tx: "PASV"
2021/06/15 19:22:26 DEBUG : FTP Tx: "NOOP"
2021/06/15 19:22:26 DEBUG : ftp://*PRIVATE*/test_dir: Connection failed, closing: EOF
2021/06/15 19:22:26 DEBUG : FTP Tx: "QUIT"
2021/06/15 19:22:26 ERROR : : error listing: EOF
2021/06/15 19:22:26 DEBUG : 2 go routines active
2021/06/15 19:22:26 Failed to lsf with 2 errors: last error was: error in ListJSON: EOF