Get the Best WordPress Backup
& Migration Plugin Today
Get Duplicator Now

Duplicator Documentation

Documentation, Reference Materials, and Tutorials for Duplicator

Troubleshooting OneDrive Storage Issues

Having trouble with OneDrive Storage in Duplicator Pro? This guide provides practical solutions to troubleshoot and resolve the issues effectively.

To begin with, make sure you are using the latest version of Duplicator Pro. Please check the changelog and system requirements.

Resolving OneDrive Upload Failures During Scheduled Builds

If the upload process to OneDrive fails during a scheduled build, we recommend the solutions below to assist with your troubleshooting.

Option One: Upload Issues with OneDrive Storage

The issue may be linked to temporary network conditions. If you encounter this problem, consider adjusting the following setting:

Navigate to Settings » Storage » Storage Types » OneDrive and modify the “Upload Size” option to 5120KB.

This adjustment reduces the data packet size sent to OneDrive Storage, which can help mitigate intermittent network disruptions and enhance upload stability.

Resolving Connection Error Message

When trying to connect a new OneDrive storage endpoint, the error message states:

The refresh token is not set, or no permissions for ‘wl.offline_access’ were granted to renew the token.

Option One: Check Permission Settings

Create a new OneDrive storage endpoint and enable the “All folders read-write permission” option during setup.

Customizing the App Directory is Possible?

Can the default path for OneDrive storage, currently set to the /App/ directory, be customized?

The OneDrive option is limited to the /Apps/ folder for security purposes, and currently, it is not possible to modify the path to a location outside of this folder.

Resolving Issues with M365 and Security Plugin

If you’re encountering issues with M365 and security plugins altering the secret keys in the wp-config.php file, it’s often due to automatic updates made by the security settings.

To resolve OneDrive configuration issues due to regional account settings (commonly seen in Germany), follow these steps:

Check Permissions: While setting up OneDrive storage, ensure that the “All folders read-write permissions” option is enabled.

Remove Authorization for Sites

Option One: Revoke OneDrive API Tokens (Recommended)

To revoke all refresh tokens and prevent unauthorized access to your OneDrive account, follow this process. This is particularly useful when a device is no longer under your control. For detailed guidance, use the revokeSignInSessions API to invalidate active tokens. This action ensures that no unauthorized machine or application retains access to your OneDrive account.

Option Two: Periodic Folder Cleanup for OneDrive Storage

To manage storage space efficiently in OneDrive, periodically remove outdated site folders stored within the /Apps directory. For example, if a folder named /Apps/oldsite.com is no longer required, delete it every few days to prevent it from consuming unnecessary storage space. Regular cleanup ensures optimal use of your OneDrive account and avoids clutter from obsolete site data.

Option Three: Periodic Folder Cleanup for OneDrive Storage

To revoke access for all Duplicator Pro sessions connected to OneDrive, follow the outlined steps.

Note: This process is recommended only if you’ve set up a single or limited number of Duplicator Pro OneDrive storage accounts. Revoking the app will remove all OneDrive connections associated with Duplicator Pro, meaning other machines will lose access as well. To reestablish connections, new sessions must be created.

This action ensures comprehensive control over your OneDrive integrations and prevents unauthorized access.

Was this article helpful?

Related Articles