Mounted OneDrive: Invalid Parent Path

Your are welcome, happy to hear! :sweat_smile:

Thanks, sounds like something rclone should be able to handle without issues. The OneDrive backend was added to rclone in 2015, so I would expect it has handled lots of old Microsoft accounts before.

This just further strengthens my suspicion that the bug lies in the relatively new polling code.

Great, can I persuade you to create a GitHub bug report based on the information in your above post:
https://forum.rclone.org/t/mounted-onedrive-invalid-parent-path/35106/7

Hmm, not sure, but it looks like a timing issue where the underlying rclone rmdir sometimes reaches OneDrive before the rclone deletefiles have completed. Perhaps triggered by Borg doing rapid renames/deletes of temp files.

I did some research and it seems like Borg and rclone mount doesn't always play well together, here are some links:
https://forum.rclone.org/t/best-practice-for-integrating-rclone-and-borgbackup/26166
https://github.com/borgbackup/borg/issues/5324

Based on the pattern I see in your logs, it may be possible to work around (some of) these issues by keeping more data in the local mount cache and writing less often to OneDrive. Here are some parameters you may want to modify/add to your mount command to do this:

--vfs-cache-mode=full --vfs-write-back=10m --vfs-cache-max-age=48h --vfs-cache-max-size=10G

You can probably guess my intent when reading about the parameters here:
https://rclone.org/commands/rclone_mount/#vfs-file-caching

It is a quick guess based on incomplete knowledge and therefore probably need some testing and adjustments to fit your machine and usage - and is given without any guarantee of success :grinning: