Hello Rclone Community!
What is the problem you are having with rclone?
I have created an Rclone FTPS connection to another server, but I cannot use the "rclone touch" command, nor can I upload an empty file (with copy, copyto, move, moveto).
However, coping files with content works. Also using a plain FTP (without explicit_tls) connection works too.
I receive the error: "Unable to build data connection: Operation not permitted"
What is your rclone version (output from rclone version
)
rclone v1.54.0
- os/arch: linux/amd64
- go version: go1.15.7
Which OS you are using and how many bits?
Ubuntu 18.04 (64-bit)
Which cloud storage system are you using?
FTP
The command you were trying to run?
rclone touch my-ftp-dev13:files/my-test-files/test --retries 1 -vv
rclone copyto empty-file my-ftp-dev13:files/my-test-files/empty-file --retries 1 -vv
The rclone config contents with secrets removed.
[my-ftp-dev13]
type = ftp
host = dev13.keymachine.de
port = 21
user = test
pass = <secret_password>
explicit_tls = true
A log from the command with the -vv
flag
Using the touch command:
2021/02/26 15:29:12 DEBUG : rclone: Version "v1.54.0" starting with parameters ["rclone" "touch" "my-ftp-dev13:files/my-test-files/test" "--retries" "1" "-vv"]
2021/02/26 15:29:12 DEBUG : Creating backend with remote "my-ftp-dev13:files/my-test-files/"
2021/02/26 15:29:12 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2021/02/26 15:29:12 DEBUG : ftp://dev13.keymachine.de:21/files/my-test-files: Connecting to FTP server
2021/02/26 15:29:13 DEBUG : ftp://dev13.keymachine.de:21/files/my-test-files: Connecting to FTP server
2021/02/26 15:29:14 DEBUG : test: Removed after failed upload: 425 Unable to build data connection: Operation not permitted
2021/02/26 15:29:14 ERROR : Attempt 1/1 failed with 1 errors and: update stor: 425 Unable to build data connection: Operation not permitted
2021/02/26 15:29:14 DEBUG : 2 go routines active
2021/02/26 15:29:14 Failed to touch: update stor: 425 Unable to build data connection: Operation not permitted
Using the copyto command:
2021/02/26 15:51:28 DEBUG : rclone: Version "v1.54.0" starting with parameters ["rclone" "copyto" "empty-file" "my-ftp-dev13:files/my-test-files/empty-file" "--retries" "1" "-vv"]
2021/02/26 15:51:28 DEBUG : Creating backend with remote "empty-file"
2021/02/26 15:51:28 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2021/02/26 15:51:28 DEBUG : fs cache: adding new entry for parent of "empty-file", "/root"
2021/02/26 15:51:28 DEBUG : Creating backend with remote "my-ftp-dev13:files/my-test-files/"
2021/02/26 15:51:28 DEBUG : ftp://dev13.keymachine.de:21/files/my-test-files: Connecting to FTP server
2021/02/26 15:51:28 DEBUG : empty-file: Need to transfer - File not found at Destination
2021/02/26 15:51:29 DEBUG : ftp://dev13.keymachine.de:21/files/my-test-files: Connecting to FTP server
2021/02/26 15:51:29 DEBUG : empty-file: Removed after failed upload: 425 Unable to build data connection: Operation not permitted
2021/02/26 15:51:29 ERROR : empty-file: Failed to copy: update stor: 425 Unable to build data connection: Operation not permitted
2021/02/26 15:51:29 ERROR : Attempt 1/1 failed with 1 errors and: update stor: 425 Unable to build data connection: Operation not permitted
2021/02/26 15:51:29 INFO :
Transferred: 0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors: 1 (retrying may help)
Elapsed time: 1.2s
2021/02/26 15:51:29 DEBUG : 3 go routines active
2021/02/26 15:51:29 Failed to copyto: update stor: 425 Unable to build data connection: Operation not permitted
##############################################################
On the remote side, I'm using ProFTPD. I tested 3 different operating systems with each an other version of ProFTPD.
- an Ubuntu 20 - ProFTPD Version 1.3.6c
- an Ubuntu 18 - ProFTPD Version 1.3.5e
- a Debian 10 - ProFTPD Version 1.3.6
I have also tested letting the server connect with itself and various other things, but the errors above remains always the same
Here are the log outputs of /var/log/proftpd/tls.log, each containing a line, where they complain about an TLS issue (unable to accept TLS connection).
Log output of /var/log/proftpd/tls.log (Ubuntu 18.04 - proFTPD 1.3.5e)
2021-02-26 15:29:12,787 mod_tls/2.6[18013]: TLS/TLS-C requested, starting TLS handshake
2021-02-26 15:29:12,851 mod_tls/2.6[18013]: TLSv1.3 renegotiation accepted, using cipher TLS_CHACHA20_POLY1305_SHA256 (256 bits)
2021-02-26 15:29:12,852 mod_tls/2.6[18013]: TLSv1.3 renegotiation accepted, using cipher TLS_CHACHA20_POLY1305_SHA256 (256 bits)
2021-02-26 15:29:12,852 mod_tls/2.6[18013]: TLSv1.3 connection accepted, using cipher TLS_CHACHA20_POLY1305_SHA256 (256 bits)
2021-02-26 15:29:12,877 mod_tls/2.6[18013]: Protection set to Private
2021-02-26 15:29:12,879 mod_tls/2.6[18013]: starting TLS negotiation on data connection
2021-02-26 15:29:12,893 mod_tls/2.6[18013]: TLSv1.3 renegotiation accepted, using cipher TLS_CHACHA20_POLY1305_SHA256 (256 bits)
2021-02-26 15:29:12,894 mod_tls/2.6[18013]: TLSv1.3 renegotiation accepted, using cipher TLS_CHACHA20_POLY1305_SHA256 (256 bits)
2021-02-26 15:29:12,894 mod_tls/2.6[18013]: TLSv1.3 data connection accepted, using cipher TLS_CHACHA20_POLY1305_SHA256 (256 bits)
2021-02-26 15:29:12,897 mod_tls/2.6[18013]: starting TLS negotiation on data connection
2021-02-26 15:29:12,910 mod_tls/2.6[18013]: TLSv1.3 renegotiation accepted, using cipher TLS_CHACHA20_POLY1305_SHA256 (256 bits)
2021-02-26 15:29:12,910 mod_tls/2.6[18013]: TLSv1.3 renegotiation accepted, using cipher TLS_CHACHA20_POLY1305_SHA256 (256 bits)
2021-02-26 15:29:12,913 mod_tls/2.6[18013]: starting TLS negotiation on data connection
2021-02-26 15:29:12,928 mod_tls/2.6[18013]: TLSv1.3 renegotiation accepted, using cipher TLS_CHACHA20_POLY1305_SHA256 (256 bits)
2021-02-26 15:29:12,928 mod_tls/2.6[18013]: TLSv1.3 renegotiation accepted, using cipher TLS_CHACHA20_POLY1305_SHA256 (256 bits)
2021-02-26 15:29:12,931 mod_tls/2.6[18013]: starting TLS negotiation on data connection
2021-02-26 15:29:12,931 mod_tls/2.6[18013]: unable to accept TLS connection: system call error: [0] Success
2021-02-26 15:29:12,931 mod_tls/2.6[18013]: SSL_shutdown error: SSL:
(1) error:140E0197:SSL routines:SSL_shutdown:shutdown while in init
2021-02-26 15:29:12,931 mod_tls/2.6[18013]: unable to open data connection: TLS negotiation failed
2021-02-26 15:29:13,940 mod_tls/2.6[18014]: TLS/TLS-C requested, starting TLS handshake
2021-02-26 15:29:13,957 mod_tls/2.6[18014]: TLSv1.3 renegotiation accepted, using cipher TLS_CHACHA20_POLY1305_SHA256 (256 bits)
2021-02-26 15:29:13,958 mod_tls/2.6[18014]: TLSv1.3 renegotiation accepted, using cipher TLS_CHACHA20_POLY1305_SHA256 (256 bits)
2021-02-26 15:29:13,958 mod_tls/2.6[18014]: TLSv1.3 connection accepted, using cipher TLS_CHACHA20_POLY1305_SHA256 (256 bits)
2021-02-26 15:29:13,983 mod_tls/2.6[18014]: Protection set to Private
2021-02-26 15:29:13,984 mod_tls/2.6[18014]: starting TLS negotiation on data connection
2021-02-26 15:29:13,998 mod_tls/2.6[18014]: TLSv1.3 renegotiation accepted, using cipher TLS_CHACHA20_POLY1305_SHA256 (256 bits)
2021-02-26 15:29:13,998 mod_tls/2.6[18014]: TLSv1.3 renegotiation accepted, using cipher TLS_CHACHA20_POLY1305_SHA256 (256 bits)
2021-02-26 15:29:13,998 mod_tls/2.6[18014]: TLSv1.3 data connection accepted, using cipher TLS_CHACHA20_POLY1305_SHA256 (256 bits)
Log output of /var/log/proftpd/tls.log (Ubuntu 20.04 - proFTPD 1.3.6c)
2021-02-26 15:33:19,984 mod_tls/2.7[6488]: TLS/TLS-C requested, starting TLS handshake
2021-02-26 15:33:20,054 mod_tls/2.7[6488]: TLSv1.3 connection accepted, using cipher TLS_CHACHA20_POLY1305_SHA256 (256 bits)
2021-02-26 15:33:20,088 mod_tls/2.7[6488]: Protection set to Private
2021-02-26 15:33:20,090 mod_tls/2.7[6488]: starting TLS negotiation on data connection
2021-02-26 15:33:20,105 mod_tls/2.7[6488]: TLSv1.3 data connection accepted, using cipher TLS_CHACHA20_POLY1305_SHA256 (256 bits)
2021-02-26 15:33:20,108 mod_tls/2.7[6488]: starting TLS negotiation on data connection
2021-02-26 15:33:20,126 mod_tls/2.7[6488]: starting TLS negotiation on data connection
2021-02-26 15:33:20,151 mod_tls/2.7[6488]: starting TLS negotiation on data connection
2021-02-26 15:33:20,151 mod_tls/2.7[6488]: unable to accept TLS connection: system call error: [0] Success
2021-02-26 15:33:20,151 mod_tls/2.7[6488]: unable to open data connection: TLS negotiation failed
2021-02-26 15:33:21,167 mod_tls/2.7[6489]: TLS/TLS-C requested, starting TLS handshake
2021-02-26 15:33:21,184 mod_tls/2.7[6489]: TLSv1.3 connection accepted, using cipher TLS_CHACHA20_POLY1305_SHA256 (256 bits)
2021-02-26 15:33:21,211 mod_tls/2.7[6489]: Protection set to Private
2021-02-26 15:33:21,213 mod_tls/2.7[6489]: starting TLS negotiation on data connection
2021-02-26 15:33:21,227 mod_tls/2.7[6489]: TLSv1.3 data connection accepted, using cipher TLS_CHACHA20_POLY1305_SHA256 (256 bits)
Thank you very much for your help!
Alex