GoogleDrive does not return any information

Hi and thanks in advance, hope I will be clear enough.

What is the problem you are having with rclone?

I am recent into this forum but quite old using Rclone with OneDrive, works magic.

I intend to use GoogleDrive. I have been able to create a remote using config, token accepted. When I perform LSD command don't get anything in return !!!

Windows 11 23H2 Build 22631.3085
rclone version
rclone v1.65.2

  • os/version: Microsoft Windows 11 Pro 23H2 (64 bit)
  • os/kernel: 10.0.22631.3085 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.21.6
  • go/linking: static
  • go/tags: cmount

Name Type
==== ====
GoogleDrive drive

  1. PS C:\Windows\System32\WindowsPowerShell\v7.0> rclone lsd GoogleDrive: -vv

  2. 2024/02/11 15:22:01 DEBUG : rclone: Version "v1.65.2" starting with parameters ["C:\Program Files\Rclone\rclone.exe" "lsd" "GoogleDrive:" "-vv"]

  3. 2024/02/11 15:22:01 DEBUG : Creating backend with remote "GoogleDrive:"

  4. 2024/02/11 15:22:01 DEBUG : Using config file from "C:\Users\phili\AppData\Roaming\rclone\rclone.conf"

  5. 2024/02/11 15:22:01 DEBUG : 4 go routines active

  6. PS C:\Windows\System32\WindowsPowerShell\v7.0>

welcome to the forum,

can you please post the output of rclone config redacted GoogleDrive:

to be clear, at the gdrive website, you can see folders and files?

what about rclone ls GoogleDrive: -vv or rclone size GoogleDrive: -vv

Hi Many thanks

