Drive not mounting

What is the problem you are having with rclone?

As of yesterday evening my google drives are not mounting.
If and and when I get them to mount, when I open the drive, it is empty. My files and folders are not there.
When I login to my google drive, all the files and folders are there.

Run the command 'rclone version' and share the full output of the command.

rclone v1.59.2
- os/version: darwin 10.15.7 (64 bit)
- os/kernel: 19.6.0 (x86_64)
- os/type: darwin
- os/arch: amd64
- go/version: go1.18.6
- go/linking: dynamic
- go/tags: cmount
Yes.

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 gdrivemediacrypt: /Users/***/Desktop/gdrivemediacrypt/ \
--poll-interval 10s \
--allow-other \
--daemon \

The rclone config contents with secrets removed.

[gcache]
type = cache
remote = gdrive-media:/media
plex_url = http://127.0.0.1:32400
plex_username = ****
plex_password = ****
info_age = 1d
plex_insecure = gcrypt
db_path = crypt
chunk_path = gcache:/crypt
chunk_clean_interval = 2s
read_retries = 1

[gdrivemedia]
type = drive
client_id = ****
client_secret = ****
scope = drive
root_folder_id = 19OZSGWbsynex6lZVypNgm_iOrlHQyOTD
token = ****
team_drive = 

[gdrivemediacrypt]
type = crypt
remote = gdrivemedia:/
password = ****
password2 = ****

A log from the command with the -vv flag

Last login: Sun Sep 18 09:55:08 on ttys000
You have new mail.

The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
Mac:~ gp$ /Users/gp/rclonemount.command ; exit;
2022/09/18 09:59:07 DEBUG : rclone: Version "v1.59.2" starting with parameters ["rclone" "mount" "gdrivemediacrypt:" "/Users/gp/Desktop/gdrivemediacrypt/" "--poll-interval" "10s" "--allow-other" "--daemon" "-vv"]
2022/09/18 09:59:07 DEBUG : Creating backend with remote "gdrivemediacrypt:"
2022/09/18 09:59:07 DEBUG : Using config file from "/Users/gp/.config/rclone/rclone.conf"
2022/09/18 09:59:07 DEBUG : Creating backend with remote "gdrivemedia:/"
2022/09/18 09:59:07 DEBUG : fs cache: renaming cache item "gdrivemedia:/" to be canonical "gdrivemedia:"
2022/09/18 09:59:07 Fatal error: cannot open: /Users/gp/Desktop/gdrivemediacrypt/: open /Users/gp/Desktop/gdrivemediacrypt/: operation not permitted
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]


hi,

--- did the problem start after updating to v1.59.2
--- what about rclone ls, does that work?

Hey, I updated to v1.59.2 this morning to see if that would resolve the issue, I was running 1.57 before this morning.

Here's what rclone ls says:

