After setting up Google Drive config, cannot sync, what is wrong?

I configured rclone according to these directions. However, once this was configured,

my config file looks like this:
--------------------
[gdrive]
type = drive
client_id =
client_secret =
scope = drive
root_folder_id = nas
service_account_file =
token = {“access_token”:“omit”,“token_type”:“Bearer”,“refresh_token”:“omit”,“expiry”:“2018-08-27T02:31:33.045034512Z”}
--------------------

However, when I go to create a test file in the remote, I get the following.

:~$ rclone mkdir -vv gdrive:test
2018/08/27 01:31:49 DEBUG : rclone: Version “v1.42” starting with parameters [“rclone” “mkdir” “-vv” “gdrive:test”]
2018/08/27 01:31:49 DEBUG : Using config file from “/home/user/.config/rclone/rclone.conf”
2018/08/27 01:31:49 DEBUG : Google drive root ‘test’: Making directory
2018/08/27 01:31:50 ERROR : Attempt 1/3 failed with 1 errors and: couldn’t list directory: googleapi: Error 404: File not found: ., notFound
2018/08/27 01:31:50 DEBUG : Google drive root ‘test’: Making directory
2018/08/27 01:31:50 ERROR : Attempt 2/3 failed with 1 errors and: couldn’t list directory: googleapi: Error 404: File not found: ., notFound
2018/08/27 01:31:50 DEBUG : Google drive root ‘test’: Making directory
2018/08/27 01:31:50 ERROR : Attempt 3/3 failed with 1 errors and: couldn’t list directory: googleapi: Error 404: File not found: ., notFound
2018/08/27 01:31:50 Failed to mkdir: couldn’t list directory: googleapi: Error 404: File not found: ., notFound
user@nas:~$ rclone mkdir -vv gdrive:/test
2018/08/27 01:34:39 DEBUG : rclone: Version “v1.42” starting with parameters [“rclone” “mkdir” “-vv” “gdrive:/test”]
2018/08/27 01:34:39 DEBUG : Using config file from “/home/user/.config/rclone/rclone.conf”
2018/08/27 01:34:40 DEBUG : Google drive root ‘test’: Making directory
2018/08/27 01:34:40 ERROR : Attempt 1/3 failed with 1 errors and: couldn’t list directory: googleapi: Error 404: File not found: ., notFound
2018/08/27 01:34:40 DEBUG : Google drive root ‘test’: Making directory
2018/08/27 01:34:40 ERROR : Attempt 2/3 failed with 1 errors and: couldn’t list directory: googleapi: Error 404: File not found: ., notFound
2018/08/27 01:34:40 DEBUG : Google drive root ‘test’: Making directory
2018/08/27 01:34:40 ERROR : Attempt 3/3 failed with 1 errors and: couldn’t list directory: googleapi: Error 404: File not found: ., notFound
2018/08/27 01:34:40 Failed to mkdir: couldn’t list directory: googleapi: Error 404: File not found: ., notFound
user@nas:~$ cat ~/.config/rclone/rclone.conf

So far I have not been able to do anything with the remote configuration, is there something I am missing?

You have to leave root_folder_id empty.

It is not needed for regular usage and otherwise needs to be a folder id (not a folder name) as stated in the documentation.

1 Like