FTP Failed to copy: update stor: 550 test.file.xuqayiz1.partial: Operation not permitted

What is the problem you are having with rclone?

Trying to copy a file from the local file system to the FTP and getting Operation not permitted error, even though the same file with the same connection settings works fine with Filezille FTP client.

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

rclone v1.66.0
- os/version: ubuntu 22.04 (64 bit)
- os/kernel: 4.4.249-1.el7.elrepo.x86_64 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.22.1
- 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 copy test.file doodstream_ftp: -vvP --retries 1 --dump bodies

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

[doodstream_ftp]
type = ftp
host = XXX
user = XXX
pass = XXX
port = 21

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

rclone copy test.file doodstream_ftp: -vvP --retries 1 --dump bodies
2024/05/17 08:28:51 DEBUG : rclone: Version "v1.66.0" starting with parameters ["rclone" "copy" "test.file" "doodstream_ftp:" "-vvP" "--retries" "1" "--dump" "bodies"]
2024/05/17 08:28:51 DEBUG : Creating backend with remote "test.file"
2024/05/17 08:28:51 DEBUG : Using config file from "/home/user/.config/rclone/rclone.conf"
2024/05/17 08:28:51 DEBUG : fs cache: adding new entry for parent of "test.file", "/home/user"
2024/05/17 08:28:51 DEBUG : Creating backend with remote "doodstream_ftp:"
2024/05/17 08:28:51 DEBUG : ftp://ftp.doodstream.com:21: Connecting to FTP server
2024/05/17 08:28:51 DEBUG : ftp://ftp.doodstream.com:21: dial("tcp","ftp.doodstream.com:21")
2024/05/17 08:28:51 DEBUG : ftp://ftp.doodstream.com:21: > dial: conn=*fshttp.timeoutConn, err=<nil>
2024/05/17 08:28:51 DEBUG : FTP Rx: "220 FTP Server ready."
2024/05/17 08:28:51 DEBUG : FTP Tx: "USER OMITTED"
2024/05/17 08:28:51 DEBUG : FTP Rx: "331 Password required for OMITTED"
2024/05/17 08:28:51 DEBUG : FTP Tx: PASS *****
2024/05/17 08:28:51 DEBUG : FTP Rx: "230 User OMITTED logged in"
2024/05/17 08:28:51 DEBUG : FTP Tx: "FEAT"
2024/05/17 08:28:51 DEBUG : FTP Rx: "211-Features:"
2024/05/17 08:28:51 DEBUG : FTP Rx: " LANG zh-TW;fr-FR;ru-RU;es-ES;it-IT;en-US;ko-KR;bg-BG;zh-CN;ja-JP"
2024/05/17 08:28:51 DEBUG : FTP Rx: " MFF modify;UNIX.group;UNIX.mode;"
2024/05/17 08:28:51 DEBUG : FTP Rx: " REST STREAM"
2024/05/17 08:28:51 DEBUG : FTP Rx: " MLST modify*;perm*;size*;type*;unique*;UNIX.group*;UNIX.mode*;UNIX.owner*;"
2024/05/17 08:28:51 DEBUG : FTP Rx: " UTF8"
2024/05/17 08:28:51 DEBUG : FTP Rx: " EPRT"
2024/05/17 08:28:51 DEBUG : FTP Rx: " EPSV"
2024/05/17 08:28:51 DEBUG : FTP Rx: " MDTM"
2024/05/17 08:28:51 DEBUG : FTP Rx: " TVFS"
2024/05/17 08:28:51 DEBUG : FTP Rx: " MFMT"
2024/05/17 08:28:51 DEBUG : FTP Rx: " SIZE"
2024/05/17 08:28:51 DEBUG : FTP Rx: "211 End"
2024/05/17 08:28:51 DEBUG : FTP Tx: "TYPE I"
2024/05/17 08:28:51 DEBUG : FTP Rx: "200 Type set to I"
2024/05/17 08:28:51 DEBUG : FTP Tx: "OPTS UTF8 ON"
2024/05/17 08:28:51 DEBUG : FTP Rx: "200 UTF8 set to on"
2024/05/17 08:28:51 DEBUG : FTP Tx: "MLST test.file"
2024/05/17 08:28:51 DEBUG : FTP Rx: "550 'test.file' cannot be listed"
2024/05/17 08:28:51 DEBUG : FTP Tx: "NOOP"
2024/05/17 08:28:51 DEBUG : FTP Rx: "200 NOOP command successful"
2024/05/17 08:28:51 DEBUG : test.file: Need to transfer - File not found at Destination
2024/05/17 08:28:51 DEBUG : FTP Tx: "EPSV"
2024/05/17 08:28:51 DEBUG : FTP Rx: "229 Entering Extended Passive Mode (|||11890|)"
2024/05/17 08:28:51 DEBUG : ftp://ftp.doodstream.com:21: dial("tcp","135.125.109.37:11890")
2024/05/17 08:28:51 DEBUG : ftp://ftp.doodstream.com:21: > dial: conn=*fshttp.timeoutConn, err=<nil>
2024/05/17 08:28:51 DEBUG : FTP Tx: "STOR test.file.xuqayiz1.partial"
2024/05/17 08:28:51 DEBUG : FTP Rx: "550 test.file.xuqayiz1.partial: Operation not permitted"
2024/05/17 08:28:51 DEBUG : FTP Tx: "QUIT"
2024/05/17 08:28:52 DEBUG : ftp://ftp.doodstream.com:21: Connecting to FTP server
2024/05/17 08:28:52 DEBUG : ftp://ftp.doodstream.com:21: dial("tcp","ftp.doodstream.com:21")
2024/05/17 08:28:52 DEBUG : ftp://ftp.doodstream.com:21: > dial: conn=*fshttp.timeoutConn, err=<nil>
2024/05/17 08:28:52 DEBUG : FTP Rx: "220 FTP Server ready."
2024/05/17 08:28:52 DEBUG : FTP Tx: "USER OMITTED"
2024/05/17 08:28:52 DEBUG : FTP Rx: "331 Password required for OMITTED"
2024/05/17 08:28:52 DEBUG : FTP Tx: PASS *****
2024/05/17 08:28:52 DEBUG : FTP Rx: "230 User OMITTED logged in"
2024/05/17 08:28:52 DEBUG : FTP Tx: "FEAT"
2024/05/17 08:28:52 DEBUG : FTP Rx: "211-Features:"
2024/05/17 08:28:52 DEBUG : FTP Rx: " LANG zh-TW;fr-FR;ru-RU;es-ES;it-IT;en-US;ko-KR;bg-BG;zh-CN;ja-JP"
2024/05/17 08:28:52 DEBUG : FTP Rx: " MFF modify;UNIX.group;UNIX.mode;"
2024/05/17 08:28:52 DEBUG : FTP Rx: " REST STREAM"
2024/05/17 08:28:52 DEBUG : FTP Rx: " MLST modify*;perm*;size*;type*;unique*;UNIX.group*;UNIX.mode*;UNIX.owner*;"
2024/05/17 08:28:52 DEBUG : FTP Rx: " UTF8"
2024/05/17 08:28:52 DEBUG : FTP Rx: " EPRT"
2024/05/17 08:28:52 DEBUG : FTP Rx: " EPSV"
2024/05/17 08:28:52 DEBUG : FTP Rx: " MDTM"
2024/05/17 08:28:52 DEBUG : FTP Rx: " TVFS"
2024/05/17 08:28:52 DEBUG : FTP Rx: " MFMT"
2024/05/17 08:28:52 DEBUG : FTP Rx: " SIZE"
2024/05/17 08:28:52 DEBUG : FTP Rx: "211 End"
2024/05/17 08:28:52 DEBUG : FTP Tx: "TYPE I"
2024/05/17 08:28:52 DEBUG : FTP Rx: "200 Type set to I"
2024/05/17 08:28:52 DEBUG : FTP Tx: "OPTS UTF8 ON"
2024/05/17 08:28:52 DEBUG : FTP Rx: "200 UTF8 set to on"
2024/05/17 08:28:52 DEBUG : FTP Tx: "MLST test.file.xuqayiz1.partial"
2024/05/17 08:28:52 DEBUG : FTP Rx: "550 'test.file.xuqayiz1.partial' cannot be listed"
2024/05/17 08:28:52 DEBUG : FTP Tx: "NOOP"
2024/05/17 08:28:52 DEBUG : FTP Rx: "200 NOOP command successful"
2024/05/17 08:28:52 DEBUG : test.file.xuqayiz1.partial: Failed to remove: object not found
2024/05/17 08:28:52 ERROR : test.file: Failed to copy: update stor: 550 test.file.xuqayiz1.partial: Operation not permitted
2024/05/17 08:28:52 DEBUG : FTP Tx: "MLST test.file.xuqayiz1.partial"
2024/05/17 08:28:52 DEBUG : FTP Rx: "550 'test.file.xuqayiz1.partial' cannot be listed"
2024/05/17 08:28:52 DEBUG : FTP Tx: "NOOP"
2024/05/17 08:28:52 DEBUG : FTP Rx: "200 NOOP command successful"
2024/05/17 08:28:52 ERROR : Attempt 1/1 failed with 1 errors and: update stor: 550 test.file.xuqayiz1.partial: Operation not permitted
Transferred:                 0 B / 0 B, -, 0 B/s, ETA -
Errors:                 1 (retrying may help)
Elapsed time:         1.3s
2024/05/17 08:28:52 INFO  : 
Transferred:                 0 B / 0 B, -, 0 B/s, ETA -
Errors:                 1 (retrying may help)
Elapsed time:         1.3s

