Second remote mount not working

What is the problem you are having with rclone?

I am unable to mount a second remote of my GSuite Google Drive.

What is your rclone version (output from rclone version)

rclone v1.53.1

  • os/arch: linux/amd64
  • go version: go1.15

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Ubuntu 19.10 server

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 --allow-other --bwlimit=15M --vfs-cache-poll-interval 15s --poll-interval 15s --vfs-cache-mode full --vfs-cache-max-size 300G --vfs-cache-max-age 6h --drive-chunk-size=32M --cache-dir /home/entix/tmp/rcloneAlt/vfs --dir-cache-time 72h --log-level ERROR --log-file /mnt/user/mount_rclone/rclonealt.log gDriveAlt:/ /mnt/gdriveAlt --stats 1m

The rclone config contents with secrets removed.

[gDrive]
type = drive
scope = drive
token =xxx
root_folder_id = xxx

[gDriveAlt]
type = drive
scope = drive
token = xxx

A log from the command with the -vv flag

2020/09/29 16:03:57 DEBUG : rclone: Version "v1.53.1" starting with parameters ["rclone" "mount" "-vv" "--allow-other" "--bwlimit=15M" "--vfs-cache-poll-interval" "15s" "--poll-interval" "15s" "--vfs-cache-mode" "full" "--vfs-cache-max-size" "300G" "--vfs-cache-max-age" "6h" "--drive-chunk-size=32M" "--cache-dir" "/home/entix/tmp/rcloneAlt/vfs" "--dir-cache-time" "72h" "gDriveAlt:/" "/mnt/gdriveAlt" "--stats" "1m"]
2020/09/29 16:03:57 DEBUG : Creating backend with remote "gDriveAlt:/"
2020/09/29 16:03:57 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2020/09/29 16:03:57 INFO  : Starting bandwidth limiter at 15MBytes/s
2020/09/29 16:03:57 DEBUG : fs cache: renaming cache item "gDriveAlt:/" to be canonical "gDriveAlt:"
2020/09/29 16:03:57 DEBUG : gDriveAlt: Loaded invalid token from config file - ignoring
2020/09/29 16:03:57 DEBUG : gDriveAlt: Token refresh failed try 1/5: oauth2: cannot fetch token: 400 Bad Request
Response: {
  "error": "invalid_grant",
  "error_description": "Bad Request"
}
2020/09/29 16:03:58 DEBUG : gDriveAlt: Loaded invalid token from config file - ignoring
2020/09/29 16:03:59 DEBUG : gDriveAlt: Token refresh failed try 2/5: oauth2: cannot fetch token: 400 Bad Request
Response: {
  "error": "invalid_grant",
  "error_description": "Bad Request"
}
2020/09/29 16:04:00 DEBUG : gDriveAlt: Loaded invalid token from config file - ignoring
2020/09/29 16:04:00 DEBUG : gDriveAlt: Token refresh failed try 3/5: oauth2: cannot fetch token: 400 Bad Request
Response: {
  "error": "invalid_grant",
  "error_description": "Bad Request"
}
2020/09/29 16:04:01 DEBUG : gDriveAlt: Loaded invalid token from config file - ignoring
2020/09/29 16:04:01 DEBUG : gDriveAlt: Token refresh failed try 4/5: oauth2: cannot fetch token: 400 Bad Request
Response: {
  "error": "invalid_grant",
  "error_description": "Bad Request"
}
2020/09/29 16:04:02 DEBUG : gDriveAlt: Loaded invalid token from config file - ignoring
2020/09/29 16:04:02 DEBUG : gDriveAlt: Token refresh failed try 5/5: oauth2: cannot fetch token: 400 Bad Request
Response: {
  "error": "invalid_grant",
  "error_description": "Bad Request"
}
2020/09/29 16:04:03 INFO  : Google drive root '': Failed to get StartPageToken: Get "https://www.googleapis.com/drive/v3/changes/startPageToken?alt=json&prettyPrint=false&supportsAllDrives=true": couldn't fetch token - maybe it has expired? - refresh with "rclone config reconnect gDriveAlt:": oauth2: cannot fetch token: 400 Bad Request
Response: {
  "error": "invalid_grant",
  "error_description": "Bad Request"
}
2020/09/29 16:04:03 DEBUG : vfs cache: root is "/home/entix/tmp/rcloneAlt/vfs/vfs/gDriveAlt"
2020/09/29 16:04:03 DEBUG : vfs cache: metadata root is "/home/entix/tmp/rcloneAlt/vfs/vfs/gDriveAlt"
2020/09/29 16:04:03 DEBUG : Creating backend with remote "/home/entix/tmp/rcloneAlt/vfs/vfs/gDriveAlt"
2020/09/29 16:04:03 DEBUG : Google drive root '': Mounting on "/mnt/gdriveAlt"
2020/09/29 16:04:03 INFO  : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2020/09/29 16:04:03 DEBUG : : Root:
2020/09/29 16:04:03 DEBUG : : >Root: node=/, err=<nil>
2020/09/29 16:04:03 DEBUG : /: Lookup: name=".Trash"
2020/09/29 16:04:03 DEBUG : gDriveAlt: Loaded invalid token from config file - ignoring
2020/09/29 16:04:03 DEBUG : gDriveAlt: Token refresh failed try 1/5: oauth2: cannot fetch token: 400 Bad Request
Response: {
  "error": "invalid_grant",
  "error_description": "Bad Request"
}
2020/09/29 16:04:04 DEBUG : gDriveAlt: Loaded invalid token from config file - ignoring
2020/09/29 16:04:04 DEBUG : gDriveAlt: Token refresh failed try 2/5: oauth2: cannot fetch token: 400 Bad Request
Response: {
  "error": "invalid_grant",
  "error_description": "Bad Request"
}
2020/09/29 16:04:05 DEBUG : gDriveAlt: Loaded invalid token from config file - ignoring
2020/09/29 16:04:05 DEBUG : gDriveAlt: Token refresh failed try 3/5: oauth2: cannot fetch token: 400 Bad Request
Response: {
  "error": "invalid_grant",
  "error_description": "Bad Request"
}
2020/09/29 16:04:06 DEBUG : gDriveAlt: Loaded invalid token from config file - ignoring
2020/09/29 16:04:06 DEBUG : gDriveAlt: Token refresh failed try 4/5: oauth2: cannot fetch token: 400 Bad Request
Response: {
  "error": "invalid_grant",
  "error_description": "Bad Request"
}
2020/09/29 16:04:07 DEBUG : gDriveAlt: Loaded invalid token from config file - ignoring
2020/09/29 16:04:07 DEBUG : gDriveAlt: Token refresh failed try 5/5: oauth2: cannot fetch token: 400 Bad Request
Response: {
  "error": "invalid_grant",
  "error_description": "Bad Request"
}
^C2020/09/29 16:04:07 INFO  : Signal received: interrupt
2020/09/29 16:04:07 DEBUG : vfs cache: cleaner exiting
2020/09/29 16:04:07 INFO  : Exiting...

I have tried everything to get the second remote to work which is gDriveAlt. The mount script is pretty much the same as my gDrive mount script other than the --bwlimit=15

I am at a loss on what is wrong. I have tried to reconnect with the rclone config reconnect and still nothing.

Nevermind... I just facepalmed on what was wrong.. You can closed this...

It was using root's rclone.conf instead of my own user's

I have done the same :slight_smile: Glad you figured it out.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.