Unable to transfer files to Google Drive. Using a service account through Gsuite (I am the admin) rclone mount --dir-cache-time 96h --cache-info-age 100h --vfs-cache-mode writes --allow-other -vv --drive-impersonate email@example.com drive: /opt/drive1 I have tried with no folder path, same issue. And without impersonation and no folder ID it transfers the files but I can't see it in Drive.
Yes, I have set Domain-wide delegation for the Service Account too.
Run the command 'rclone version' and share the full output of the command.
rclone v1.50.2
os/arch: linux/amd64
go version: go1.13.6
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)
2022/05/27 14:09:24 DEBUG : test.txt: Need to transfer - File not found at Destination
2022/05/27 14:09:25 ERROR : test.txt: Failed to copy: googleapi: Error 404: File not found: FOLDERPATH., notFound
Thanks for the response, I realised the version was pretty old. So now I'm on v1.58.1.
I tried without the root_folder_id option, and it does copy files, however I still can't see it in the drive account. If I enter the folder ID in Google drive in my browser it says I need access to see the folder which is weird.
I tried again with a new root_folder_id that I created and I still get the 404 error.
Not seeing anything irregular in the logs other than the transfer showing the 404 when I set the folder ID 2022/05/28 11:19:38 DEBUG : test2.txt: Need to transfer - File not found at Destination 2022/05/28 11:19:38 ERROR : test2.txt: Failed to copy: googleapi: Error 404: File not found: X., notFound
in my remotes, they do not contain client_id and client_secret, as that would be in the .json.
normally this would not matter, as rclone will use the client_id and client_secret, from the .json.
tho not sure how root_folder_id and --drive-impersonate affect that
so this is a valid and working remote
rclone config show gdrivesa:
--------------------
[gdrivesa]
client_id = dummy
client_secret = dummy
type = drive
scope = drive
service_account_file = C:\data\rclone\rr\gdrive.sa\v02.json
--------------------
rclone about gdrivesa:
Total: 15 GiB
Used: 260.726 KiB
Free: 15.000 GiB
Trashed: 0 B
Other: 0 B
Thanks, I removed the client id and secret, as well as the root folder id. It finds the right root folder id automatically, but again it doesn't actually show the files in Google Drive when I transfer it on my server.
What I needed to do, was to share the root folder id of the folder I created on my account with the service account email. I realised I needed to do that when I could actually see my files through rclone -v --drive-impersonate email@example.com lsf drive