New to all this. Confused on how to use cache properly

What is the problem you are having with rclone?

I'm trying to use rclone with Plex, and I hit my daily download quota within a couple hours. It looks like requests are being made to the google API every few seconds. I set up a cache for the remote but I don't know how to properly use it. Do I mount both the remote and cache? Also when I run
rclone lsd "my-remote-cache"
I get the errors
2021/02/20 23:46:40 ERROR : : error listing: directory not found
2021/02/20 23:46:40 Failed to lsd with 2 errors: last error was: directory not found
rclone v1.54.0

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

Ubuntu 18.04 64 Bit

Google Drive

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

rclone lsd gDriveCache:

The rclone config contents with secrets removed.

type = drive
client_id =
client_secret = ************
token = {"access_token":"ya29.A0AfH6SMCdfE6SDPijymb9ZS1KZSnzMIPQvz7H0EfsRQhxCuPNpTunIorB_WfwTegnC-5otF-K_KYxdqI-JGgVxU4$

type = cache
remote = gDrive0:/root/gDrive
plex_username = ****************
plex_password = ****************
chunk_size = 5M
info_age = 1d
chunk_total_size = 10G

A log from the command with the -vv flag

2021/02/20 23:52:22 DEBUG : rclone: Version "v1.54.0" starting with parameters ["rclone" "lsd" "gDriveCache" "-vv"]
2021/02/20 23:52:22 DEBUG : Creating backend with remote "gDriveCache"
2021/02/20 23:52:22 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2021/02/20 23:52:22 DEBUG : fs cache: renaming cache item "gDriveCache" to be canonical "/root/gDriveCache"
2021/02/20 23:52:22 DEBUG : 2 go routines active

hello and welcome to the forum,

no need to be confused.
no need to use the cache, it has been depreciated.

no worries, for a cache,

as for the quota, this might help

also, please edit that last post, redact the plex username and password...

1 Like

Whoops, edited out password and user.

So I can just set --dir-cache-time and it will default to 5 min?

So an example way to mount the rclone would be

rclone mount gDrive0: /root/gDrive --allow-other ----dir-cache-time

That should work right?

if you want to stream media from gdrive, all you need is
rclone mount gDrive0: /root/gDrive --allow-other
try that and if need be, we can tweak it.

if you want something more complex, this is the goto guide at the forum for mount+gdrive+plex, you can get the rclone settings from that.

Oh alright! I suppose it was the other issue causing the download quota to get reached? constantly checking for the thumbnails?

yes, for plex, follow the advice for from that link i shared.

1 Like

Thank you so much!