Failed to Rmdir Access is denied

What is the problem you are having with rclone?

rclone sync does not delete directories even when run in admin mode

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

rclone v1.58.0
- os/version: Microsoft Windows 10 Enterprise 21H1 (64 bit)
- os/kernel: 10.0.19043.1586 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.17.8
- go/linking: dynamic
- go/tags: cmount

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

local

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

rclone sync C:\Users\turkeyphant\Nextcloud\Calibre "C:\Users\turkeyphant\Google Drive\Calibre" -vv

The rclone config contents with secrets removed.

[gd]
type = drive
scope = drive.file
token = 

[local]
type = local

A log from the command with the -vv flag

rclone rmdir "C:\Users\turkeyphant\Google Drive\Calibre\Alex Danchev (ed)" -vv
2022/03/29 14:39:33 DEBUG : rclone: Version "v1.58.0" starting with parameters ["rclone" "rmdir" "C:\\Users\\turkeyphant\\Google Drive\\Calibre\\Alex Danchev (ed)" "-vv"]
2022/03/29 14:39:33 DEBUG : Creating backend with remote "C:\\Users\\turkeyphant\\Google Drive\\Calibre\\Alex Danchev (ed)"
2022/03/29 14:39:33 DEBUG : Using config file from "C:\\Users\\turkeyphant\\.config\\rclone\\rclone.conf"
2022/03/29 14:39:33 DEBUG : fs cache: renaming cache item "C:\\Users\\turkeyphant\\Google Drive\\Calibre\\Alex Danchev (ed)" to be canonical "//?/C:/Users/turkeyphant/Google Drive/Calibre/Alex Danchev (ed)"
2022/03/29 14:39:33 INFO  : Local file system at //?/C:/Users/turkeyphant/Google Drive/Calibre/Alex Danchev (ed): Removing directory
2022/03/29 14:39:33 ERROR : Attempt 1/3 failed with 1 errors and: remove \\?\C:\Users\turkeyphant\Google Drive\Calibre\Alex Danchev (ed): Access is denied.
2022/03/29 14:39:33 INFO  : Local file system at //?/C:/Users/turkeyphant/Google Drive/Calibre/Alex Danchev (ed): Removing directory
2022/03/29 14:39:33 ERROR : Attempt 2/3 failed with 1 errors and: remove \\?\C:\Users\turkeyphant\Google Drive\Calibre\Alex Danchev (ed): Access is denied.
2022/03/29 14:39:33 INFO  : Local file system at //?/C:/Users/turkeyphant/Google Drive/Calibre/Alex Danchev (ed): Removing directory
2022/03/29 14:39:33 ERROR : Attempt 3/3 failed with 1 errors and: remove \\?\C:\Users\turkeyphant\Google Drive\Calibre\Alex Danchev (ed): Access is denied.
2022/03/29 14:39:33 DEBUG : 2 go routines active
2022/03/29 14:39:33 Failed to rmdir: remove \\?\C:\Users\turkeyphant\Google Drive\Calibre\Alex Danchev (ed): Access is denied.

not able to access that dropbox webpage???

so you are using rclone to copy from local to local?

can you run a command that tries to delete just the folder that you get the error for?
rclone rmdir c:\..... -vv and just post that into the forum, no need for dropbox.

and fwiw, i also use calibre software, great software.

Thanks, edited OP with debug log.

looks like a windows permission error.
check the file/dir permissions.

can you delete the dir using dos rmdir?

and just curious, why does the source has Nextcloud and the dest has Google Drive?

Yes it's a permissions error but I'm running cmd as Administrator I'm not sure what else I can do.

It doesn't work with regular rmdir either.

Because I'm syncing from Nextcloud to Google Drive.

so not a rclone issue.

the source and dest are both local,
so how are you syncing between two clouds providers?

what am i missing, that you are using rclone mount for the source and for the dest?

This is nothing to do with cloud providers (although these folders do both sync to the cloud).

I'm not mounting anything. I'm just using rclone like rsync.

sorry, not understanding. please can you explain in detail?

how can you sync between two cloud provides using just local for source and dest?
for "C:\Users\turkeyphant\Google Drive\Calibre", are you using the gdrive sync app?

Using sync apps for both.

so the dir that cannot be removed is controlled by a third party sync app,
nothing rclone can do about that.

imho, seems way too complex, using three apps when only one is needed.
rclone sync nextcloud:Calibre gdrive:Calibre

I disabled all the apps before running the command. And I wanted to do it locally as it's a very big directory and will take ages over the web.

ok, at this point, not sure what rclone issue you need help with?

None, I'm just replying to your questions.

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