Rclone GDrive metadata visible, every directory search command returns empty sets

What is the problem you are having with rclone?

My Google Workspace account, trying to connect to Rclone to pull all my files off and migrate to a local NAS. I've read the docs, and set up my own client_id. I am the only workspace user, owner/admin.

I have set up the OAuth flow using two separate attempts, once using External, and one using Internal. I've set up literally every auth/drive Scope available, enabled the Drive API, etc. Followed the docs to to a T. I've tried and <drive.file> etc. All variations.

I am a SWE so I'm familiar with this kind of configurations, and it's driving me bonkers. I've tried pointing to different root dir IDs, I've tried everything I can think of. I've recreated Projects. I have a two Computers under this Drive account, and some random files at the Home directory. It's my understanding that the default should hunt for root and default to the Computers dir. I've tried to set that root dir ID to computers to see if that changes things.

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

rclone version

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

Which cloud storage system are you using? (eg Google Drive)

Google Drive, on a Workspace account that I'm the only user on and the owner of.

Commands

rclone about gdrive:
Total:   5 TiB
Used:    782.417 GiB
Free:    4.031 TiB
Trashed: 0 B
Other:   209.385 GiB

So I can read metadata enough to know that I'm connected and can read.

When I try any variation of rclone ls/lsd/lsf/lsjson gdrive: it just simply returns en empty set.

rclone -vv lsjson gdrive:
2024/06/17 20:57:21 DEBUG : rclone: Version "v1.66.0" starting with parameters ["rclone" "-vv" "lsjson" "gdrive:"]
2024/06/17 20:57:21 DEBUG : Creating backend with remote "gdrive:"
2024/06/17 20:57:21 DEBUG : Using config file from "/Users/<my name>/.config/rclone/rclone.conf"
[
]
2024/06/17 20:57:21 DEBUG : 7 go routines active

Config

[gdrive]
type = drive
client_id = XXX
client_secret = XXX
scope = drive
token = XXX
team_drive =
root_folder_id = XXX

A log from the command that you were trying to run with the -vv flag

rclone -vv lsd gdrive:
2024/06/17 21:03:10 DEBUG : rclone: Version "v1.66.0" starting with parameters ["rclone" "-vv" "lsd" "gdrive:"]
2024/06/17 21:03:10 DEBUG : Creating backend with remote "gdrive:"
2024/06/17 21:03:10 DEBUG : Using config file from "/Users/<my name>/.config/rclone/rclone.conf"
2024/06/17 21:03:10 DEBUG : 7 go routines active

Posted on Reddit. Folks also didn't know. There's got to be some minor nuance. I was really assuming "huh, I can see the metadata, my scopes MUST be jacked up?" But nope, I've enabled everything under the sun. Deleted the Oauth users, deleted the projects under my Organization, tried again, made sure my user (the only one) is the test user, etc. Trying here! Thank you!

welcome to the forum,

that is a strange situation.
maybe try service accounts?

maybe try, start over with a new remote, gdrive2:

  1. do not set or use root_folder_id, client_id, client_secret, team_drive
  2. rclone copy file.ext gdrive2:
  3. rclone ls gdrive2:

and for a deeper look, can use --dump flags

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