Unable to login to Gdrive

Hi,
I am unable to login and list gdrive.

$rclone lsd google:my-drive                          
2022/07/30 17:36:44 ERROR : : error listing: couldn't list directory: googleapi: Error 404: File not found: ., notFound
2022/07/30 17:36:44 Failed to lsd with 2 errors: last error was: couldn't list directory: googleapi: Error 404: File not found: ., notFound

rclone.conf

$cat '~/.config/rclone/rclone.conf'                  
[google]
type = drive
scope = drive
root_folder_id = my-drive
auth_owner_only = true
use_trash = false
skip_gdocs = true
alternate_export = true
v2_download_min_size = 16M
token = {"access_token":"axxxBigxxxxxxxxxxTokenxxx",
"token_type":"Bearer","refresh_token":"anotherxxxBigxxxToken",
"expiry":"2022-07-30T17:31:30.701942661+05:30"}
client_id = copy_paste_from.apps.googleusercontent.com
client_secret = its_a_secret_google_gave_me
team_drive = 

version

$rclone --version                               
rclone v1.59.0
- os/version: arch "rolling" (64 bit)
- os/kernel: 5.18.14-arch1-1 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.18.3
- go/linking: dynamic
- go/tags: none
$uname -a                                       
Linux pannet1-pc 5.18.14-arch1-1 #1 SMP PREEMPT_DYNAMIC Sat, 23 Jul 2022 11:46:17 +0000 x86_64 unknown unknown linux

earlier i created desktop app and oath 2 client as mentioned here

What's output of that?

1 Like

Hi,
dots and then it goes into a limbo

rclone lsd google:
........................................

Can you run with -vv and share the full output?

1 Like

Hi,
Here it is

rclone -vv lsd google:                              
2022/07/30 23:25:35 DEBUG : rclone: Version "v1.59.0" starting with parameters ["rclone" "-vv" "lsd" "google:"]
2022/07/30 23:25:35 DEBUG : Creating backend with remote "google:"
2022/07/30 23:25:35 DEBUG : Using config file from "/home/pannet1/.config/rclone/rclone.conf"
2022/07/30 23:25:35 DEBUG : google: Loaded invalid token from config file - ignoring
2022/07/30 23:25:35 DEBUG : Saving config "token" in section "google" of the config file
2022/07/30 23:25:35 DEBUG : google: Saved new token in config file
2022/07/30 23:25:36 ERROR : : error listing: couldn't list directory: googleapi: Error 404: File not found: ., notFound
2022/07/30 23:25:36 DEBUG : 6 go routines active
2022/07/30 23:25:36 Failed to lsd with 2 errors: last error was: couldn't list directory: googleapi: Error 404: File not found: ., notFound

Do that actually say that? Remove it.

1 Like

Hi,

Thanks once again

if i remove the word my-drive or the line root_folder_id = my-drive then rclone --vv also goes into limbo

$rclone --vv lsd google:
............................. 

What's your rclone.conf now?

Why do you this on?

1 Like

Hi,

Success !

previously, i copied the actual root_folder_id to rclone.conf after rclone ---vv was verbose about it.
now when i canged auth_owner_only = false i can now see the directory listing.

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