Cannot purge --vfs-cach-mode writes

Version:
rclone v1.67.0
- os/version: ubuntu 24.04 (64 bit)
- os/kernel: 6.8.0-45-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.22.4
- go/linking: static
- go/tags: none

I inadvertently started a huge copy to an rclone mounted google drive. After cancelling it and deleting the files on google drive, mounting the drive again starts copying the files again, presumably from cache since renaming the source directory does not help. I have tried to purge the cache using:

rclone mount --cache-db-purge -v --vfs-cache-mode writes gdrive:Ubuntu /home/steve/G-Drive

but the problem persists. Using -v I get output such as:

2024/10/15 20:03:35 INFO  : Backup/Phone/DCIM/Camera Dump 1/20201018_140331.jpg: vfs cache: queuing for upload in 5s
2024/10/15 20:03:35 ERROR : Backup/Phone/DCIM/Camera Dump 1/20201018_140331.jpg: vfs cache: failed to reload item: reload: failed to add virtual dir entry: file does not exist
and such as:
2024/10/15 19:40:51 INFO  : Backup/Phone/DCIM/Camera Dump 1/20201018_133424.jpg: vfs cache: upload succeeded try #1
2024/10/15 19:40:51 INFO  : Backup/Phone/DCIM/Camera Dump 1/20201102_145116.jpg: vfs cache: queuing for upload in 5s
2024/10/15 19:40:51 INFO  : Backup/Phone/DCIM/Camera Dump 1/20201018_133245.jpg: Copied (new)
2024/10/15 19:40:51 INFO  : Backup/Phone/DCIM/Camera Dump 1/20201018_133245.jpg: vfs cache: upload succeeded try #1
2024/10/15 19:40:51 INFO  : Backup/Phone/DCIM/Camera Dump 1/20201102_145119.jpg: vfs cache: queuing for upload in 5s
2024/10/15 19:40:52 INFO  : Backup/Phone/DCIM/Camera Dump 1/20201102_145122.jpg: vfs cache: queuing for upload in 5s
2024/10/15 19:40:52 INFO  : Backup/Phone/DCIM/Camera Dump 1/20201018_133431.jpg: Copied (new)

How can I fully purge the cache. i have also tried:

rclone purge -v   gdrive:Ubuntu/Backup/Phone

this moves the directory to the google drive bin, but if I then try to mount the drive I have exactly the same problem.

Redacted config is:

[gdrive]
type = drive
client_id = XXX
client_secret = XXX
scope = drive
token = XXX
team_drive = 

[onedrive]
type = onedrive
token = XXX
drive_id = XXX
drive_type = personal

Start of log with -vv flag (I then cancelled the command as it would run for hours putting large amounts of data on google drive:

2024/10/15 20:11:25 DEBUG : rclone: Version "v1.67.0" starting with parameters ["rclone" "mount" "--cache-db-purge" "-vv" "--vfs-cache-mode" "writes" "gdrive:Ubuntu" "/home/steve/G-Drive"]
2024/10/15 20:11:25 DEBUG : Creating backend with remote "gdrive:Ubuntu"
2024/10/15 20:11:25 DEBUG : Using config file from "/home/steve/.config/rclone/rclone.conf"
2024/10/15 20:11:25 DEBUG : Google drive root 'Ubuntu': 'root_folder_id = 0AKqYl2cUctYhUk9PVA' - save this in the config to speed up startup
2024/10/15 20:11:26 DEBUG : vfs cache: root is "/home/steve/.cache/rclone"
2024/10/15 20:11:26 DEBUG : vfs cache: data root is "/home/steve/.cache/rclone/vfs/gdrive/Ubuntu"
2024/10/15 20:11:26 DEBUG : vfs cache: metadata root is "/home/steve/.cache/rclone/vfsMeta/gdrive/Ubuntu"
2024/10/15 20:11:26 DEBUG : Creating backend with remote "/home/steve/.cache/rclone/vfs/gdrive/Ubuntu"
2024/10/15 20:11:26 DEBUG : Creating backend with remote "/home/steve/.cache/rclone/vfsMeta/gdrive/Ubuntu"
2024/10/15 20:11:27 DEBUG : Backup/Phone/DCIM/Camera Dump 1/20201018_134235.jpg: vfs cache: checking remote fingerprint "3717748,2020-10-18 12:42:36 +0000 UTC,c9942e9db54121d9fb9dce15a1c77979" against cached fingerprint ""
2024/10/15 20:11:27 DEBUG : Backup/Phone/DCIM/Camera Dump 1/20201018_134235.jpg: vfs cache: truncate to size=3717748 (not needed as size correct)
2024/10/15 20:11:27 DEBUG : vfs cache: looking for range={Pos:0 Size:3717748} in [{Pos:0 Size:3717748}] - present true
2024/10/15 20:11:27 DEBUG : Backup/Phone/DCIM/Camera Dump 1/20201018_134235.jpg: vfs cache: setting modification time to 2020-10-18 13:42:36 +0100 BST
2024/10/15 20:11:27 INFO  : Backup/Phone/DCIM/Camera Dump 1/20201018_134235.jpg: vfs cache: queuing for upload in 5s
2024/10/15 20:11:28 DEBUG : Backup/Phone/DCIM/Camera Dump 1: Added virtual directory entry vAddFile: "20201018_134235.jpg"
2024/10/15 20:11:28 DEBUG : Backup/Phone/DCIM/Camera Dump 1/20201018_134248.jpg: vfs cache: checking remote fingerprint "3904756,2020-10-18 12:42:48 +0000 UTC,25ac2c92febbdb27a2d73c4edefd70ec" against cached fingerprint ""
2024/10/15 20:11:28 DEBUG : Backup/Phone/DCIM/Camera Dump 1/20201018_134248.jpg: vfs cache: truncate to size=3904756 (not needed as size correct)
2024/10/15 20:11:28 DEBUG : vfs cache: looking for range={Pos:0 Size:3904756} in [{Pos:0 Size:3904756}] - present true
2024/10/15 20:11:28 DEBUG : Backup/Phone/DCIM/Camera Dump 1/20201018_134248.jpg: vfs cache: setting modification time to 2020-10-18 13:42:48 +0100 BST
2024/10/15 20:11:28 INFO  : Backup/Phone/DCIM/Camera Dump 1/20201018_134248.jpg: vfs cache: queuing for upload in 5s
2024/10/15 20:11:28 DEBUG : Backup/Phone/DCIM/Camera Dump 1: Added virtual directory entry vAddFile: "20201018_134248.jpg"

Many thanks in advance.

welcome to the forum,

that is for the cache remote, which you are not using, and was deprecated years ago.

  1. kill the mount
  2. delete the files in the local cache on your local file system, same as you would delete any local file.

Many thanks, that fixed it.

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