OneDrive issues - crypt drive from shared folder - can't delete files

Hey - I have a crypt drive from a shared folder in OneDrive (personal not business) I have the proper permissions set in both OneDrives and the shared folder is added to my account. I’m able to create a folder via ftp in the mount also thru the mkdir command in rclone but when trying to add new files/folders into it i got this error:

2018/08/27 21:16:58 DEBUG : rclone: Version “v1.42-140-g7194c358β” starting with parameters [“rclone” “-vv” “copy” “/root/plexmediaserver_1.12.0.4829-6de959918_amd64.deb” “h3116473:test01”]
2018/08/27 21:16:58 DEBUG : Using config file from “/root/.config/rclone/rclone.conf”
2018/08/27 21:17:01 DEBUG : plexmediaserver_1.12.0.4829-6de959918_amd64.deb: Couldn’t find file - need to transfer
2018/08/27 21:17:01 ERROR : plexmediaserver_1.12.0.4829-6de959918_amd64.deb: Failed to copy: failed to make directory: nameAlreadyExists: An item with the same name already exists under the parent
2018/08/27 21:17:01 ERROR : Attempt 1/3 failed with 1 errors and: failed to make directory: nameAlreadyExists: An item with the same name already exists under the parent
2018/08/27 21:17:01 DEBUG : plexmediaserver_1.12.0.4829-6de959918_amd64.deb: Couldn’t find file - need to transfer
2018/08/27 21:17:01 ERROR : plexmediaserver_1.12.0.4829-6de959918_amd64.deb: Failed to copy: failed to make directory: nameAlreadyExists: An item with the same name already exists under the parent
2018/08/27 21:17:01 ERROR : Attempt 2/3 failed with 1 errors and: failed to make directory: nameAlreadyExists: An item with the same name already exists under the parent
2018/08/27 21:17:01 DEBUG : plexmediaserver_1.12.0.4829-6de959918_amd64.deb: Couldn’t find file - need to transfer
2018/08/27 21:17:01 ERROR : plexmediaserver_1.12.0.4829-6de959918_amd64.deb: Failed to copy: failed to make directory: nameAlreadyExists: An item with the same name already exists under the parent
2018/08/27 21:17:01 ERROR : Attempt 3/3 failed with 1 errors and: failed to make directory: nameAlreadyExists: An item with the same name already exists under the parent
2018/08/27 21:17:01 Failed to copy: failed to make directory: nameAlreadyExists: An item with the same name already exists under the parent

I have no others folders with the same names neither similar. so not sure why can’t copy / create folders or subfolders into my crypt drive. Is that because is from a shared folder? I’m using the latest beta rclone-v1.42-140-g7194c358β-linux-amd64

Also can’t delete files that are in the crypt drive - it works fine if the crypt drive is from a folder under my own account but fails when using a shared folder. Any ideas?

Thanks in advance

Hi,

It seems this error nameAlreadyExists: An item with the same name already exists under the parent is returned by the remote server. Does the problem exist if you don’t use crypt? Also, rclone may be migrating to the new API for OneDrive soon. So could you try to reproduce this with the version here? https://beta.rclone.org/branch/v1.42-133-gb874bc22-Cnly-graph/

Thanks!

Hi - I updated my rclone for the beta you mentioned and in fact it solves the nameAlreadyExists: An item with the same name already exists under the parent error, had to reconfigure my OneDrive backend due the API udpate and creating files and folders is ok now, Thanks a lot!

The only problem I’m facing now is that I can’t rename, move or delete the files and folders inside my mounted drive (crypt) will be a different issue? - note that as mentioned before my mounted (crypt) drive is from a shared folder in my OneDrive backend, if I mount my crypt drive from a regular folder it works ok. any ideas? Thanks in advance

Thanks for trying out the beta. You said you can’t rename, move or delete now - are you getting any error messages? Also, if you don’t use crypt but use the OneDrive backend directly, does the problem continue to exist?

That’s correct - when using the rm -r option in terminal I receive an Input/output error response also when I want to perform any of the actions described.

I tried deleting a directory via rclone (rmdir) and got an error saying my folder does not exists but it’s already in there ERROR : Attempt 3/3 failed with 1 errors and: directory not found. I’ve cheked for typos and inconsistences in names but everything is ok.

Also answering your question - if I use my OneDrive backend it works without any problems as supposed to. The issue is only when mounting a crypt from a shared folder…

As an update to my previous answer I found after made a lot of tests in different scenarios the issue affects only folders. I can’t rename, move or delete any folder - while I’m allowed to perform all those actions with all file types.

I’m still in the same environment as described, Crypt drive mounted > shared folder > OneDrive backend. Any ideas?

I’ve done some tests to and I’m able to confirm there are some problems with shared folders on Personal Onedrive. But the problem should still exist even if you are not using crypt - at least on my side I was able to reproduce the problem without using crypt.

This problem is caused by Microsoft Graph API’s (weird) requirements on the request URLs for shared items. I will try to fix this in the code ASAP.

Thanks for your report.

1 Like

Ok thanks for looking into it, keep us posted on the fix to give it a try.

Update: I did some search and found this is actually a partially fixed bug (#1200, #2369), and it’s more complicated than I’ve thought… I’ve been stuck for hours now. Given the current situation and Microsoft’s limitation, we may need some further discussion before we can solve this properly. Sorry about that :confused:

Ok I see, well thanks for the time you’re taking and hope can figure it out at some point later.
I’ll plan a workaround for my setup.