Seeking in a Gdrive mount hangs


My setup is an encrypted gdrive mount.
Moving entire files back and forth between the mount and the local disk works well and quickly.

However, seeking within a remote file quite often causes the entire mount to hang for an extended period of time (even unrelated uploads to the remote) and usually simply fails. What reason could there be for that?

My mount command looks like this:

/usr/bin/rclone mount \
        --config=/home/user/.config/rclone/rclone.conf \
        --allow-other \
        --dir-cache-time 5m \
        --buffer-size 256M \
        --drive-chunk-size 32M \
        --vfs-read-chunk-size 64M \
        --vfs-read-chunk-size-limit off \
        --vfs-cache-mode writes gdrive_encrypted:/ /home/media/gdrive/

I’d be happy to provide other debug info.

How are you testing that? If you’d run the test in debug log, that would be a good starting point.

dir-cache-time of 5 minutes is really low too. Any reason why so low (shouldn’t cause an issue other than extra API hits).

Thanks, I turned on debug logging and turns out I was running into API limits on the default credentials.
I created some, and now the situation is much improved.

Yeah, unfortunately, the default creds are over used so you’ll hit rate limiting.

It’s now working ok since you created your own API key?

Yes, no issue with seeking.
I guess what was happening before was that sometimes one of the retries would work and the seek would be successful, but other times it would fail.

1 Like