SFTP Failed to move: Update SetModTime failed

What is the problem you are having with rclone?

When I run rclone to copy files to a remote SFTP server and disable updating the file modification time after transfer, I get the error "Failed to copy: Update SetModTime failed: SetModTime stat failed: object not found".
I found similar problems in this thread:


as well as interesting tips:

What is your rclone version (output from rclone version)

rclone v1.53.1

  • os/arch: linux/amd64
  • go version: go1.15

Which OS you are using and how many bits (eg Windows 7, 64 bit)

CentOS Linux release 7.8.2003
x86_64

Which cloud storage system are you using? (eg Google Drive)

SFTP

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone move /src/ host:/dst -vvv --transfers 1 --checkers 1 --check-first --sftp-set-modtime=false --ignore-size

The rclone config contents with secrets removed.

[host]
type = sftp
host = xxxxx
user = user
port = 22
use_insecure_cipher = false
disable_hashcheck = true
key_file = ~/.ssh/id_rsa
set_modtime = false

A log from the command with the -vv flag

2020/10/21 20:22:24 DEBUG : rclone: Version "v1.53.1" starting with parameters ["rclone" "move" "/src/" "host:dst/" "-vvv" "--transfers" "1" "--checkers" "1" "--check-first" "--sftp-set-modtime=false" "--ignore-size"]
2020/10/21 20:22:24 DEBUG : Creating backend with remote "/src/"
2020/10/21 20:22:24 DEBUG : Using config file from "/home/user/.config/rclone/rclone.conf"
2020/10/21 20:22:24 DEBUG : Creating backend with remote "host:dst/"
2020/10/21 20:22:25 DEBUG : sftp://user@xxxxx:22/dst/: New connection 192.168.0.1:57650->xxxxx:22 to "SSH-2.0-SSHD"
2020/10/21 20:22:26 DEBUG : sftp://user@xxxxx:22/dst/: Using absolute root directory "/dst"
2020/10/21 20:22:26 INFO  : sftp://user@xxxxx:22/dst/: Running all checks before starting transfers
2020/10/21 20:22:27 DEBUG : sftp://user@xxxxx:22/dst/: Waiting for checks to finish
2020/10/21 20:22:27 INFO  : sftp://user@xxxxx:22/dst/: Checks finished, now starting transfers
2020/10/21 20:22:27 DEBUG : sftp://user@xxxxx:22/dst/: Waiting for transfers to finish
2020/10/21 20:22:28 ERROR : test.txt: Failed to copy: Update SetModTime failed: SetModTime stat failed: object not found
2020/10/21 20:22:28 ERROR : test.txt: Not deleting source as copy failed: Update SetModTime failed: SetModTime stat failed: object not found
2020/10/21 20:22:28 INFO  : There was nothing to transfer
2020/10/21 20:22:28 ERROR : Attempt 1/3 failed with 1 errors and: Update SetModTime failed: SetModTime stat failed: object not found
2020/10/21 20:22:28 INFO  : sftp://user@xxxxx:22/dst/: Running all checks before starting transfers
2020/10/21 20:22:29 DEBUG : sftp://user@xxxxx:22/dst/: Waiting for checks to finish
2020/10/21 20:22:29 INFO  : sftp://user@xxxxx:22/dst/: Checks finished, now starting transfers
2020/10/21 20:22:29 DEBUG : sftp://user@xxxxx:22/dst/: Waiting for transfers to finish
2020/10/21 20:22:30 ERROR : test.txt: Failed to copy: Update SetModTime failed: SetModTime stat failed: object not found
2020/10/21 20:22:30 ERROR : test.txt: Not deleting source as copy failed: Update SetModTime failed: SetModTime stat failed: object not found
2020/10/21 20:22:30 INFO  : There was nothing to transfer
2020/10/21 20:22:30 ERROR : Attempt 2/3 failed with 1 errors and: Update SetModTime failed: SetModTime stat failed: object not found
2020/10/21 20:22:30 INFO  : sftp://user@xxxxx:22/dst/: Running all checks before starting transfers
2020/10/21 20:22:30 DEBUG : sftp://user@xxxxx:22/dst/: Waiting for checks to finish
2020/10/21 20:22:30 INFO  : sftp://user@xxxxx:22/dst/: Checks finished, now starting transfers
2020/10/21 20:22:30 DEBUG : sftp://user@xxxxx:22/dst/: Waiting for transfers to finish
2020/10/21 20:22:31 ERROR : test.txt: Failed to copy: Update SetModTime failed: SetModTime stat failed: object not found
2020/10/21 20:22:31 ERROR : test.txt: Not deleting source as copy failed: Update SetModTime failed: SetModTime stat failed: object not found
2020/10/21 20:22:31 INFO  : There was nothing to transfer
2020/10/21 20:22:31 ERROR : Attempt 3/3 failed with 1 errors and: Update SetModTime failed: SetModTime stat failed: object not found
2020/10/21 20:22:31 INFO  :
Transferred:             6 / 6 Bytes, 100%, 2 Bytes/s, ETA 0s
Errors:                 1 (retrying may help)
Checks:                 3 / 3, 100%
Elapsed time:         6.8s

2020/10/21 20:22:31 DEBUG : 11 go routines active
2020/10/21 20:22:31 Failed to move: Update SetModTime failed: SetModTime stat failed: object not found

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