What is the problem you are having with rclone?
Rclone touch fails with Dropbox remote when file already exists. Tested only in a Dropbox remote as it is the only one I have configured.
The error looks similar to a previous bug fixed a year ago in v1.58.0: Rclone “touch” command fails since 1.57.0 · Issue #5952 · rclone/rclone · GitHub
I am using v1.60.0-DEV so that bug should be fixed, but I'm new to rclone, maybe I'm missing something.
Thanks in advance to the brave rclone supporters!
Run the command 'rclone version' and share the full output of the command.
rclone v1.60.0-DEV
- os/version: ubuntu 20.04 (64 bit)
- os/kernel: 5.18.10-76051810-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.19
- go/linking: dynamic
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
Dropbox
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone touch dropbox:tmp/examplefile.demo -vv
The rclone config contents with secrets removed.
[dropbox]
type = dropbox
token = {"access_token":"<secret-here>","token_type":"bearer","refresh_token":"<secret-here>","expiry":"2023-03-01T13:47:10.382308335-06:00"}
My rclone config is password protected, although that's probably not relevant for this issue.
A log from the command with the -vv
flag
<7>DEBUG : rclone: Version "v1.60.0-DEV" starting with parameters ["/home/alfredo/workspace/rclone_wrapper/gogobox/rclone/rclone" "touch" "dropbox:tmp/examplefile.demo" "-vv"]
<7>DEBUG : rclone: systemd logging support activated
<7>DEBUG : Creating backend with remote "dropbox:tmp/"
<7>DEBUG : Using config file from "/home/alfredo/.config/rclone/rclone.conf"
<7>DEBUG : fs cache: renaming cache item "dropbox:tmp/" to be canonical "dropbox:tmp"
<7>DEBUG : Touch time 2023-03-01 09:48:28.864970714 -0600 CST m=+7.069468593
<7>DEBUG : Dropbox root 'tmp': Touching "examplefile.demo"
<3>ERROR : Attempt 1/3 failed with 1 errors and: failed to touch: can't set modified time without deleting existing object
<7>DEBUG : Touch time 2023-03-01 09:48:29.024757814 -0600 CST m=+7.229255709
<7>DEBUG : Dropbox root 'tmp': Touching "examplefile.demo"
<3>ERROR : Attempt 2/3 failed with 1 errors and: failed to touch: can't set modified time without deleting existing object
<7>DEBUG : Touch time 2023-03-01 09:48:29.229501173 -0600 CST m=+7.433999078
<7>DEBUG : Dropbox root 'tmp': Touching "examplefile.demo"
<3>ERROR : Attempt 3/3 failed with 1 errors and: failed to touch: can't set modified time without deleting existing object
<7>DEBUG : 6 go routines active
<6>INFO : Dropbox root 'tmp': Commiting uploads - please wait...
Failed to touch: failed to touch: can't set modified time without deleting existing object