Rclone move not working for shared folders

I am using rclone v1.61.0, when i place the file in Goolgle drive shared folder as a 'Editor', and when executing move in rclone, file is moving and while deleting the file in google drive getting permission denied error. But when i login as 'Owner' account this is working fine.

Error:

rclone move imgsync:PIM-files /home/pimapi/rclone/PIM-files -v
2022/12/28 17:36:05 INFO : in/Photographer/For_editing/133532201.jpg: Copied (new)
2022/12/28 17:36:05 ERROR : in/Ready_Images/Direct_approval/133477519.jpg: Couldn't delete: googleapi: Error 403: The user does not have sufficient permissions for this file., insufficientFilePermissions

rclone v1.61.0

  • os/version: redhat 7.7 (64 bit)
  • os/kernel: 3.10.0-1062.1.1.el7.x86_64 (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.19.4
  • go/linking: static
  • go/tags: none

I think you answered your own question.

You need to use Owner :slight_smile:

But i need workaround to use it as Editor, please let me know if any workaround in place. We have multiple users placing the images through the google drive shared folder and those files should move to our linux server and the image should be deleted. It is not possible to share Owner credentials and we can share only the folder with editor access

You'd have to disable server side moves.

--disable move,copy

Thank you for your quick responce, i am new to RCLONE. can you help me with the entire command i tried like rclone --disable move,copy but it is throwing error.
Also tried this but no luck:

rclone move imgsync:PIM-files /home/pimapi/rclone/PIM-files --disable move,copy
2022/12/29 09:22:27 ERROR : in/Ready_Images/Direct_approval/133477519.jpg: Couldn't delete: googleapi: Error 403: The user does not have sufficient permissions for this file., insufficientFilePermissions

I can't really help with an entire command as you didn't fill in the help and support template so I don't know your setup.

You'd have to share all the information in the template to get real help.

Please let me know how to fill the template

When you first posted, there was a superb, nicely well written, lot of time involved in creating, solving world hunger template that was there.

What is the problem you are having with rclone?

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

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

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

Paste command here

The rclone config contents with secrets removed.

Paste config here

A log from the command with the -vv flag

Paste  log here

Please find the requested details below and let me know if you need any further information to investigate the issue further.

What is the problem you are having with rclone?
permissions error while using move command in rclone

Run the command 'rclone version' and share the full output of the command.
[XXX@XXXX-server ~]$ rclone version
rclone v1.61.0

  • os/version: redhat 7.7 (64 bit)
  • os/kernel: 3.10.0-1062.1.1.el7.x86_64 (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.19.4
  • 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 move imgsync:PIM-files /home/pimapi/rclone/PIM-files
OR
rclone move imgsync:PIM-files /home/pimapi/rclone/PIM-files --disable move,copy

The rclone config contents with secrets removed.
Editing existing "imgsync" remote with options:

  • type: drive
  • scope: drive
  • token: {"access_token":"xxxxxxxxxxxxxxxxxxxxx"}
  • team_drive:

Option client_id.
Google Application Client Id
Setting your own is recommended.
See Google drive for how to create your own.
If you leave this blank, it will use an internal key which is low performance.
Enter a value. Press Enter to leave empty.
client_id>

A log from the command with the -vv flag
[xxxxxxxxxx-server ~]$ rclone move imgsync:PIM-files /home/pimapi/rclone/PIM-files -vv
2022/12/29 20:03:38 DEBUG : rclone: Version "v1.61.0" starting with parameters ["rclone" "move" "imgsync:PIM-files" "/home/pimapi/rclone/PIM-files" "-vv"]
2022/12/29 20:03:38 DEBUG : Creating backend with remote "imgsync:PIM-files"
2022/12/29 20:03:38 DEBUG : Using config file from "/home/pimapi/.config/rclone/rclone.conf"
2022/12/29 20:03:38 DEBUG : Google drive root 'PIM-files': 'root_folder_id = 0ACTWiADcZNEKUk9PVA' - save this in the config to speed up startup
2022/12/29 20:03:39 DEBUG : Creating backend with remote "/home/pimapi/rclone/PIM-files"
2022/12/29 20:03:40 DEBUG : in/Ready_Images/Direct_approval/133491577.jpg: Size and modification time the same (differ by 0s, within tolerance 1ms)
2022/12/29 20:03:40 DEBUG : in/Ready_Images/Direct_approval/133491577.jpg: Unchanged skipping
2022/12/29 20:03:40 DEBUG : in/Ready_Images/For_approval/133537282.jpg: Size and modification time the same (differ by 0s, within tolerance 1ms)
2022/12/29 20:03:40 DEBUG : in/Ready_Images/For_approval/133537282.jpg: Unchanged skipping
2022/12/29 20:03:40 DEBUG : in/Photographer/For_editing/133532201.jpg: Size and modification time the same (differ by 0s, within tolerance 1ms)
2022/12/29 20:03:40 DEBUG : in/Photographer/For_editing/133532201.jpg: Unchanged skipping
2022/12/29 20:03:41 ERROR : in/Ready_Images/Direct_approval/133491577.jpg: Couldn't delete: googleapi: Error 403: The user does not have sufficient permissions for this file., insufficientFilePermissions
2022/12/29 20:03:41 ERROR : in/Ready_Images/For_approval/133537282.jpg: Couldn't delete: googleapi: Error 403: The user does not have sufficient permissions for this file., insufficientFilePermissions
2022/12/29 20:03:41 ERROR : in/Photographer/For_editing/133532201.jpg: Couldn't delete: googleapi: Error 403: The user does not have sufficient permissions for this file., insufficientFilePermissions
2022/12/29 20:03:42 DEBUG : Local file system at /home/pimapi/rclone/PIM-files: Waiting for checks to finish
2022/12/29 20:03:42 DEBUG : Local file system at /home/pimapi/rclone/PIM-files: Waiting for transfers to finish
2022/12/29 20:03:42 ERROR : Attempt 1/3 failed with 3 errors and: googleapi: Error 403: The user does not have sufficient permissions for this file., insufficientFilePermissions
2022/12/29 20:03:44 DEBUG : in/Photographer/For_editing/133532201.jpg: Size and modification time the same (differ by 0s, within tolerance 1ms)
2022/12/29 20:03:44 DEBUG : in/Photographer/For_editing/133532201.jpg: Unchanged skipping
2022/12/29 20:03:44 DEBUG : in/Ready_Images/Direct_approval/133491577.jpg: Size and modification time the same (differ by 0s, within tolerance 1ms)
2022/12/29 20:03:44 DEBUG : in/Ready_Images/Direct_approval/133491577.jpg: Unchanged skipping
2022/12/29 20:03:44 DEBUG : in/Ready_Images/For_approval/133537282.jpg: Size and modification time the same (differ by 0s, within tolerance 1ms)
2022/12/29 20:03:44 DEBUG : in/Ready_Images/For_approval/133537282.jpg: Unchanged skipping
2022/12/29 20:03:44 ERROR : in/Ready_Images/Direct_approval/133491577.jpg: Couldn't delete: googleapi: Error 403: The user does not have sufficient permissions for this file., insufficientFilePermissions
2022/12/29 20:03:44 ERROR : in/Photographer/For_editing/133532201.jpg: Couldn't delete: googleapi: Error 403: The user does not have sufficient permissions for this file., insufficientFilePermissions
2022/12/29 20:03:44 ERROR : in/Ready_Images/For_approval/133537282.jpg: Couldn't delete: googleapi: Error 403: The user does not have sufficient permissions for this file., insufficientFilePermissions
2022/12/29 20:03:44 DEBUG : pacer: Reducing sleep to 87.019021ms
2022/12/29 20:03:44 DEBUG : pacer: Reducing sleep to 183.150727ms
2022/12/29 20:03:44 DEBUG : pacer: Reducing sleep to 261.929527ms
2022/12/29 20:03:44 DEBUG : pacer: Reducing sleep to 297.545538ms
2022/12/29 20:03:44 DEBUG : pacer: Reducing sleep to 357.241016ms
2022/12/29 20:03:44 DEBUG : pacer: Reducing sleep to 440.305679ms
2022/12/29 20:03:44 DEBUG : pacer: Reducing sleep to 509.212077ms
2022/12/29 20:03:44 DEBUG : pacer: Reducing sleep to 528.005631ms
2022/12/29 20:03:44 DEBUG : pacer: Reducing sleep to 625.456901ms
2022/12/29 20:03:45 DEBUG : pacer: Reducing sleep to 658.710678ms
2022/12/29 20:03:45 DEBUG : pacer: Reducing sleep to 492.939651ms
2022/12/29 20:03:45 DEBUG : pacer: Reducing sleep to 0s
2022/12/29 20:03:46 DEBUG : pacer: Reducing sleep to 19.950951ms
2022/12/29 20:03:46 DEBUG : pacer: Reducing sleep to 102.659632ms
2022/12/29 20:03:46 DEBUG : pacer: Reducing sleep to 200.963355ms
2022/12/29 20:03:46 DEBUG : pacer: Reducing sleep to 113.073323ms
2022/12/29 20:03:46 DEBUG : pacer: Reducing sleep to 209.401167ms
2022/12/29 20:03:46 DEBUG : pacer: Reducing sleep to 286.473798ms
2022/12/29 20:03:46 DEBUG : pacer: Reducing sleep to 381.844148ms
2022/12/29 20:03:46 DEBUG : pacer: Reducing sleep to 468.217765ms
2022/12/29 20:03:46 DEBUG : pacer: Reducing sleep to 550.881623ms
2022/12/29 20:03:46 DEBUG : pacer: Reducing sleep to 645.1653ms
2022/12/29 20:03:46 DEBUG : pacer: Reducing sleep to 526.829944ms
2022/12/29 20:03:47 DEBUG : pacer: Reducing sleep to 458.451664ms
2022/12/29 20:03:47 DEBUG : pacer: Reducing sleep to 0s
2022/12/29 20:03:48 DEBUG : pacer: Reducing sleep to 38.652095ms
2022/12/29 20:03:48 DEBUG : pacer: Reducing sleep to 138.403846ms
2022/12/29 20:03:48 DEBUG : pacer: Reducing sleep to 218.892588ms
2022/12/29 20:03:48 DEBUG : pacer: Reducing sleep to 142.355661ms
2022/12/29 20:03:48 DEBUG : pacer: Reducing sleep to 239.385675ms
2022/12/29 20:03:48 DEBUG : pacer: Reducing sleep to 327.166601ms
2022/12/29 20:03:48 DEBUG : pacer: Reducing sleep to 425.381605ms
2022/12/29 20:03:48 DEBUG : pacer: Reducing sleep to 520.742513ms
2022/12/29 20:03:48 DEBUG : pacer: Reducing sleep to 604.977442ms
2022/12/29 20:03:48 DEBUG : pacer: Reducing sleep to 652.81372ms
2022/12/29 20:03:48 DEBUG : pacer: Reducing sleep to 551.601817ms
2022/12/29 20:03:49 DEBUG : pacer: Reducing sleep to 34.151844ms
2022/12/29 20:03:49 DEBUG : pacer: Reducing sleep to 0s
2022/12/29 20:03:50 DEBUG : pacer: Reducing sleep to 56.182293ms
2022/12/29 20:03:50 DEBUG : pacer: Reducing sleep to 98.843582ms
2022/12/29 20:03:50 DEBUG : pacer: Reducing sleep to 187.476252ms
2022/12/29 20:03:50 DEBUG : pacer: Reducing sleep to 268.639008ms
2022/12/29 20:03:50 DEBUG : pacer: Reducing sleep to 327.915561ms
2022/12/29 20:03:50 DEBUG : pacer: Reducing sleep to 388.711237ms
2022/12/29 20:03:50 DEBUG : pacer: Reducing sleep to 464.625449ms
2022/12/29 20:03:50 DEBUG : pacer: Reducing sleep to 538.820033ms
2022/12/29 20:03:50 DEBUG : pacer: Reducing sleep to 621.159559ms
2022/12/29 20:03:50 DEBUG : Local file system at /home/pimapi/rclone/PIM-files: Waiting for checks to finish
2022/12/29 20:03:50 DEBUG : Local file system at /home/pimapi/rclone/PIM-files: Waiting for transfers to finish
2022/12/29 20:03:50 ERROR : Attempt 2/3 failed with 3 errors and: googleapi: Error 403: The user does not have sufficient permissions for this file., insufficientFilePermissions
2022/12/29 20:03:50 DEBUG : pacer: Reducing sleep to 499.462451ms
2022/12/29 20:03:51 DEBUG : pacer: Reducing sleep to 0s
2022/12/29 20:03:51 DEBUG : pacer: Reducing sleep to 48.012891ms
2022/12/29 20:03:51 DEBUG : pacer: Reducing sleep to 121.14708ms
2022/12/29 20:03:51 DEBUG : pacer: Reducing sleep to 147.256332ms
2022/12/29 20:03:51 DEBUG : pacer: Reducing sleep to 171.583137ms
2022/12/29 20:03:51 DEBUG : pacer: Reducing sleep to 238.773117ms
2022/12/29 20:03:52 DEBUG : pacer: Reducing sleep to 319.498982ms
2022/12/29 20:03:52 DEBUG : pacer: Reducing sleep to 414.553089ms
2022/12/29 20:03:52 DEBUG : pacer: Reducing sleep to 505.808649ms
2022/12/29 20:03:52 DEBUG : pacer: Reducing sleep to 595.109261ms
2022/12/29 20:03:52 DEBUG : in/Photographer/For_editing/133532201.jpg: Size and modification time the same (differ by 0s, within tolerance 1ms)
2022/12/29 20:03:52 DEBUG : in/Photographer/For_editing/133532201.jpg: Unchanged skipping
2022/12/29 20:03:52 DEBUG : pacer: Reducing sleep to 613.939934ms
2022/12/29 20:03:52 DEBUG : pacer: Reducing sleep to 659.293975ms
2022/12/29 20:03:52 DEBUG : pacer: Reducing sleep to 612.350883ms
2022/12/29 20:03:52 DEBUG : pacer: Reducing sleep to 127.052544ms
2022/12/29 20:03:53 DEBUG : pacer: Reducing sleep to 0s
2022/12/29 20:03:53 DEBUG : pacer: Reducing sleep to 33.887233ms
2022/12/29 20:03:53 DEBUG : in/Ready_Images/Direct_approval/133491577.jpg: Size and modification time the same (differ by 0s, within tolerance 1ms)
2022/12/29 20:03:53 DEBUG : in/Ready_Images/Direct_approval/133491577.jpg: Unchanged skipping
2022/12/29 20:03:53 DEBUG : pacer: Reducing sleep to 99.060004ms
2022/12/29 20:03:53 DEBUG : pacer: Reducing sleep to 158.373994ms
2022/12/29 20:03:54 DEBUG : pacer: Reducing sleep to 210.164627ms
2022/12/29 20:03:54 DEBUG : pacer: Reducing sleep to 286.067365ms
2022/12/29 20:03:54 DEBUG : in/Ready_Images/For_approval/133537282.jpg: Size and modification time the same (differ by 0s, within tolerance 1ms)
2022/12/29 20:03:54 DEBUG : in/Ready_Images/For_approval/133537282.jpg: Unchanged skipping
2022/12/29 20:03:54 DEBUG : pacer: Reducing sleep to 380.850433ms
2022/12/29 20:03:54 ERROR : in/Photographer/For_editing/133532201.jpg: Couldn't delete: googleapi: Error 403: The user does not have sufficient permissions for this file., insufficientFilePermissions
2022/12/29 20:03:54 DEBUG : pacer: Reducing sleep to 446.325812ms
2022/12/29 20:03:54 DEBUG : pacer: Reducing sleep to 546.104664ms
2022/12/29 20:03:54 DEBUG : pacer: Reducing sleep to 610.765716ms
2022/12/29 20:03:54 DEBUG : pacer: Reducing sleep to 690.709358ms
2022/12/29 20:03:54 DEBUG : pacer: Reducing sleep to 755.816515ms
2022/12/29 20:03:54 DEBUG : pacer: Reducing sleep to 729.270784ms
2022/12/29 20:03:54 DEBUG : pacer: Reducing sleep to 743.981965ms
2022/12/29 20:03:54 ERROR : in/Ready_Images/Direct_approval/133491577.jpg: Couldn't delete: googleapi: Error 403: The user does not have sufficient permissions for this file., insufficientFilePermissions
2022/12/29 20:03:54 DEBUG : pacer: Reducing sleep to 313.654974ms
2022/12/29 20:03:55 DEBUG : pacer: Reducing sleep to 0s
2022/12/29 20:03:55 DEBUG : pacer: Reducing sleep to 21.092983ms
2022/12/29 20:03:55 DEBUG : pacer: Reducing sleep to 104.931371ms
2022/12/29 20:03:55 DEBUG : pacer: Reducing sleep to 194.148266ms
2022/12/29 20:03:55 DEBUG : pacer: Reducing sleep to 204.674976ms
2022/12/29 20:03:55 DEBUG : pacer: Reducing sleep to 271.887623ms
2022/12/29 20:03:55 DEBUG : pacer: Reducing sleep to 368.020772ms
2022/12/29 20:03:55 DEBUG : pacer: Reducing sleep to 448.839123ms
2022/12/29 20:03:55 DEBUG : pacer: Reducing sleep to 548.392323ms
2022/12/29 20:03:56 DEBUG : pacer: Reducing sleep to 609.41033ms
2022/12/29 20:03:56 DEBUG : pacer: Reducing sleep to 657.4386ms
2022/12/29 20:03:56 ERROR : in/Ready_Images/For_approval/133537282.jpg: Couldn't delete: googleapi: Error 403: The user does not have sufficient permissions for this file., insufficientFilePermissions
2022/12/29 20:03:56 DEBUG : pacer: Reducing sleep to 745.84647ms
2022/12/29 20:03:56 DEBUG : pacer: Reducing sleep to 753.548247ms
2022/12/29 20:03:56 DEBUG : pacer: Reducing sleep to 688.928581ms
2022/12/29 20:03:57 DEBUG : pacer: Reducing sleep to 0s
2022/12/29 20:03:58 DEBUG : pacer: Reducing sleep to 790.913┬Ás
2022/12/29 20:03:58 DEBUG : pacer: Reducing sleep to 98.17151ms
2022/12/29 20:03:58 DEBUG : pacer: Reducing sleep to 193.117691ms
2022/12/29 20:03:58 DEBUG : pacer: Reducing sleep to 283.946204ms
2022/12/29 20:03:58 DEBUG : pacer: Reducing sleep to 379.184296ms
2022/12/29 20:03:58 DEBUG : pacer: Reducing sleep to 450.814275ms
2022/12/29 20:03:58 DEBUG : pacer: Reducing sleep to 530.195474ms
2022/12/29 20:03:58 DEBUG : pacer: Reducing sleep to 558.033448ms
2022/12/29 20:03:58 DEBUG : pacer: Reducing sleep to 585.539616ms
2022/12/29 20:03:58 DEBUG : pacer: Reducing sleep to 650.539266ms
2022/12/29 20:03:58 DEBUG : pacer: Reducing sleep to 667.501053ms
2022/12/29 20:03:58 DEBUG : pacer: Reducing sleep to 235.094528ms
2022/12/29 20:03:59 DEBUG : pacer: Reducing sleep to 0s
2022/12/29 20:03:59 DEBUG : pacer: Reducing sleep to 4.165394ms
2022/12/29 20:03:59 DEBUG : pacer: Reducing sleep to 90.15815ms
2022/12/29 20:03:59 DEBUG : pacer: Reducing sleep to 165.289298ms
2022/12/29 20:03:59 DEBUG : pacer: Reducing sleep to 142.600989ms
2022/12/29 20:03:59 DEBUG : pacer: Reducing sleep to 232.237476ms
2022/12/29 20:04:00 DEBUG : pacer: Reducing sleep to 310.874646ms
2022/12/29 20:04:00 DEBUG : pacer: Reducing sleep to 370.527085ms
2022/12/29 20:04:00 DEBUG : pacer: Reducing sleep to 464.210973ms
2022/12/29 20:04:00 DEBUG : pacer: Reducing sleep to 556.547585ms
2022/12/29 20:04:00 DEBUG : pacer: Reducing sleep to 535.746295ms
2022/12/29 20:04:00 DEBUG : pacer: Reducing sleep to 568.780703ms
2022/12/29 20:04:00 DEBUG : pacer: Reducing sleep to 561.609745ms
2022/12/29 20:04:00 DEBUG : pacer: Reducing sleep to 126.4152ms
2022/12/29 20:04:01 DEBUG : pacer: Reducing sleep to 0s
2022/12/29 20:04:01 DEBUG : Local file system at /home/pimapi/rclone/PIM-files: Waiting for checks to finish
2022/12/29 20:04:01 DEBUG : Local file system at /home/pimapi/rclone/PIM-files: Waiting for transfers to finish
2022/12/29 20:04:01 ERROR : Attempt 3/3 failed with 3 errors and: googleapi: Error 403: The user does not have sufficient permissions for this file., insufficientFilePermissions
2022/12/29 20:04:01 INFO :
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Errors: 3 (retrying may help)
Checks: 18 / 18, 100%
Deleted: 9 (files), 0 (dirs)
Elapsed time: 23.2s

2022/12/29 20:04:01 DEBUG : 24 go routines active
2022/12/29 20:04:01 Failed to move with 3 errors: last error was: googleapi: Error 403: The user does not have sufficient permissions for this file., insufficientFilePermissions

Do you have permisson to delete the source files? If not use rclone copy instead of rclone move.

Thank you for your quick reply, actually we need to remove the file from the Google Drive as soon as the file moved to our Linux server so i am using move command. As mentioned earlier this is shared google drive and access with 'Editors' are moving the files.

So you are moving from Google Drive to a local drive? Is that right?

Just do a simple test on your file.

rclone delete imgsync:sometestfile

If you can't delete, you don't have permissions as editor.

rclone lsf imgsync:PIM-files/in/Ready_Images/Direct_approval/
133491577.jpg
[pimapi@pim-t-tst-nodeapi-server conf]$ rclone delete imgsync:PIM-files/in/Ready_Images/Direct_approval/133491577.jpg
2022/12/29 20:52:12 ERROR : 133491577.jpg: Couldn't delete: googleapi: Error 403: The user does not have sufficient permissions for this file., insufficientFilePermissions

But i should be able to move the files with these permissions. It was working in Insync and now we are planning to switch to rclone but stuck here

I'm not sure what that is as if it's working, stick with it?

That's a permissions issue as it's reporting back.

Are you sure you are using the right user? You can reconnect the backend with rclone config reconnect nameofbackendgoeshere: and double check you are logged in as the correct user when you do the oauth.

please help me with the name of the backend. What should i pass here.

According to what you wrote above imgsync: should be the right name.

Run rclone listremotes to see all the names that you can use.

[pimapi@xxxxl]$ rclone listremotes
imgsync:
imgtransf:
syncimage:

I have created two more new folders here.

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