Failed to lsd with 2 errors: last error was: couldn't list directory: googleapi: Error 404: File not found: ., notFound

What is the problem you are having with rclone?

I'm unable to list files in a Google Drive remote I just configured. I have seen other posts reporting the same error on this command but I am only using one account and am on a recent of rclone.

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

rclone v1.57.0

  • os/version: ubuntu 21.10 (64 bit)
  • os/kernel: 5.13.0-28-lowlatency (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.17.2
  • go/linking: static
  • go/tags: none

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

Google Drive

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

rclone lsd myremote: -vv

The rclone config contents with secrets removed.

[myremote]
type = drive
scope = drive
root_folder_id = 1
token = {"access_token":"[snip]"}
team_drive = 

A log from the command with the -vv flag

2022/02/14 15:53:43 DEBUG : rclone: Version "v1.57.0" starting with parameters ["rclone" "lsd" "myremote:" "-vv"]
2022/02/14 15:53:43 DEBUG : Creating backend with remote "myremote:"
2022/02/14 15:53:43 DEBUG : Using config file from "/home/username/.config/rclone/rclone.conf"
2022/02/14 15:53:43 ERROR : : error listing: couldn't list directory: googleapi: Error 404: File not found: ., notFound
2022/02/14 15:53:43 DEBUG : 4 go routines active
2022/02/14 15:53:43 Failed to lsd with 2 errors: last error was: couldn't list directory: googleapi: Error 404: File not found: ., notFound


hello and welcome to the forum,

have you tried rclone about, rclone ls?

Thank you.

rclone about myremote:
Total:   15 GiB
Used:    146.452 MiB
Free:    14.857 GiB
Trashed: 0 B
Other:   0 B
rclone ls myremote: -vv
2022/02/14 17:03:36 DEBUG : rclone: Version "v1.57.0" starting with parameters ["rclone" "ls" "koppenc_googledrive:" "-vv"]
2022/02/14 17:03:36 DEBUG : Creating backend with remote "myremote:"
2022/02/14 17:03:36 DEBUG : Using config file from "/home/username/.config/rclone/rclone.conf"
2022/02/14 17:03:36 DEBUG : 4 go routines active
2022/02/14 17:03:36 Failed to ls: couldn't list directory: googleapi: Error 404: File not found: ., notFound

EDIT: redeact personal info

That remote name is not the same as

That remote name.

You'd have to share the rclone.conf with the remote you are having a problem with.

Sorry, I forgot to redact the remote name in the second instance. Corrected above now.

Do you actually have root folder id = 1 in there?

Per the quickstart I left this blank on config. There's no folder of that name in the drive.

I think it really has a 1 in it as you get that error with a wrong root ID:

felix@gemini:/opt/rclone$ rclone ls GD: -vvv
2022/02/14 12:45:07 DEBUG : Setting --config "/opt/rclone/rclone.conf" from environment variable RCLONE_CONFIG="/opt/rclone/rclone.conf"
2022/02/14 12:45:07 DEBUG : rclone: Version "v1.57.0" starting with parameters ["rclone" "ls" "GD:" "-vvv"]
2022/02/14 12:45:07 DEBUG : Creating backend with remote "GD:"
2022/02/14 12:45:07 DEBUG : Using config file from "/opt/rclone/rclone.conf"
2022/02/14 12:45:08 DEBUG : pacer: low level retry 1/10 (error googleapi: Error 403: Rate Limit Exceeded, rateLimitExceeded)
2022/02/14 12:45:08 DEBUG : pacer: Rate limited, increasing sleep to 1.804704474s
2022/02/14 12:45:08 DEBUG : pacer: low level retry 2/10 (error googleapi: Error 403: Rate Limit Exceeded, rateLimitExceeded)
2022/02/14 12:45:08 DEBUG : pacer: Rate limited, increasing sleep to 2.620355425s
2022/02/14 12:45:09 DEBUG : pacer: low level retry 3/10 (error googleapi: Error 403: Rate Limit Exceeded, rateLimitExceeded)
2022/02/14 12:45:09 DEBUG : pacer: Rate limited, increasing sleep to 4.360810315s
2022/02/14 12:45:12 DEBUG : pacer: Reducing sleep to 0s
2022/02/14 12:45:12 DEBUG : Google drive root '': 'root_folder_id = 0AGoj85v3xeadUk9adsfadsA' - save this in the config to speed up startup
   306520 RDManager
       -1 test/testsheet.xlsx
2022/02/14 12:45:17 DEBUG : 4 go routines active
felix@gemini:/opt/rclone$ vi rclone.conf
felix@gemini:/opt/rclone$ vi rclone.conf
felix@gemini:/opt/rclone$ rclone about GD:
Total:   16 GiB
Used:    304.130 KiB
Free:    12.906 GiB
Trashed: 2 KiB
Other:   3.094 GiB
felix@gemini:/opt/rclone$ rclone ls GD: -vvv
2022/02/14 12:45:54 DEBUG : Setting --config "/opt/rclone/rclone.conf" from environment variable RCLONE_CONFIG="/opt/rclone/rclone.conf"
2022/02/14 12:45:54 DEBUG : rclone: Version "v1.57.0" starting with parameters ["rclone" "ls" "GD:" "-vvv"]
2022/02/14 12:45:54 DEBUG : Creating backend with remote "GD:"
2022/02/14 12:45:54 DEBUG : Using config file from "/opt/rclone/rclone.conf"
2022/02/14 12:45:54 DEBUG : 4 go routines active
2022/02/14 12:45:54 Failed to ls: couldn't list directory: googleapi: Error 404: File not found: ., notFound
1 Like

That's it! I must have made an error when i did the initial config. Deleted the remote and recreated with root folder id blank, did the trick. Thanks!

1 Like

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