# SFTP Failed to move: Update SetModTime failed

**URL:** <https://forum.rclone.org/t/sftp-failed-to-move-update-setmodtime-failed/19908>\
**Category:** Help and Support\
**Created:** [October 21, 2020, 5:29pm UTC](https://forum.rclone.org/t/sftp-failed-to-move-update-setmodtime-failed/19908 "2020-10-21T17:29:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lyutech](https://forum.rclone.org/letter_avatar_proxy/v4/letter/l/58f4c7/32.png) [@lyutech](https://forum.rclone.org/u/lyutech)\
**Post date:** [October 21, 2020, 5:29pm UTC](https://forum.rclone.org/t/sftp-failed-to-move-update-setmodtime-failed/19908/1 "2020-10-21T17:29:00Z")

</div>

#### 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:

> [@SFTP and set\_modtime=false Error](https://forum.rclone.org/t/sftp-and-set-modtime-false-error/16362):
>
> What is the problem you are having with rclone? When I run rclone to copy files to an SFTP remote, and disable the post-transfer file modification time update, I get a "corrupted on transfer" error. A work-around is to use the --ignore-size flag. Just wondering if this is by design, or if rclone should be doing a post-transfer "stat" on the remote file to capture size at least? What is your rclone version (output from rclone version) rclone v1.51.0 os/arch: linux/amd64 go version: go1.13.7 W…

as well as interesting tips:

> [@Sftp sync breaks after a few files](https://forum.rclone.org/t/sftp-sync-breaks-after-a-few-files/17629):
>
> What is the problem you are having with rclone? I'm trying to sync a directory via sftp to a remote server (wpengine), after the first few files I receive error messages that the connection was closed. wpengine support does not see anything unusual on their server. I ran tcpdump during the sync and see that for each file a new ssh connection is created. -) Is that a know issue? -) Is it possible to use the same connection for the whole sync? What is your rclone version (output from rclone ver…

#### 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`)

```auto
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.

```auto
[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

```auto
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

```

---

<div class="post-metadata">

**Author:** ![system](https://forum.rclone.org/uploads/default/original/2X/3/39ad3235f6ffec76ccd0c81616bd55697b4c300d.png) [@system](https://forum.rclone.org/u/system)\
**Post date:** [January 11, 2021, 8:35am UTC](https://forum.rclone.org/t/sftp-failed-to-move-update-setmodtime-failed/19908/4 "2021-01-11T08:35:00Z")

</div>

Closed on January 11, 2021, 8:35am UTC

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