Philaupatte
(Philippe MALTERRE)
February 11, 2024, 2:25pm
1
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
PS C:\Windows\System32\WindowsPowerShell\v7.0> rclone lsd GoogleDrive: -vv
2024/02/11 15:22:01 DEBUG : rclone: Version "v1.65.2" starting with parameters ["C:\Program Files\Rclone\rclone.exe" "lsd" "GoogleDrive:" "-vv"]
2024/02/11 15:22:01 DEBUG : Creating backend with remote "GoogleDrive:"
2024/02/11 15:22:01 DEBUG : Using config file from "C:\Users\phili\AppData\Roaming\rclone\rclone.conf"
2024/02/11 15:22:01 DEBUG : 4 go routines active
PS C:\Windows\System32\WindowsPowerShell\v7.0>
asdffdsa
(jojothehumanmonkey)
February 11, 2024, 2:35pm
2
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
Philaupatte
(Philippe MALTERRE)
February 11, 2024, 3:28pm
3
Hi Many thanks
Config :
[GoogleDrive]
type = drive
scope = drive.appfolder
token = {"access_token":"
team_drive =
root_folder_id = appDataFolder
Drive itself :
3 top folders
Commands :
1. PS C:\Windows\System32\WindowsPowerShell\v7.0> rclone ls GoogleDrive: -vv
2024/02/11 16:22:16 DEBUG : rclone: Version "v1.65.2" starting with parameters ["C:\Program Files\Rclone\rclone.exe" "ls" "GoogleDrive:" "-vv"]
2024/02/11 16:22:16 DEBUG : Creating backend with remote "GoogleDrive:"
2024/02/11 16:22:16 DEBUG : Using config file from "C:\Users\phili\AppData\Roaming\rclone\rclone.conf"
2024/02/11 16:22:16 DEBUG : GoogleDrive: Loaded invalid token from config file - ignoring
2024/02/11 16:22:17 DEBUG : Saving config "token" in section "GoogleDrive" of the config file
2024/02/11 16:22:17 DEBUG : Keeping previous permissions for config file: -rw-rw-rw-
2024/02/11 16:22:17 DEBUG : GoogleDrive: Saved new token in config file
2024/02/11 16:22:17 DEBUG : 6 go routines active
10. PS C:\Windows\System32\WindowsPowerShell\v7.0> rclone lsd GoogleDrive: -vv
2024/02/11 16:23:11 DEBUG : rclone: Version "v1.65.2" starting with parameters ["C:\Program Files\Rclone\rclone.exe" "lsd" "GoogleDrive:" "-vv"]
2024/02/11 16:23:12 DEBUG : Creating backend with remote "GoogleDrive:"
2024/02/11 16:23:12 DEBUG : Using config file from "C:\Users\phili\AppData\Roaming\rclone\rclone.conf"
2024/02/11 16:23:12 DEBUG : 4 go routines active
15. PS C:\Windows\System32\WindowsPowerShell\v7.0> rclone ls GoogleDrive: -vv
2024/02/11 16:23:18 DEBUG : rclone: Version "v1.65.2" starting with parameters ["C:\Program Files\Rclone\rclone.exe" "ls" "GoogleDrive:" "-vv"]
2024/02/11 16:23:19 DEBUG : Creating backend with remote "GoogleDrive:"
2024/02/11 16:23:19 DEBUG : Using config file from "C:\Users\phili\AppData\Roaming\rclone\rclone.conf"
2024/02/11 16:23:19 DEBUG : 4 go routines active
20. PS C:\Windows\System32\WindowsPowerShell\v7.0> rclone lsd GoogleDrive: -vv
2024/02/11 16:23:46 DEBUG : rclone: Version "v1.65.2" starting with parameters ["C:\Program Files\Rclone\rclone.exe" "lsd" "GoogleDrive:" "-vv"]
2024/02/11 16:23:46 DEBUG : Creating backend with remote "GoogleDrive:"
2024/02/11 16:23:46 DEBUG : Using config file from "C:\Users\phili\AppData\Roaming\rclone\rclone.conf"
2024/02/11 16:23:46 DEBUG : 4 go routines active
1. PS C:\Windows\System32\WindowsPowerShell\v7.0> rclone size GoogleDrive: -vv
2024/02/11 16:25:07 DEBUG : rclone: Version "v1.65.2" starting with parameters ["C:\Program Files\Rclone\rclone.exe" "size" "GoogleDrive:" "-vv"]
2024/02/11 16:25:07 DEBUG : Creating backend with remote "GoogleDrive:"
2024/02/11 16:25:07 DEBUG : Using config file from "C:\Users\phili\AppData\Roaming\rclone\rclone.conf"
Total objects: 0
Total size: 0 B (0 Byte)
2024/02/11 16:25:07 DEBUG : 4 go routines activeclone\rclone.exe" "ls" "GoogleDrive:" "-vv"]
2024/02/11 16:23:19 DEBUG : Creating backend with remote "GoogleDrive:"
2024/02/11 16:23:19 DEBUG : Using config file from "C:\Users\phili\AppData\Roaming\rclone\rclone.conf"
2024/02/11 16:23:19 DEBUG : 4 go routines active
PS C:\Windows\System32\WindowsPowerShell\v7.0> rclone lsd GoogleDrive: -vv
2024/02/11 16:23:46 DEBUG : rclone: Version "v1.65.2" starting with parameters ["C:\Program Files\Rclone\rclone.exe" "lsd" "GoogleDrive:" "-vv"]
2024/02/11 16:23:46 DEBUG : Creating backend with remote "GoogleDrive:"
2024/02/11 16:23:46 DEBUG : Using config file from "C:\Users\phili\AppData\Roaming\rclone\rclone.conf"
2024/02/11 16:23:46 DEBUG : 4 go routines active
asdffdsa
(jojothehumanmonkey)
February 11, 2024, 3:43pm
4
Philaupatte:
Config :
that does not good, did you expose the real token?
rclone config redacted
should not output that info?
Philaupatte:
appDataFolder
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
Philaupatte
(Philippe MALTERRE)
February 11, 2024, 4:05pm
5
Hi, Sorry I thought I did right but nevertheless, I restart, Pardon me.
1. PS C:\Windows\System32\WindowsPowerShell\v7.0> rclone config redacted
[GoogleDrive]
type = drive
scope = drive.appfolder
token = XXX
team_drive =
root_folder_id = XXX
type = onedrive
link_scope = organization
link_type = edit
hash_type = quickxor
token = XXX
drive_id = XXX
drive_type = personal
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"]
2024/02/11 16:58:43 DEBUG : Creating backend with remote "c:\Users\phili\Documents\testRcloneCopy.txt"
2024/02/11 16:58:43 DEBUG : Using config file from "C:\Users\phili\AppData\Roaming\rclone\rclone.conf"
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"
2024/02/11 16:58:43 DEBUG : Creating backend with remote "GoogleDrive:"
2024/02/11 16:58:44 DEBUG : testRcloneCopy.txt: Need to transfer - File not found at Destination
2024/02/11 16:58:46 DEBUG : testRcloneCopy.txt: md5 = b0f6e57ca9369dddbbe584939c6400d3 OK
2024/02/11 16:58:46 INFO : testRcloneCopy.txt: Copied (new)
2024/02/11 16:58:46 INFO :
Transferred: 60 B / 60 B, 100%, 29 B/s, ETA 0s
Transferred: 1 / 1, 100%
Elapsed time: 3.1s
2024/02/11 16:58:46 DEBUG : 5 go routines active
PS C:\Windows\System32\WindowsPowerShell\v7.0> rclone ls GoogleDrive: -vv
2024/02/11 16:58:56 DEBUG : rclone: Version "v1.65.2" starting with parameters ["C:\Program Files\Rclone\rclone.exe" "ls" "GoogleDrive:" "-vv"]
2024/02/11 16:58:56 DEBUG : Creating backend with remote "GoogleDrive:"
2024/02/11 16:58:56 DEBUG : Using config file from "C:\Users\phili\AppData\Roaming\rclone\rclone.conf"
60 testRcloneCopy.txt
2024/02/11 16:58:56 DEBUG : 4 go routines active
drive_id = XXX
drive_type = personal
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.
asdffdsa
(jojothehumanmonkey)
February 11, 2024, 4:11pm
6
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.
Philaupatte
(Philippe MALTERRE)
February 11, 2024, 5:34pm
7
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,
asdffdsa
(jojothehumanmonkey)
February 11, 2024, 5:40pm
8
why are you using appDataFolder
scope?
perhaps use Choose this one if you aren't sure
Philaupatte
(Philippe MALTERRE)
February 11, 2024, 5:48pm
9
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
Philaupatte
(Philippe MALTERRE)
February 11, 2024, 6:39pm
10
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.
asdffdsa
(jojothehumanmonkey)
February 11, 2024, 10:27pm
11
Philaupatte:
Many thanks
most welcome, glad we solved it.
system
(system)
Closed
March 12, 2024, 10:27pm
12
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.