What is the problem you are having with rclone?
After a while, the token expires, and I'm forced to use rclone reconnect to get a new token and be able to use RCLone again.
Run the command 'rclone version' and share the full output of the command.
rclone v1.69.1
- os/version: arch (64 bit)
- os/kernel: 6.14.7-arch2-1 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.24.0
- 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
)
As a system unit:
[Unit]
Description=rclone for gdrive_mount
AssertPathIsDirectory=/home/adam/Documents/GDRIVE-ADAM
After=networking.service
[Service]
Type=simple
ExecStart=rclone mount --config=/home/adam/.config/rclone/rclone.conf "GDrive Adam:" /home/adam/Documents/GDRIVE-ADAM --allow-other --cache-db-purge --fast-list --poll-interval 10m -vv
ExecStop=/bin/fusermount -u /home/adam/Documents/GDRIVE-ADAM
Restart=always
RestartSec=10
[Install]
WantedBy=default.target
So:
rclone mount --config=/home/adam/.config/rclone/rclone.conf "GDrive Adam:" /home/adam/Documents/GDRIVE-ADAM --allow-other --cache-db-purge --fast-list --poll-interval 10m -vv
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
[GDrive Adam]
type = drive
client_id = XXX
client_secret = XXX
scope = drive
token = XXX
team_drive =
A log from the command that you were trying to run with the -vv
flag
When I run it while the token expired, I get this:
2025/05/08 13:20:47 DEBUG : rclone: Version "v1.69.1" starting with parameters ["rclone" "mount" "--config=/home/adam/.config/rclone/rclone.conf" "GDrive Adam:" "/home/adam/Documents/GDRIVE-ADAM" "--allow-other" "--cache-db-purge" "--fast-list" "--poll-interval" "10m" "-vv"]
2025/05/08 13:20:47 NOTICE: --fast-list does nothing on a mount
2025/05/08 13:20:47 DEBUG : Creating backend with remote "GDrive Adam:"
2025/05/08 13:20:47 DEBUG : Using config file from "/home/adam/.config/rclone/rclone.conf"
2025/05/08 13:20:47 DEBUG : GDrive Adam: Loaded invalid token from config file - ignoring
2025/05/08 13:20:47 DEBUG : GDrive Adam: got fatal oauth error: oauth2: "invalid_grant" "Token has been expired or revoked."
2025/05/08 13:20:47 CRITICAL: Failed to create file system for "GDrive Adam:": couldn't find root directory ID: Get "https://www.googleapis.com/drive/v3/files/root?alt=json&fields=id&prettyPrint=false&supportsAllDrives=true": couldn't fetch token: invalid_grant: maybe token expired? - try refreshing with "rclone config reconnect GDrive Adam:"
I never saw in the logs anything regarding a fail of token refresh, as it never tried while I ran the command to refresh the token, just straight up says "failed to create file system".
I searched on similar topics, but none mentioned the logs I get, even though they all shared the similarity of having to use reconnect.