Invalid seek position

What is the problem you are having with rclone?

After a power outage, I'm getting the following error

rclone[7610]: CP6386Wo6UQzVpj4euI3u3JB/Ihthfa0m,tV1fu54F1L2dEBY/LxKMc-8zJnAUr8M8aYjD7WdOyKtXlSh5BqzMkTAEi5u6y-/ad686LSdYV-FCwE7JuUTLlg2Rb7iMIAlqbMhhrB-Jjs0SFxW6Smlb1mNcCecrv1eDWZ5jlOO92BNbjtaDQdqgte7: vfs cache: restart download failed: failed to start downloader: failed to open downloader: vfs reader: failed to open source file: invalid seek position

What is your rclone version (output from rclone version)

rclone v1.56.2

  • os/version: ubuntu 18.04 (64 bit)
  • os/kernel: 4.15.0-159-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.16.8
  • go/linking: static
  • go/tags: none

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)

rclone mount gsuite: /data/gsuite.encrypt --config /home/admin/.config/rclone/rclone.conf --rc --allow-other --log-level ERROR --syslog --umask 022 --allow-non-empty --fuse-flag sync_read --tpslimit 10 --tpslimit-burst 10 --dir-cache-time=192h --attr-timeout=1s --vfs-cache-max-age=192h --vfs-cache-max-size=240G --vfs-cache-mode=full

The rclone config contents with secrets removed.

cat .config/rclone/rclone.conf
[gsuite]
type = drive
client_id = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com
client_secret = xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
token = {"access_token":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","token_type":"Bearer","refresh_token":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","expiry":"2021-10-13T14:41:45.911314299-04:00"}
root_folder_id = 0AA6XnWU0CIzhUk9PVA

A log from the command with the -vv flag