Mac:~ georgiapeach$ rclone ls gdrivemedia:/
2022/09/18 10:31:03 Failed to ls: couldn't list directory: Get "https://www.googleapis.com/drive/v3/files?alt=json&fields=files%28id%2Cname%2Csize%2Cmd5Checksum%2Ctrashed%2CexplicitlyTrashed%2CmodifiedTime%2CcreatedTime%2CmimeType%2Cparents%2CwebViewLink%2CshortcutDetails%2CexportLinks%2CresourceKey%29%2CnextPageToken%2CincompleteSearch&includeItemsFromAllDrives=true&pageSize=1000&prettyPrint=false&q=trashed%3Dfalse+and+%28%2719OZSGWbsynex6lZVypNgm_iOrlHQyOTD%27+in+parents%29&supportsAllDrives=true": couldn't fetch token - maybe it has expired? - refresh with "rclone config reconnect gdrivemedia:": oauth2: cannot fetch token: 400 Bad Request
Response: {
  "error": "invalid_grant",
  "error_description": "Token has been expired or revoked."

can you post the output of
rclone ls gdrivemedia: -vv

Mac:~ georgiapeach$ rclone ls gdrivemedia: -vv
2022/09/18 10:45:55 DEBUG : rclone: Version "v1.59.2" starting with parameters ["rclone" "ls" "gdrivemedia:" "-vv"]
2022/09/18 10:45:55 DEBUG : Creating backend with remote "gdrivemedia:"
2022/09/18 10:45:55 DEBUG : Using config file from "/Users/gp/.config/rclone/rclone.conf"
2022/09/18 10:45:55 DEBUG : gdrivemedia: Loaded invalid token from config file - ignoring
2022/09/18 10:45:55 DEBUG : gdrivemedia: Token refresh failed try 1/5: oauth2: cannot fetch token: 400 Bad Request
Response: {
  "error": "invalid_grant",
  "error_description": "Token has been expired or revoked."
}
2022/09/18 10:45:56 DEBUG : gdrivemedia: Loaded invalid token from config file - ignoring
2022/09/18 10:45:56 DEBUG : gdrivemedia: Token refresh failed try 2/5: oauth2: cannot fetch token: 400 Bad Request
Response: {
  "error": "invalid_grant",
  "error_description": "Token has been expired or revoked."
}
2022/09/18 10:45:57 DEBUG : gdrivemedia: Loaded invalid token from config file - ignoring
2022/09/18 10:45:57 DEBUG : gdrivemedia: Token refresh failed try 3/5: oauth2: cannot fetch token: 400 Bad Request
Response: {
  "error": "invalid_grant",
  "error_description": "Token has been expired or revoked."
}
2022/09/18 10:45:58 DEBUG : gdrivemedia: Loaded invalid token from config file - ignoring
2022/09/18 10:45:58 DEBUG : gdrivemedia: Token refresh failed try 4/5: oauth2: cannot fetch token: 400 Bad Request
Response: {
  "error": "invalid_grant",
  "error_description": "Token has been expired or revoked."
}
2022/09/18 10:45:59 DEBUG : gdrivemedia: Loaded invalid token from config file - ignoring
2022/09/18 10:45:59 DEBUG : gdrivemedia: Token refresh failed try 5/5: oauth2: cannot fetch token: 400 Bad Request
Response: {
  "error": "invalid_grant",
  "error_description": "Token has been expired or revoked."
}
2022/09/18 10:46:00 DEBUG : 6 go routines active
2022/09/18 10:46:00 Failed to ls: couldn't list directory: Get "https://www.googleapis.com/drive/v3/files?alt=json&fields=files%28id%2Cname%2Csize%2Cmd5Checksum%2Ctrashed%2CexplicitlyTrashed%2CmodifiedTime%2CcreatedTime%2CmimeType%2Cparents%2CwebViewLink%2CshortcutDetails%2CexportLinks%2CresourceKey%29%2CnextPageToken%2CincompleteSearch&includeItemsFromAllDrives=true&pageSize=1000&prettyPrint=false&q=trashed%3Dfalse+and+%28%2719OZSGWbsynex6lZVypNgm_iOrlHQyOTD%27+in+parents%29&supportsAllDrives=true": couldn't fetch token - maybe it has expired? - refresh with "rclone config reconnect gdrivemedia:": oauth2: cannot fetch token: 400 Bad Request
Response: {
  "error": "invalid_grant",
  "error_description": "Token has been expired or revoked."
}

not an expert with gdrive tokens but i would try
rclone config reconnect gdrivemedia: -vv

https://forum.rclone.org/t/gdrive-token-has-been-expired-or-revoked/26080

https://forum.rclone.org/t/google-drive-cannot-refresh-token-after-a-few-days/22036

Last login: Sun Sep 18 10:45:51 on ttys000

You have new mail.

The default interactive shell is now zsh.

To update your account to use zsh, please run `chsh -s /bin/zsh`.

For more details, please visit https://support.apple.com/kb/HT208050.

Mac:~ georgiapeach$ rclone config reconnect gdrivemedia: -vv

2022/09/18 11:06:53 DEBUG : rclone: Version "v1.59.2" starting with parameters ["rclone" "config" "reconnect" "gdrivemedia:" "-vv"]

2022/09/18 11:06:53 DEBUG : Using config file from "/Users/gp/.config/rclone/rclone.conf"

2022/09/18 11:06:53 DEBUG : gdrivemedia: config in: state="", result=""

2022/09/18 11:06:53 DEBUG : gdrivemedia: config out: out=&{State:*oauth,teamdrive,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2022/09/18 11:06:53 DEBUG : gdrivemedia: config in: state="*oauth,teamdrive,,", result=""

2022/09/18 11:06:53 DEBUG : gdrivemedia: config out: out=&{State:*oauth-confirm,teamdrive,, Option:true OAuth:<nil> Error: Result:}, err=<nil>

2022/09/18 11:06:53 DEBUG : gdrivemedia: config: reading config parameter "config_refresh_token"

Already have a token - refresh?

y) Yes (default)

n) No

y/n> yes

This value must be a single character, one of the following: y, n.

y/n> y

2022/09/18 11:07:05 DEBUG : gdrivemedia: config in: state="*oauth-confirm,teamdrive,,", result="true"

2022/09/18 11:07:05 DEBUG : gdrivemedia: config out: out=&{State:*oauth-islocal,teamdrive,, Option:true OAuth:<nil> Error: Result:}, err=<nil>

2022/09/18 11:07:05 DEBUG : gdrivemedia: config: reading config parameter "config_is_local"

Use auto config?

* Say Y if not sure

* Say N if you are working on a remote or headless machine

y) Yes (default)

n) No

y/n> y

2022/09/18 11:07:13 DEBUG : gdrivemedia: config in: state="*oauth-islocal,teamdrive,,", result="true"

