Removing files from cache after transfer

What is the problem you are having with rclone?

I am trying to run rclone on a relatively small disk size VPS. I am running an *arr stack where i wish my client to download a file to my server, then transfer that to the rclone mount. All this is working perfectly fine, however, the file seems to be stuck in the vfs-cache forever. I wish the file to be removed from the VPS and cache ASAP, as I currently just have 30 Gb.

I am running the mount using the following settings:

Description=Vault rclone Service

ExecStart=/usr/bin/rclone mount remote:path/mnt/Media
--attr-timeout 1s
--buffer-size 64M
--dir-cache-time 60s
--log-level INFO
--log-file /var/rclone/logs/idrivemedia2.log
--vfs-cache-mode writes
--vfs-cache-max-age 1m
--vfs-read-chunk-size 256M
--vfs-read-chunk-size-limit 1g \

--umask 002
ExecStop=/bin/fusermount -uz /mnt/Media


I have tried with various cache duration times and max sizes yet nothing seems to help.

Looking at the logs i just get this repeating
2023/02/28 16:35:20 INFO : vfs cache: cleaned: objects 6 (was 6) in use 1, to upload 0, uploading 0, total size 7.805Gi (was 7.805Gi)

however, if i have 1 or 3 files in cache it still just says 1 in use but yet all 3 persists.

Run the command 'rclone version' and share the full output of the command. I am unsure how to tackle this

rclone v1.61.1

  • os/version: debian 11.6 (64 bit)
  • os/kernel: 5.10.0-21-amd64 (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.19.4
  • go/linking: static
  • go/tags: none

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

Idrive e2

hello and welcome to the forum,

that does not match the log snippet objects 6 (was 6) .

hard to know what is going on, without a debug log.

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