insufficientParentPermissions when copy or sync from local to google drive

What is the problem you are having with rclone?

test.txt: Failed to copy: googleapi: Error 403: Insufficient permissions for the specified parent., insufficientParentPermissions

I am getting the above error when I run copy or sync command. I wanted to copy a file from local pc to google drive. This happens when I explicitly configure root_folder_id to some sub folder of my google drive. When I remove it, the problem is solved but the files get uploaded to unknown google drive account. When I visited that folder_id, I had to request for the permission. I don't know what's going on here. When root_folder_id is set, I can list my documents as well. But when I remove it, I see nothing.

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

rclone v1.59.2

  • os/version: ubuntu 18.04 (64 bit)
  • os/kernel: 5.4.0-128-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.18.6
  • 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 copy test.txt remote:

The rclone config contents with secrets removed.

[remote]
type = drive
client_id = 611960119275-i1g2ag77seuvgo2lrshjtlho6e6f3cd4.apps.googleusercontent.com
client_secret = secret
scope = drive
service_account_file = /root/sa.json
team_drive =
root_folder_id = 1jxVHi0TBx7LRQNJxwWINCQm0OXjGiTF6

A log from the command with the -vv flag

2022/10/13 21:08:34 DEBUG : rclone: Version "v1.59.2" starting with parameters ["rclone" "copy" "-vv" "test.txt" "remote:"]
2022/10/13 21:08:34 DEBUG : Creating backend with remote "test.txt"
2022/10/13 21:08:34 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2022/10/13 21:08:34 DEBUG : fs cache: adding new entry for parent of "test.txt", "/root"
2022/10/13 21:08:34 DEBUG : Creating backend with remote "remote:"
2022/10/13 21:08:34 DEBUG : test.txt: Need to transfer - File not found at Destination
2022/10/13 21:08:35 ERROR : test.txt: Failed to copy: googleapi: Error 403: Insufficient permissions for the specified parent., insufficientParentPermissions
2022/10/13 21:08:35 ERROR : Attempt 1/3 failed with 1 errors and: googleapi: Error 403: Insufficient permissions for the specified parent., insufficientParentPermissions
2022/10/13 21:08:35 DEBUG : test.txt: Need to transfer - File not found at Destination
2022/10/13 21:08:36 ERROR : test.txt: Failed to copy: googleapi: Error 403: Insufficient permissions for the specified parent., insufficientParentPermissions
2022/10/13 21:08:36 ERROR : Attempt 2/3 failed with 1 errors and: googleapi: Error 403: Insufficient permissions for the specified parent., insufficientParentPermissions
2022/10/13 21:08:36 DEBUG : test.txt: Need to transfer - File not found at Destination
2022/10/13 21:08:37 ERROR : test.txt: Failed to copy: googleapi: Error 403: Insufficient permissions for the specified parent., insufficientParentPermissions
2022/10/13 21:08:37 ERROR : Attempt 3/3 failed with 1 errors and: googleapi: Error 403: Insufficient permissions for the specified parent., insufficientParentPermissions
2022/10/13 21:08:37 INFO  : 
Transferred:             39 B / 39 B, 100%, 19 B/s, ETA 0s
Errors:                 1 (retrying may help)
Elapsed time:         2.8s

2022/10/13 21:08:37 DEBUG : 8 go routines active
2022/10/13 21:08:37 Failed to copy: googleapi: Error 403: Insufficient permissions for the specified parent., insufficientParentPermissions

Did you get the folder id from a link?

If so check out this section of the docs which should help:

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