2022/09/18 11:07:13 DEBUG : gdrivemedia: config out: out=&{State:*oauth-do,teamdrive,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2022/09/18 11:07:13 DEBUG : gdrivemedia: config in: state="*oauth-do,teamdrive,,", result=""

2022/09/18 11:07:13 NOTICE: Make sure your Redirect URL is set to "http://127.0.0.1:53682/" in your custom config.

2022/09/18 11:07:13 DEBUG : Starting auth server on 127.0.0.1:53682

2022/09/18 11:07:13 NOTICE: If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=3hiPBPrtE1lLnH4cb9DgOg

2022/09/18 11:07:13 NOTICE: Log in and authorize rclone for access

2022/09/18 11:07:13 NOTICE: Waiting for code...

2022/09/18 11:07:14 DEBUG : Redirecting browser to: https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=68377774626-5695v3c5amlcapt3gsfkhe9i1ek6faqh.apps.googleusercontent.com&redirect_uri=http%3A%2F%2F127.0.0.1%3A53682%2F&response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive&state=3hiPBPrtE1lLnH4cb9DgOg

2022/09/18 11:07:32 DEBUG : Received GET request on auth server to "/"

2022/09/18 11:07:32 NOTICE: Got code

2022/09/18 11:07:32 DEBUG : Closing auth server

2022/09/18 11:07:32 DEBUG : Closed auth server with error: accept tcp 127.0.0.1:53682: use of closed network connection

2022/09/18 11:07:32 DEBUG : Saving config "token" in section "gdrivemedia" of the config file

2022/09/18 11:07:32 DEBUG : gdrivemedia: Saved new token in config file

2022/09/18 11:07:32 DEBUG : gdrivemedia: config out: out=&{State:*oauth-done,teamdrive,, Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2022/09/18 11:07:32 DEBUG : gdrivemedia: config in: state="*oauth-done,teamdrive,,", result=""

2022/09/18 11:07:32 DEBUG : gdrivemedia: config out: out=&{State:teamdrive Option:<nil> OAuth:<nil> Error: Result:}, err=<nil>

2022/09/18 11:07:32 DEBUG : gdrivemedia: config in: state="teamdrive", result=""

2022/09/18 11:07:32 DEBUG : gdrivemedia: config out: out=&{State:teamdrive_ok Option:false OAuth:<nil> Error: Result:}, err=<nil>

2022/09/18 11:07:32 DEBUG : gdrivemedia: config: reading config parameter "config_change_team_drive"

Configure this as a Shared Drive (Team Drive)?

y) Yes

n) No (default)

y/n> n

2022/09/18 11:08:27 DEBUG : gdrivemedia: config in: state="teamdrive_ok", result="false"

2022/09/18 11:08:27 DEBUG : Saving config "team_drive" in section "gdrivemedia" of the config file

2022/09/18 11:08:28 DEBUG : gdrivemedia: config out: out=<nil>, err=<nil>

2022/09/18 11:08:28 DEBUG : rclone: Version "v1.59.2" finishing with parameters ["rclone" "config" "reconnect" "gdrivemedia:" "-vv"]

You have new mail in /var/mail/georgiapeach

Hollywood-Studios-II:~ georgiapeach$

I ran the command
Should I run the same command but for gdrivemediacrypt? Nevermind just checked the config file and that doesn't have a token.

Here's what I get when I try to mount:

Mac:~ georgiapeach$ /Users/gp/rclonemount.command ; exit;
2022/09/18 11:17:11 DEBUG : rclone: Version "v1.59.2" starting with parameters ["rclone" "mount" "gdrivemediacrypt:" "/Users/gp/Desktop/gdrivemediacrypt/" "--poll-interval" "10s" "--allow-other" "--daemon" "-vv"]
2022/09/18 11:17:11 DEBUG : Creating backend with remote "gdrivemediacrypt:"
2022/09/18 11:17:11 DEBUG : Using config file from "/Users/gp/.config/rclone/rclone.conf"
2022/09/18 11:17:11 DEBUG : Creating backend with remote "gdrivemedia:/"
2022/09/18 11:17:11 DEBUG : fs cache: renaming cache item "gdrivemedia:/" to be canonical "gdrivemedia:"
2022/09/18 11:17:11 Fatal error: cannot open: /Users/gp/Desktop/gdrivemediacrypt/: open /Users/gp/Desktop/gdrivemediacrypt/: operation not permitted
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]

make sure rclone ls gdrivemedia: -vv works
before trying rclone mount

I ran the command, the output is too long to paste on here but I don't see any errors...

ok, good, not getting that token error now.

really not sure, maybe linux file/dir permissions issue.

Yeah, this is what I get when trying to mount:

Mac:~ georgiapeach$ /Users/gph/rclonemount.command ; exit;
2022/09/18 11:43:22 Fatal error: cannot open: /Users/gp/Desktop/gdrivemediacrypt/: open /Users/georgiapeach/Desktop/gdrivemediacrypt/: operation not permitted
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]

if the issue is not linux permissions issue, then i do not know what is going on.

but at this point, we should have enough basic info for someone else to comment?

Make sure there aren't any other rclone's running that might already be mounting that directory.

You might want to try a reboot.

If that doesn't work check the permission of the mount point.

I was able to fix the folder permission settings and now everything mounts and works just fine.
Thank you!

1 Like