Google Drive setup - remote not found

What is the problem you are having with rclone?

Set up a Google Drive and followed all steps in the doc and got a success screen from Google. Back at the cli I quit the config; rclone lsd remote (with or without :slight_smile: returns

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

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

rclone v1.58.1

  • os/version: ubuntu 22.04 (64 bit)
  • os/kernel: 5.15.0-27-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.17.9
  • 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 remote

The rclone config contents with secrets removed.

[remote]
type = drive
client_id = xxx.apps.googleusercontent.com
client_secret = yyy
scope = drive
root_folder_id = 1
token = {"access_token":"nonse.apps.googleusercontent.com
l","token_type":"Bearer","refresh_token":"more_nonses","expiry":"2022-05-11T16:37:16.068618654-04:00"}
team_drive = 

A log from the command with the -vv flag

2022/05/11 16:05:58 DEBUG : rclone: Version "v1.58.1" starting with parameters ["rclone" "lsd" "remote" "-vv"]
2022/05/11 16:05:58 DEBUG : Creating backend with remote "remote"
2022/05/11 16:05:58 DEBUG : Using config file from "/home/marc/.config/rclone/rclone.conf"
2022/05/11 16:05:58 DEBUG : fs cache: renaming cache item "remote" to be canonical "/home/marc/remote"
2022/05/11 16:05:58 ERROR : : error listing: directory not found
2022/05/11 16:05:58 DEBUG : 2 go routines active
2022/05/11 16:05:58 Failed to lsd with 2 errors: last error was: directory not found

hello and welcome to the forum,

remotes need a colon character.
rclone lsd remote:

notice that rclone thinks remote is a local subfolder
renaming cache item "remote" to be canonical "/home/marc/remote"

Thanks for the warm welcome. Sorry, cant find how to rename the cache - appreciate if you give me the command instructions. Kind regards, Marc

the problem is the syntax of the name of the remote, which needs to include :, the colon character

your command is
rclone lsd remote

the correct command should be
rclone lsd remote:

I noticed that first time and had that way. But it still gives me the same error. Just tried again, same:
rclone lsd remote:
2022/05/11 18:50:37 ERROR : : error listing: couldn't list directory: googleapi: Error 404: File not found: ., notFound
2022/05/11 18:50:37 Failed to lsd with 2 errors: last error was: couldn't list directory: googleapi: Error 404: File not found: ., notFound

can you post a full debug log, not a snippet.

$ rclone lsd remote -vv
2022/05/11 19:02:27 DEBUG : rclone: Version "v1.58.1" starting with parameters ["rclone" "lsd" "remote" "-vv"]
2022/05/11 19:02:27 DEBUG : Creating backend with remote "remote"
2022/05/11 19:02:27 DEBUG : Using config file from "/home/marc/.config/rclone/rclone.conf"
2022/05/11 19:02:27 DEBUG : fs cache: renaming cache item "remote" to be canonical "/home/marc/Documents/Code/remote"
2022/05/11 19:02:27 ERROR : : error listing: directory not found
2022/05/11 19:02:27 DEBUG : 2 go routines active
2022/05/11 19:02:27 Failed to lsd with 2 errors: last error was: directory not found

the one change, I went to a diff folder, but same outcome

that command will not work, no point in using it, ok?

the correct command is
rclone lsd remote: -vv

Thanks
$ rclone lsd remote: -vv
2022/05/11 20:03:14 DEBUG : rclone: Version "v1.58.1" starting with parameters ["rclone" "lsd" "remote:" "-vv"]
2022/05/11 20:03:14 DEBUG : Creating backend with remote "remote:"
2022/05/11 20:03:14 DEBUG : Using config file from "/home/marc/.config/rclone/rclone.conf"
2022/05/11 20:03:14 DEBUG : remote: Loaded invalid token from config file - ignoring
2022/05/11 20:03:14 DEBUG : Saving config "token" in section "remote" of the config file
2022/05/11 20:03:14 DEBUG : remote: Saved new token in config file
2022/05/11 20:03:14 ERROR : : error listing: couldn't list directory: googleapi: Error 404: File not found: ., notFound
2022/05/11 20:03:14 DEBUG : 6 go routines active
2022/05/11 20:03:14 Failed to lsd with 2 errors: last error was: couldn't list directory: googleapi: Error 404: File not found: ., notFound

as a test, remove root_folder_id = 1 from the remote config.

Thank you so much! This solved it. Have a great evening (or whatever is appropriate where you reside).

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