Oct 13 13:55:46 admin systemd[1]: Starting rclone Gsuite FUSE mount...
Oct 13 13:55:47 admin systemd[1]: Started rclone Gsuite FUSE mount.
Oct 13 13:55:47 admin rclone[23446]: 2021/10/13 13:55:47 DEBUG : Setting --config "/home/admin/.config/rclone/rclone.conf" from environment variable RCLONE_CONFIG="/home/admin/.config/rclone/rclone.conf"
Oct 13 13:55:47 admin rclone[23446]: Starting transaction limiter: max 10 transactions/s with burst 10
Oct 13 13:55:47 admin rclone[23446]: rclone: Version "v1.56.2" starting with parameters ["/home/admin/bin/rclone" "mount" "gsuite:" "/data/gsuite.encrypt" "--config" "/home/admin/.config/rclone/rclone.conf" "-vv" "--rc" "--allow-other" "--syslog" "--umask" "022" "--allow-non-empty" "--fuse-flag" "sync_read" "--tpslimit" "10" "--tpslimit-burst" "10" "--dir-cache-time=192h" "--attr-timeout=1s" "--vfs-cache-max-age=192h" "--vfs-cache-max-size=240G" "--vfs-cache-mode=full"]
Oct 13 13:55:47 admin rclone[23446]: Serving remote control on http://localhost:5572/
Oct 13 13:55:47 admin rclone[23446]: Creating backend with remote "gsuite:"
Oct 13 13:55:47 admin rclone[23446]: Using config file from "/home/admin/.config/rclone/rclone.conf"
Oct 13 13:55:47 admin rclone[23446]: vfs cache: root is "/home/admin/.cache/rclone/vfs/gsuite"
Oct 13 13:55:47 admin rclone[23446]: vfs cache: metadata root is "/home/admin/.cache/rclone/vfs/gsuite"
Oct 13 13:55:47 admin rclone[23446]: Creating backend with remote "/home/admin/.cache/rclone/vfs/gsuite"
Oct 13 13:55:47 admin rclone[23446]: Creating backend with remote "/home/admin/.cache/rclone/vfsMeta/gsuite"
Oct 13 13:55:49 admin rclone[23446]: CP6386Wo6UQzVpj4euI3u3JB/Ihthfa0m,tV1fu54F1L2dEBY/LxKMc-8zJnAUr8M8aYjD7WdOyKtXlSh5BqzMkTAEi5u6y-/ad686LSdYV-FCwE7JuUTLlg2Rb7iMIAlqbMhhrB-Jjs0SFxW6Smlb1mNcCecrv1eDWZ5jlOO92BNbjtaDQdqgte7: vfs cache: checking remote fingerprint "5129,2021-09-18 06:24:35.638 +0000 UTC,80b0875c4f903c3cab2cc86bc7a9171e" against cached fingerprint "5129,2021-09-18 06:24:35.638 +0000 UTC,80b0875c4f903c3cab2cc86bc7a9171e"
Oct 13 13:55:49 admin rclone[23446]: CP6386Wo6UQzVpj4euI3u3JB/Ihthfa0m,tV1fu54F1L2dEBY/LxKMc-8zJnAUr8M8aYjD7WdOyKtXlSh5BqzMkTAEi5u6y-/ad686LSdYV-FCwE7JuUTLlg2Rb7iMIAlqbMhhrB-Jjs0SFxW6Smlb1mNcCecrv1eDWZ5jlOO92BNbjtaDQdqgte7: vfs cache: truncate to size=7336
Oct 13 13:55:49 admin rclone[23446]: vfs cache: looking for range={Pos:0 Size:7336} in [] - present false
Oct 13 13:55:49 admin rclone[23446]: CP6386Wo6UQzVpj4euI3u3JB/Ihthfa0m,tV1fu54F1L2dEBY/LxKMc-8zJnAUr8M8aYjD7WdOyKtXlSh5BqzMkTAEi5u6y-/ad686LSdYV-FCwE7JuUTLlg2Rb7iMIAlqbMhhrB-Jjs0SFxW6Smlb1mNcCecrv1eDWZ5jlOO92BNbjtaDQdqgte7: ChunkedReader.RangeSeek from -1 to 0 length -1
Oct 13 13:55:49 admin rclone[23446]: CP6386Wo6UQzVpj4euI3u3JB/Ihthfa0m,tV1fu54F1L2dEBY/LxKMc-8zJnAUr8M8aYjD7WdOyKtXlSh5BqzMkTAEi5u6y-/ad686LSdYV-FCwE7JuUTLlg2Rb7iMIAlqbMhhrB-Jjs0SFxW6Smlb1mNcCecrv1eDWZ5jlOO92BNbjtaDQdqgte7: ChunkedReader.Read at -1 length 32768 chunkOffset 0 chunkSize 134217728
Oct 13 13:55:49 admin rclone[23446]: CP6386Wo6UQzVpj4euI3u3JB/Ihthfa0m,tV1fu54F1L2dEBY/LxKMc-8zJnAUr8M8aYjD7WdOyKtXlSh5BqzMkTAEi5u6y-/ad686LSdYV-FCwE7JuUTLlg2Rb7iMIAlqbMhhrB-Jjs0SFxW6Smlb1mNcCecrv1eDWZ5jlOO92BNbjtaDQdqgte7: ChunkedReader.openRange at 0 length 134217728
Oct 13 13:55:49 admin rclone[23446]: CP6386Wo6UQzVpj4euI3u3JB/Ihthfa0m,tV1fu54F1L2dEBY/LxKMc-8zJnAUr8M8aYjD7WdOyKtXlSh5BqzMkTAEi5u6y-/ad686LSdYV-FCwE7JuUTLlg2Rb7iMIAlqbMhhrB-Jjs0SFxW6Smlb1mNcCecrv1eDWZ5jlOO92BNbjtaDQdqgte7: ChunkedReader.RangeSeek from -1 to 5129 length -1
Oct 13 13:55:49 admin rclone[23446]: CP6386Wo6UQzVpj4euI3u3JB/Ihthfa0m,tV1fu54F1L2dEBY/LxKMc-8zJnAUr8M8aYjD7WdOyKtXlSh5BqzMkTAEi5u6y-/ad686LSdYV-FCwE7JuUTLlg2Rb7iMIAlqbMhhrB-Jjs0SFxW6Smlb1mNcCecrv1eDWZ5jlOO92BNbjtaDQdqgte7: vfs cache: downloader: error count now 1: failed to open downloader: vfs reader: failed to open source file: invalid seek position
Oct 13 13:55:49 admin rclone[23446]: CP6386Wo6UQzVpj4euI3u3JB/Ihthfa0m,tV1fu54F1L2dEBY/LxKMc-8zJnAUr8M8aYjD7WdOyKtXlSh5BqzMkTAEi5u6y-/ad686LSdYV-FCwE7JuUTLlg2Rb7iMIAlqbMhhrB-Jjs0SFxW6Smlb1mNcCecrv1eDWZ5jlOO92BNbjtaDQdqgte7: vfs cache: restart download failed: failed to start downloader: failed to open downloader: vfs reader: failed to open source file: invalid seek position

You may want to fsck the file system in question and if that doesn't find anything, just delete the cache file that's complaining.

Should I just be manually removing from the cache or using rclone delete from the remote drive? The files in question are only a couple hundred KB.

If it was me and I was sure I didn't need anything from the cache (all my stuff is uploaded outside of the mount), I'd stop rclone, remove the cache folder, start it up again and test.

1 Like

That is absolutely my case, and that worked great. Thanks for the help.