Support

Akeeba Backup for Joomla!

#31598 Remote Backup with OneDrive; error "Could not create directory .... 500: Error generalException: Cannot perform operation within a mounted folder"

Posted in ‘Akeeba Backup for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Akeeba Backup version
n/a

Latest post by tfecha on Friday, 02 August 2019 00:08 CDT

tfecha
Description of my issue:
The post-processing part of my backups fails with the error "Could not create directory .... 500: Error general exception: Cannot perform operation within a mounted folder".
The target folder exists on OneDrive but it's a shared folder - shared with that account which I use in the Authentication Step 1. Using a private folder on my OneDrive works. Is that a problem to use shared folders?

nicholas
Akeeba Staff
Manager
You cannot upload to a folder that belongs to a different user / Drive and has been shared with you. This kind of operation would require discovering which path in the tree leading to the file is a shared folder mountpoint, retrieve its Drive ID and modify the upload URL to point to the actual drive hosting the shared folder (and hope the permissions at the OneDrive level are correct). While a desktop application can afford to spend 15 to 30 seconds for the discovery phase this would be detrimental for web software running within tight execution time constraints like Akeeba Backup so we chose to not implement it. To make it clear: we didn't implement this feature because in most cases it would cause your web server to time out and the backup to fail. Since the problem has to do with the delay coming from using the OneDrive API and the timeout restrictions of your server there is no viable workaround we can implement. Therefore we chose not to ship a feature that would be broken due to no fault of our own.

However, if you create a folder in your OneDrive account and share it with someone else you don't have that problem. The upload takes place inside your own Drive and everything works fine.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

tfecha
Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!