Config :

  1. [GoogleDrive]

  2. type = drive

  3. scope = drive.appfolder

  4. token = {"access_token":"

  5. team_drive =

  6. root_folder_id = appDataFolder

Drive itself :

3 top folders

Commands :

1. PS C:\Windows\System32\WindowsPowerShell\v7.0> rclone ls GoogleDrive: -vv

  1. 2024/02/11 16:22:16 DEBUG : rclone: Version "v1.65.2" starting with parameters ["C:\Program Files\Rclone\rclone.exe" "ls" "GoogleDrive:" "-vv"]

  2. 2024/02/11 16:22:16 DEBUG : Creating backend with remote "GoogleDrive:"

  3. 2024/02/11 16:22:16 DEBUG : Using config file from "C:\Users\phili\AppData\Roaming\rclone\rclone.conf"

  4. 2024/02/11 16:22:16 DEBUG : GoogleDrive: Loaded invalid token from config file - ignoring

  5. 2024/02/11 16:22:17 DEBUG : Saving config "token" in section "GoogleDrive" of the config file

  6. 2024/02/11 16:22:17 DEBUG : Keeping previous permissions for config file: -rw-rw-rw-

  7. 2024/02/11 16:22:17 DEBUG : GoogleDrive: Saved new token in config file

  8. 2024/02/11 16:22:17 DEBUG : 6 go routines active

10. PS C:\Windows\System32\WindowsPowerShell\v7.0> rclone lsd GoogleDrive: -vv

  1. 2024/02/11 16:23:11 DEBUG : rclone: Version "v1.65.2" starting with parameters ["C:\Program Files\Rclone\rclone.exe" "lsd" "GoogleDrive:" "-vv"]

  2. 2024/02/11 16:23:12 DEBUG : Creating backend with remote "GoogleDrive:"

  3. 2024/02/11 16:23:12 DEBUG : Using config file from "C:\Users\phili\AppData\Roaming\rclone\rclone.conf"

  4. 2024/02/11 16:23:12 DEBUG : 4 go routines active

15. PS C:\Windows\System32\WindowsPowerShell\v7.0> rclone ls GoogleDrive: -vv

  1. 2024/02/11 16:23:18 DEBUG : rclone: Version "v1.65.2" starting with parameters ["C:\Program Files\Rclone\rclone.exe" "ls" "GoogleDrive:" "-vv"]

  2. 2024/02/11 16:23:19 DEBUG : Creating backend with remote "GoogleDrive:"

  3. 2024/02/11 16:23:19 DEBUG : Using config file from "C:\Users\phili\AppData\Roaming\rclone\rclone.conf"

  4. 2024/02/11 16:23:19 DEBUG : 4 go routines active

20. PS C:\Windows\System32\WindowsPowerShell\v7.0> rclone lsd GoogleDrive: -vv

  1. 2024/02/11 16:23:46 DEBUG : rclone: Version "v1.65.2" starting with parameters ["C:\Program Files\Rclone\rclone.exe" "lsd" "GoogleDrive:" "-vv"]

  2. 2024/02/11 16:23:46 DEBUG : Creating backend with remote "GoogleDrive:"

  3. 2024/02/11 16:23:46 DEBUG : Using config file from "C:\Users\phili\AppData\Roaming\rclone\rclone.conf"

  4. 2024/02/11 16:23:46 DEBUG : 4 go routines active

1. PS C:\Windows\System32\WindowsPowerShell\v7.0> rclone size GoogleDrive: -vv

  1. 2024/02/11 16:25:07 DEBUG : rclone: Version "v1.65.2" starting with parameters ["C:\Program Files\Rclone\rclone.exe" "size" "GoogleDrive:" "-vv"]

  2. 2024/02/11 16:25:07 DEBUG : Creating backend with remote "GoogleDrive:"

  3. 2024/02/11 16:25:07 DEBUG : Using config file from "C:\Users\phili\AppData\Roaming\rclone\rclone.conf"

  4. Total objects: 0

  5. Total size: 0 B (0 Byte)

  6. 2024/02/11 16:25:07 DEBUG : 4 go routines activeclone\rclone.exe" "ls" "GoogleDrive:" "-vv"]

  7. 2024/02/11 16:23:19 DEBUG : Creating backend with remote "GoogleDrive:"

  8. 2024/02/11 16:23:19 DEBUG : Using config file from "C:\Users\phili\AppData\Roaming\rclone\rclone.conf"

  9. 2024/02/11 16:23:19 DEBUG : 4 go routines active

  10. PS C:\Windows\System32\WindowsPowerShell\v7.0> rclone lsd GoogleDrive: -vv

  11. 2024/02/11 16:23:46 DEBUG : rclone: Version "v1.65.2" starting with parameters ["C:\Program Files\Rclone\rclone.exe" "lsd" "GoogleDrive:" "-vv"]

  12. 2024/02/11 16:23:46 DEBUG : Creating backend with remote "GoogleDrive:"

  13. 2024/02/11 16:23:46 DEBUG : Using config file from "C:\Users\phili\AppData\Roaming\rclone\rclone.conf"

  14. 2024/02/11 16:23:46 DEBUG : 4 go routines active

that does not good, did you expose the real token?
rclone config redacted should not output that info?

you did not answer the questions i asked, confirm that there are folder/files?

as a test, copy a file to the remote and then rclone ls

Hi, Sorry I thought I did right but nevertheless, I restart, Pardon me.

1. PS C:\Windows\System32\WindowsPowerShell\v7.0> rclone config redacted

  1. [GoogleDrive]

  2. type = drive

  3. scope = drive.appfolder

  4. token = XXX

  5. team_drive =

  6. root_folder_id = XXX

  • [OneDrive]
  1. type = onedrive

  2. link_scope = organization

  3. link_type = edit

  4. hash_type = quickxor

  5. token = XXX

  6. drive_id = XXX

  7. drive_type = personal

  8. Double check the config for sensitive info before posting publicly4 go routines active

1. 2024/02/11 16:58:43 DEBUG : rclone: Version "v1.65.2" starting with parameters ["C:\Program Files\Rclone\rclone.exe" "copy" "c:\Users\phili\Documents\testRcloneCopy.txt" "GoogleDrive:" "-vv"]

  1. 2024/02/11 16:58:43 DEBUG : Creating backend with remote "c:\Users\phili\Documents\testRcloneCopy.txt"

  2. 2024/02/11 16:58:43 DEBUG : Using config file from "C:\Users\phili\AppData\Roaming\rclone\rclone.conf"

  3. 2024/02/11 16:58:43 DEBUG : fs cache: adding new entry for parent of "c:\Users\phili\Documents\testRcloneCopy.txt", "//?/c:/Users/phili/Documents"

  4. 2024/02/11 16:58:43 DEBUG : Creating backend with remote "GoogleDrive:"

  5. 2024/02/11 16:58:44 DEBUG : testRcloneCopy.txt: Need to transfer - File not found at Destination

  6. 2024/02/11 16:58:46 DEBUG : testRcloneCopy.txt: md5 = b0f6e57ca9369dddbbe584939c6400d3 OK

  7. 2024/02/11 16:58:46 INFO : testRcloneCopy.txt: Copied (new)

  8. 2024/02/11 16:58:46 INFO :

  9. Transferred: 60 B / 60 B, 100%, 29 B/s, ETA 0s

  10. Transferred: 1 / 1, 100%

  11. Elapsed time: 3.1s

  • 2024/02/11 16:58:46 DEBUG : 5 go routines active
  1. PS C:\Windows\System32\WindowsPowerShell\v7.0> rclone ls GoogleDrive: -vv

  2. 2024/02/11 16:58:56 DEBUG : rclone: Version "v1.65.2" starting with parameters ["C:\Program Files\Rclone\rclone.exe" "ls" "GoogleDrive:" "-vv"]

  3. 2024/02/11 16:58:56 DEBUG : Creating backend with remote "GoogleDrive:"

  4. 2024/02/11 16:58:56 DEBUG : Using config file from "C:\Users\phili\AppData\Roaming\rclone\rclone.conf"

  5. 60 testRcloneCopy.txt

  6. 2024/02/11 16:58:56 DEBUG : 4 go routines active

  7. drive_id = XXX

  8. drive_type = personal

  9. Double check the config for sensitive info before posting publicly4 go routines active

Well it works fine, many many thanks but I am a bit lost.

Going to Google Drive itself I can't find see the file just copied.
1 : Where is it located really ?
2 : How can I access the one in "My Drive" ?

Thanks again.

about appDataFolder

from rclone docs:
This is not visible in the drive website.

from google docs:

The application data folder is a special hidden folder.
This folder is only accessible by your application and its contents are hidden from the user and from other Drive apps.

Hi, just finished my masonry work.

Well, I fully understand this behaviour and I really thank you for your help and your clear explanations.

However, I am "left high and dry" and I will not be able to do what I expect.
I am not a Google Drive user and I got only the default 15 go. As you know, there are few mobiles applications that deal only with Google Drive loading files and files. I wanted to automate files managements and cleaning to keep only a level of them and even so, copy them somewhere else.

I am not saying it is a good idea, but it would have helped me easily to keep under 10 Go. Rclone is really magic and with OneDrive it is sweet and smooth.

Any suggestion ?

Thanks Thanks Thanks,

why are you using appDataFolder scope?

perhaps use Choose this one if you aren't sure

Hi,
I did try in fact, but I received :

2024/02/11 18:44:03 Failed to ls: couldn't list directory: googleapi: Error 403: The granted scopes do not give access to all of the requested spaces., insufficientScopes

Hi, This is it, by the end it works as expected.

To solve 403, I have editing rclone config file and set root_folder_id to blank.
Many thanks to all of you for such quick and efficient support.

Love.

most welcome, glad we solved it.

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