My RPI4 lost power in a storm, after restarting, I'm getting errors about not being able to find/access a file in the cache, even though it looks like the file was there right after the reboot (there being in the cache/vfs folder). But now it's gone.
My rpi4 (Fedora33-5.12.14-200.fc33.aarch64) running rclone:
rclone v1.55.1
- os/type: linux
- os/arch: arm64
- go/version: go1.16.3
- go/linking: static
Connecting to Googledrive
Errors:>
Jul 08 11:00:55 localhost rclone[1442]: ERROR : VirtualBox VMs/XpPlay/XpPlay.vdi: Failed to copy: Post "https://www.googleapis.com/upload/drive/v3/files?alt=json&fields=id%2Cname%2Csize%2Cmd5Checksum%2Ctrashed%2CexplicitlyTrashed%2CmodifiedTime%2CcreatedTime%2CmimeType%2Cparents%2CwebViewLink%2CshortcutDetails%2CexportLinks&supportsAllDrives=true&uploadType=resumable&upload_id=ADPycdtZnuHOc9CJ1S8rH8FuNGgUOmNO9i1QKGaWGgrUzqqCM52w9Da6fer7DY4ox3kvEcINTaWFYgPfrOxXu4raJQ": context canceled
Jul 08 11:00:55 localhost rclone[1442]: INFO : VirtualBox VMs/XpPlay/XpPlay.vdi: vfs cache: upload canceled
Jul 08 11:05:07 localhost rclone[2313]: ERROR : GenJ/LaptopElex/1480047384923.jpg: vfs cache: failed to reload item: reload: failed to add virtual dir entry: file does not exist
Jul 08 11:05:07 localhost rclone[2313]: INFO : GenJ/LaptopElex/1481033725014.jpg: vfs cache: queuing for upload in 5s
Jul 08 14:28:23 localhost rclone[5042]: ERROR : GenJ/RewardingFrequentBunting-mobile.mp4: WriteFileHandle: Can't open for write without O_TRUNC on existing file without --vfs-cache-mode >= writes
Jul 08 14:28:50 localhost rclone[5042]: ERROR : GenJ/JointDearestMyotis-mobile.mp4: WriteFileHandle: ReadAt: Can't read and write to file without --vfs-cache-mode >= minimal
Rclone commad:
/usr/bin/rclone mount privdrive:/ /sharedata/privdrive
--allow-other
--user-agent='Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.92 Safari/537.36'
--config /tools/rclone/rclone.conf
--use-mmap
--cache-dir /tools/rclone/pcache
--cache-db-path /tools/rclone/pcachedb
--uid=1001
--gid=1001
--dir-cache-time 168h
--poll-interval=1m
--timeout 1h
--umask 000
--file-perms 0777
--vfs-cache-mode writes
--drive-chunk-size=64M
--vfs-cache-max-size=10G
--tpslimit 10
--tpslimit-burst 10
--log-level INFO
Restarting a couple times seems to have cleared them up, but now I'm worried about corruption or how to best handle it in the future.