2024/05/17 08:28:52 DEBUG : 6 go routines active
2024/05/17 08:28:52 DEBUG : ftp://ftp.doodstream.com:21: closing 1 unused connections
2024/05/17 08:28:52 DEBUG : FTP Tx: "QUIT"
2024/05/17 08:28:52 Failed to copy: update stor: 550 test.file.xuqayiz1.partial: Operation not permitted

In addition:

rclone backend features doodstream_ftp:
{
    "Name": "doodstream_ftp",
    "Root": "",
    "String": "ftp://ftp.doodstream.com:21",
    "Precision": 1000000000,
    "Hashes": [],
    "Features": {
        "About": false,
        "BucketBased": false,
        "BucketBasedRootOK": false,
        "CanHaveEmptyDirectories": true,
        "CaseInsensitive": false,
        "ChangeNotify": false,
        "ChunkWriterDoesntSeek": false,
        "CleanUp": false,
        "Command": false,
        "Copy": false,
        "DirCacheFlush": false,
        "DirModTimeUpdatesOnWrite": false,
        "DirMove": true,
        "DirSetModTime": false,
        "Disconnect": false,
        "DuplicateFiles": false,
        "FilterAware": false,
        "GetTier": false,
        "IsLocal": false,
        "ListR": false,
        "MergeDirs": false,
        "MkdirMetadata": false,
        "Move": true,
        "NoMultiThreading": false,
        "OpenChunkWriter": false,
        "OpenWriterAt": false,
        "Overlay": false,
        "PartialUploads": true,
        "PublicLink": false,
        "Purge": false,
        "PutStream": true,
        "PutUnchecked": false,
        "ReadDirMetadata": false,
        "ReadMetadata": false,
        "ReadMimeType": false,
        "ServerSideAcrossConfigs": false,
        "SetTier": false,
        "SetWrapper": false,
        "Shutdown": true,
        "SlowHash": false,
        "SlowModTime": false,
        "UnWrap": false,
        "UserDirMetadata": false,
        "UserInfo": false,
        "UserMetadata": false,
        "WrapFs": false,
        "WriteDirMetadata": false,
        "WriteDirSetModTime": false,
        "WriteMetadata": false,
        "WriteMimeType": false
    },
    "MetadataInfo": null
}

might try --inplace

Thanks for the suggestion. Gave it a try, didn't work I am afraid.

ok, for others in the forum, that did work.

rclone has much better support for sftp, is that an option?

Are you saying that you are able to reproduce the issue somehow and it worked for you by using --inplace?

I am afraid the host does not allow SFTP :frowning:

no, it was just a suggestion based another forum post.

ok

If I can provide more diagnostic information somehow that will help the situation I am all ears!

Thank you for your time.

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