Mount options for Cache

Basically I am wanting to mnt with the cache feature for Plex. I want sonarr/radarr to write locally (but be accessable) and for it too upload every 24h or when 200GB is full.

At the minute it seems to be writing directly to the remote. Importing 10 episodes take 15 minutes instead of taking 30 seconds to move it to a temp upload folder.

I’m not 100% sure this can me accomplished but I have attached my config files anyway.

Thank you in advance

rclone mount gmedia: /mnt/media \
   --allow-other \
   --allow-non-empty \
   --dir-cache-time=1h \
   --cache-chunk-size=10M \
   --cache-info-age=72h \
   --cache-workers=3 \
   --cache-tmp-upload-path /mnt/uploadcache \
   --cache-tmp-wait-time 24h \
   --write-back-cache
   --syslog \
   --umask 002 \
   --rc \
   --log-level INFO

[GD]
type = drive
client_id = **
client_secret = ****
scope = drive
root_folder_id = 
service_account_file = 

[gcache]
type = cache
remote = GD:crypt
plex_url = ****
plex_username = ****
plex_password = ****
chunk_size = 20M
info_age = 24h
chunk_total_size = 200G
plex_token = ****

[gmedia]
type = crypt
remote = gcache:
filename_encryption = standard
directory_name_encryption = true
password = ****
password2 = ****

The way fuse works it that you are tricking the system to write to the cache-tmp-upload path. It does that by currently copying the file from one ‘filesystem’ to another ‘filesystem’ so it cannot be hard linked since you are crossing file systems. I’d guess the time is making a copy and you are used to a quick hard link?

You can share the logs and we should see the upload in there if it’s moving to your GD.

I have always used hardlinks yes. I didn’t realise cache-tmp-upload-path was another filesystem.

I will mount everything and check logs. Noob question but where are they stored?

The mount has it going to syslog with the "–syslog ".

You can remove that and use --log-file /home/someuser/rclone.log or wherever might be easier.

2018/08/02 01:17:42 INFO : gcache: Cache DB path: /.cache/rclone/cache-backend/gcache.db
2018/08/02 01:17:42 INFO : gcache: Cache chunk path: /.cache/rclone/cache-backend/gcache
2018/08/02 01:17:42 INFO : gcache: Chunk Memory: true
2018/08/02 01:17:42 INFO : gcache: Chunk Size: 10M
2018/08/02 01:17:42 INFO : gcache: Chunk Total Size: 50G
2018/08/02 01:17:42 INFO : gcache: Chunk Clean Interval: 1m0s
2018/08/02 01:17:42 INFO : gcache: Workers: 4
2018/08/02 01:17:42 INFO : gcache: File Age: 72h0m0s
2018/08/02 01:17:42 INFO : gcache: Upload Temp Rest Time: 20m0s
2018/08/02 01:17:42 INFO : gcache: Upload Temp FS: /mnt/uploadcache
2018/08/02 01:17:42 INFO : gcache: Cache DB path: /.cache/rclone/cache-backend/gcache.db
2018/08/02 01:17:42 INFO : gcache: Cache chunk path: /.cache/rclone/cache-backend/gcache
2018/08/02 01:17:42 INFO : gcache: Chunk Memory: true
2018/08/02 01:17:42 INFO : gcache: Chunk Size: 10M
2018/08/02 01:17:42 INFO : gcache: Chunk Total Size: 50G
2018/08/02 01:17:42 INFO : gcache: Chunk Clean Interval: 1m0s
2018/08/02 01:17:42 INFO : gcache: Workers: 4
2018/08/02 01:17:42 INFO : gcache: File Age: 72h0m0s
2018/08/02 01:17:42 INFO : gcache: Upload Temp Rest Time: 20m0s
2018/08/02 01:17:42 INFO : gcache: Upload Temp FS: /mnt/uploadcache
2018/08/02 01:18:20 INFO : rrtoh93ume8urk7b0tq0nssaag/fubl0tt0k4q8f4upv3r1mc8p03ft3ks1q96cgvg0vht0b3tdspr0: mkdir: cache expired
2018/08/02 01:18:22 ERROR : rrtoh93ume8urk7b0tq0nssaag/fubl0tt0k4q8f4upv3r1mc8p03ft3ks1q96cgvg0vht0b3tdspr0/bkqtrjubao6kch6hd7spp9k8a0/olcc75211f58on332ogu15htjo2136bfueokt4qsb6fmeid1fc0gm0vs7bon0vd37q0i9q6ht0uru: error refreshing object in : in cache fs Google drive root ‘crypt’: object not found
2018/08/02 01:18:24 ERROR : tv/Comedy Central Roasts/Season.1/Comedy-Central-Roasts-S01E16-WEBDL-720p.mkv.partial~: WriteFileHandle.Write: can’t seek in file without --vfs-cache-mode >= writes
2018/08/02 01:18:24 ERROR : tv/Comedy Central Roasts/Season.1/Comedy-Central-Roasts-S01E16-WEBDL-720p.mkv.partial~: WriteFileHandle.Write: can’t seek in file without --vfs-cache-mode >= writes
2018/08/02 01:18:24 ERROR : tv/Comedy Central Roasts/Season.1/Comedy-Central-Roasts-S01E16-WEBDL-720p.mkv.partial~: WriteFileHandle.Write: can’t seek in file without --vfs-cache-mode >= writes
2018/08/02 01:18:24 ERROR : tv/Comedy Central Roasts/Season.1/Comedy-Central-Roasts-S01E16-WEBDL-720p.mkv.partial~: WriteFileHandle.Write: can’t seek in file without --vfs-cache-mode >= writes
2018/08/02 01:18:24 ERROR : tv/Comedy Central Roasts/Season.1/Comedy-Central-Roasts-S01E16-WEBDL-720p.mkv.partial~: WriteFileHandle.Write: can’t seek in file without --vfs-cache-mode >= writes
2018/08/02 01:18:24 ERROR : tv/Comedy Central Roasts/Season.1/Comedy-Central-Roasts-S01E16-WEBDL-720p.mkv.partial~: WriteFileHandle.Write: can’t seek in file without --vfs-cache-mode >= writes