Couldn't find root directory ID error

What is the problem you are having with rclone?

Hi,

at last I finished to create a GoogleDrive remote, but when I tried

rclone lsd GoogleDrive1:

I got this error:

Failed to create file system for "GoogleDrive1:": couldn't find root directory ID: Get "https://www.googleapis.com/drive/v3/files/root?alt=json&fields=id&prettyPrint=false&supportsAllDrives=true": dial tcp 142.251.33.74:443: i/o timeout

Any ideas?

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

GoogleDrive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone lsd GoogleDrive1:

hi, please answer all the questions in the help and support template.

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

rclone v1.68.1

os/version: Microsoft Windows 10 Home 22H2 (64 bit)

os/kernel: 10.0.19045.5131 (x86_64)

os/type: windows

os/arch: amd64

go/version: go1.23.1

go/linking: static

go/tags: cmount

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

Google Drive

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[GoogleDrive1]
type = drive
client_id = XXX
client_secret = XXX
scope = drive
token = XXX
team_drive =

can you ping 142.251.33.74 ?


that is an old version of rclone, can rclone selfupdate and test again...


and need to post a full debug log:
rclone lsd GoogleDrive1: -vv --retries=1

Here you are:

2025/02/01 15:13:15 DEBUG : rclone: Version "v1.69.0" starting with parameters ["rclone" "lsd" "GoogleDrive1:" "-vv" "--retries=1"]

2025/02/01 15:13:15 DEBUG : Creating backend with remote "GoogleDrive1:"

2025/02/01 15:13:15 DEBUG : Using config file from "C:\Users\My Home\AppData\Roaming\rclone\rclone.conf"

2025/02/01 15:13:15 DEBUG : GoogleDrive1: Loaded invalid token from config file - ignoring

2025/02/01 15:15:15 DEBUG : GoogleDrive1: Token refresh failed try 1/5: Post "https://oauth2.googleapis.com/token": dial tcp 142.250.217.74:443: i/o timeout

2025/02/01 15:15:16 DEBUG : GoogleDrive1: Loaded invalid token from config file - ignoring

2025/02/01 15:17:16 DEBUG : GoogleDrive1: Token refresh failed try 2/5: Post "https://oauth2.googleapis.com/token": dial tcp 142.250.198.74:443: i/o timeout

2025/02/01 15:17:17 DEBUG : GoogleDrive1: Loaded invalid token from config file - ignoring

2025/02/01 15:19:17 DEBUG : GoogleDrive1: Token refresh failed try 3/5: Post "https://oauth2.googleapis.com/token": dial tcp 142.250.198.74:443: i/o timeout

2025/02/01 15:19:18 DEBUG : GoogleDrive1: Loaded invalid token from config file - ignoring

2025/02/01 15:21:18 DEBUG : GoogleDrive1: Token refresh failed try 4/5: Post "https://oauth2.googleapis.com/token": dial tcp 142.250.217.106:443: i/o timeout

2025/02/01 15:21:19 DEBUG : GoogleDrive1: Loaded invalid token from config file - ignoring

2025/02/01 15:23:19 DEBUG : GoogleDrive1: Token refresh failed try 5/5: Post "https://oauth2.googleapis.com/token": dial tcp 142.250.217.106:443: i/o timeout

2025/02/01 15:23:20 DEBUG : pacer: low level retry 1/10 (error Get "https://www.googleapis.com/drive/v3/files/root?alt=json&fields=id&prettyPrint=false&supportsAllDrives=true": couldn't fetch token: Post "https://oauth2.googleapis.com/token": dial tcp 142.250.217.106:443: i/o timeout)

2025/02/01 15:23:20 DEBUG : pacer: Rate limited, increasing sleep to 1.896825407s

It can only be successful if I use a proxy since my connection to Google is not so stable, but my other OneDrive remote works well with AND without a proxy. Is there any principle difference between GoogleDrive and OneDrive?

Well... They are completely different things:) Using different APIs and different IP addresses.

It looks like you have a problem with your network and can't reach IP needed for grive connection. Nothing rclone can do about it when it can not connect.

Is there any particular reason you use proxy?

I thought I don’t need to make a direct connection to Google. Am I wrong?

Not sure what you mean. Of course you can connect directly. What makes you believe that you need some proxy?