Hi everyone, Google Drive encrypted mount has been working perfectly for months, but since yesterday I am getting the following error message when I upload any file via SFTP directly to the GDrive encrypted mount:
failed to find cache file: object not found
RWFileHandle.Flush error: failed to find cache file: object not found
These are the options I use for the mount (it's mounted via systemd):
EDIT1: The file is seemingly uploaded to the server, but then it disappears from the server and is never uploaded to GDrive.
EDIT2: The mount works fine for reading.
What is your rclone version (output from rclone version)
1.50.0
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Ubuntu 18.04 LTS
Which cloud storage system are you using? (eg Google Drive)
Google Drive
The command you were trying to run (eg rclone copy /tmp remote:tmp)
I am uploading via SFTP from my home computer to the Ubuntu server. The upload's destination directory is the directory where the GDrive encrypted remote is mounted on that server.
So is it basically getting rid of the file from the vfs cache before it has a chance to upload it to GDrive?
I'm sure it was working fine in the past with the same setting (but of course I could be wrong).
Does the --vfs-cache-max-age counter start counting down from when the file starts being uploaded from my computer to the server, or from when the upload ends?
perhaps this time, there is something different about the file(s) you are trying to upload.
if there was one file we know was causing the problem that would help with testing.
Unfortunately it's the same kind of files (videos) as always, and it keeps happening with multiple ones, not just one.
I can set the --vfs-cache-max-age to 1hr and try, but I am concerned this might clog up my drive space, if e.g. I upload more data in an hour than what can fit on the drive.
Alternatively is there a way to set vfs cache to work only when reading from a remote but not when writing to it? The vfs cache setting helps with playing back the videos but I assume when uploading to a remote mount it can just upload straight to the remote without having to cache the file first.
not sure that the server is needed to be a middle man to a rclone mount.
just have the home computer upload to the remote, direct or using mount, and bypass the server.
I think when I was setting it all up in the beginning I had some problems pausing/resuming media, and these were fixed when I included the vfs cache option, but I'll try again without it and see how it goes.
Can't use the GDrive remote directly as it is encrypted with rclone so have to use it through the mount.
Just for the sake of completeness,
rclone move
works perfectly fine for moving files from the server to the remote, so must be something to do with the cache, though not sure what's changed.