Hi.
tl;dr: Why is my rclone mount google drive not downloading and persisting everything, even when unmounting?
What is the problem you are having with rclone?
I expected, when using rclone mount
, that the command will start downloading everything to local, until completed.
Is there an command or flag that I am missing that would allow to
- Keep Directory intact after unmounting/remounting(restart) AND
- Download everything at the beginnig, before going into each directory - I have a feeling that rclone starts downloading files then, when I jump to specific directory.
My google drive is Approx 20GB and I have no Problem having everything cached.
As you see, I am using the flags
--vfs-cache-mode full \
--vfs-cache-max-age 7d \
but, after reboot, it just takes a while when I browse the directories before files start appearing... what am I missing?
Run the command 'rclone version' and share the full output of the command.
rclone version
rclone v1.66.0
- os/version: arch 24.0.3 (64 bit)
- os/kernel: 6.9.5-1-MANJARO (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.22.1
- go/linking: dynamic
- 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
)
[Unit]
Description=AutoMount for Google Drive
[Service]
Type=simple
User=xxx
Group=xxx
ExecStart=rclone mount GoogleDrive: /home/xxx/GoogleDrive/ \
--config /home/xxx/.config/rclone/rclone.conf \
--vfs-cache-mode full \
--vfs-cache-max-age 7d \
--log-level ERROR \
--log-file /home/xxx/.config/rclone/rclone.log
ExecStop=fusermount -u /home/xxx/GoogleDrive/
[Install]
WantedBy=multi-user.target
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
rclone config redacted
[GoogleDrive]
type = drive
client_id = XXX
client_secret = XXX
scope = drive
token = XXX
team_drive =
### Double check the config for sensitive info before posting publicly
A log from the command that you were trying to run with the -vv
flag
(i've pasted just some of the errors i've had at the beginning, this does NOT represent actual current status, everything works fine, when on DEBUG, log is just full of downloading file X, Y, Z....
2024/07/02 17:48:00 INFO : .Trash-1000/expunged/3197013784: vfs cache: removed cache file as file deleted
2024/07/02 17:48:00 DEBUG : .Trash-1000/expunged/3197013784: vfs cache: removed metadata from cache as file deleted
2024/07/02 17:48:01 DEBUG : .Trash-1000/expunged: Added virtual directory entry vDel: "3197013784"
2024/07/02 17:48:01 DEBUG : .Trash-1000/expunged/3197013784: >Remove: err=<nil>
2024/07/02 17:48:01 DEBUG : .Trash-1000/expunged/: >Remove: err=<nil>
2024/07/02 17:48:20 INFO : Signal received: terminated
2024/07/02 17:48:20 DEBUG : vfs cache: cleaner exiting
2024/07/02 17:48:20 ERROR : /home/xxx/GoogleDrive/: Failed to unmount: exit status 1: fusermount3: failed to unmount /home/xxx/GoogleDrive: Device or resource busy
2024/07/02 17:48:20 INFO : Exiting...
2024/07/02 17:48:20 Fatal error: failed to mount FUSE fs: directory already mounted, use --allow-non-empty to mount anyway: /home/xxx/GoogleDrive