Rclone FTPS (Explicit) + rclone touch / empty files + ProFTPD => Unable to build data connection: Operation not permitted (with 1.59.x)

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).

I have reported the same issue back with Rclone version 1.54.0 here. Now trying out Rclone 1.59.0 or 1.59.1 it seems the error is back.
After it was fixed the last time, the error did not occur until (including) version 1.58.1.

When using 1.58.1 -> It works.
When using 1.59 / 1.59.1 -> It does not work.

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

rclone v1.59.1

  • os/version: ubuntu 22.04 (64 bit)
  • os/kernel: 5.15.0-43-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.18.5
  • go/linking: static
  • 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 touch my-ftp-dev23:/files/my-test-file --retries 1 -vv

The rclone config contents with secrets removed.

[my-ftp-dev23]
type = ftp
host = dev23.keymachine.de
user = test
pass = <my-secret>
explicit_tls = true

A log from the command with the -vv flag

2022/09/06 14:26:19 DEBUG : rclone: Version "v1.59.1" starting with parameters ["rclone" "touch" "my-ftp-dev23:/files/my-test-file" "--retries" "1" "-vv"]
2022/09/06 14:26:19 DEBUG : Creating backend with remote "my-ftp-dev23:/files/"
2022/09/06 14:26:19 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2022/09/06 14:26:19 DEBUG : ftp://dev23.keymachine.de:21/files: Connecting to FTP server
2022/09/06 14:26:20 DEBUG : Touch time 2022-09-06 14:26:20.238751756 +0000 UTC m=+0.515825587
2022/09/06 14:26:20 DEBUG : ftp://dev23.keymachine.de:21/files: Touching (creating) "my-test-file"
2022/09/06 14:26:21 DEBUG : ftp://dev23.keymachine.de:21/files: Connecting to FTP server
2022/09/06 14:26:21 DEBUG : my-test-file: Removed after failed upload: 1 error occurred:
	* 425 Unable to build data connection: Die Operation ist nicht erlaubt

2022/09/06 14:26:21 ERROR : Attempt 1/1 failed with 1 errors and: failed to touch (create): update stor: 1 error occurred:
	* 425 Unable to build data connection: Die Operation ist nicht erlaubt

2022/09/06 14:26:21 DEBUG : 2 go routines active
2022/09/06 14:26:21 DEBUG : ftp://dev23.keymachine.de:21/files: closing 1 unused connections
2022/09/06 14:26:21 Failed to touch: failed to touch (create): update stor: 1 error occurred:
	* 425 Unable to build data connection: Die Operation ist nicht erlaubt

("Die Operation ist nicht erlaubt" means "Operation not permitted")

Thanks for your help again!
Alex

I've just fixed this again!

Try the beta linked from here

Hopefully that should fix the problems.

1 Like