Duplicator Documentation

Documentation, Reference Materials, and Tutorials for Duplicator

Want it done for you?

Let the Duplicator experts migrate your WordPress site for you — quick, safe, and hassle-free.

Get Migration Help

Troubleshooting OneDrive Storage Issues


Is Duplicator Pro failing to upload backups to OneDrive, or does the connection keep failing to authorize? A few adjustments to your OneDrive storage settings and permissions resolve both problems.

This guide covers troubleshooting OneDrive storage issues in Duplicator Pro, from upload failures to connection and authorization errors.

To begin with, make sure you are using the latest version of Duplicator Pro. Please check the changelog and system requirements. Also, be sure to test the storage first to make sure that the settings are correct by using the validation button.

Resolving OneDrive Upload Failures During Builds

If the upload process to OneDrive fails during a build, use the solutions below to troubleshoot.

Solution 1: Lower the Upload Chunk Size

This can be related to a temporary network condition. Navigate to Duplicator Pro » Settings » Storage, expand the OneDrive section, and lower Upload Chunk Size below its default of 3200 KB. The value must be a multiple of 320 KB (minimum 320 KB).

Solution 2: Lower the Download Chunk Size

If downloads from OneDrive are the ones failing, lower Download Chunk Size below its default of 10240 KB (minimum 2048 KB) in the same OneDrive section.

Resolving Connection Error Message

If OneDrive shows a connection or authorization error when you try to add or use the storage, here’s what the error means and how to resolve it.

If you see an error referencing “wl.offline_access,” that message comes from Microsoft’s legacy Live Connect API and does not apply to Duplicator Pro’s current OneDrive integration. Duplicator Pro now runs on Microsoft Graph, requesting the offline_access and files.readwrite.appfolder scopes. If authorization fails, Duplicator Pro shows one of these messages instead: “Failed to fetch information from OneDrive. Make sure the token is valid.”, “OneDrive token is invalid.”, or “Not connected.”

Solution 1: Check Permission Settings

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

Solution 2: Reconnect OneDrive Storage

If the connection error persists, delete the existing storage entry and reconnect. Go to Duplicator Pro » Storage, delete the existing OneDrive entry, then click Add New to reconnect and re-consent with the correct Microsoft Graph scopes.

Is Customizing the App Directory Possible?

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

No. OneDrive storage is limited to the /Apps/Duplicator Pro/ folder, since Duplicator Pro’s Microsoft Graph scope restricts it there for security purposes. This location cannot be changed to a folder outside of it.

Resolving Issues with Security Plugins and wp-config.php

If a security plugin (including M365-related security tools) automatically rotates the secret keys in wp-config.php, the OneDrive connection can invalidate the same way it does for other cloud storage providers, since Duplicator Pro uses those keys for encryption.

Solution 1: Disable Automatic Secret Key Rotation

Check your security plugin’s settings for an option to disable automatic secret key rotation.

Solution 2: Check Permission Settings

While setting up OneDrive storage, ensure the All folders read-write permission option is enabled.

Note: This issue involving regional account settings, commonly reported in Germany, was tied to Microsoft’s legacy, region-specific Live Connect endpoints. Duplicator Pro’s OneDrive integration now connects through a single global Microsoft Graph endpoint, so this is unlikely to still be region-specific.

Managing OneDrive Authorization

If OneDrive returns a token or authorization error, delete the existing storage entry and reconnect. Go to Duplicator Pro » Storage, delete the existing OneDrive entry, then click Add New to reconnect and re-consent with the correct Microsoft Graph scopes.

Option 2: Disconnect OneDrive from Duplicator Pro

Edit the OneDrive storage entry and click Cancel Authorization to disconnect the storage locally. This requires re-authorization before the storage can be used again.

Option 3: Revoke OneDrive Access from Your Microsoft Account

Revoking Duplicator Pro’s access at the Microsoft account level happens on Microsoft’s side, not inside Duplicator Pro. This is useful when a device is no longer under your control.

For a personal Microsoft account, go to Apps and services, find Duplicator Pro, and select Remove these permissions.

For a work or school (Microsoft 365) account, revoke your own consent to an app through the My Apps portal. A full sign-in session revocation, which invalidates every refresh token for the account, is an admin-only action performed by IT through the Microsoft Entra admin center. It is not available on personal Microsoft accounts and cannot be triggered by an individual user.

Note: Revoking access removes every OneDrive connection tied to Duplicator Pro across all sites and devices using that account, so only do this if you use a single or limited number of OneDrive storage connections. Every affected site will need to reconnect afterward.

Cleaning Up Old OneDrive Backup Folders

If OneDrive is running low on space, or backups for sites you no longer manage are still taking up storage, clear out those old folders to free up room.

To manage storage space, periodically remove outdated site folders inside the /Apps/Duplicator Pro/ directory in OneDrive. For example, delete a folder like /Apps/Duplicator Pro/oldsite.com once it’s no longer needed.

That’s it! With the Upload Chunk Size adjusted and the OneDrive connection reauthorized with the correct Microsoft Graph scopes, Duplicator Pro uploads backups to OneDrive reliably again.

Setting up OneDrive storage for the first time? Check out our tutorial on Storing Your Backup to OneDrive. For a full overview of every storage option Duplicator Pro supports, see A Complete Guide to Duplicator’s Storage Options.


Was this article helpful?


Related Articles

Don't Let Another Day Pass Unprotected

Every hour without proper WordPress backups puts your site at risk • Every delayed WordPress migration costs you performance and growth

Get Duplicator Now
Duplicator Plugin

Wait! Don't miss your
exclusive deal!

As a customer, you get 60% OFF

Try Duplicator free on your site — see why 1.5M+ WordPress pros trust us. But don't wait — this exclusive 60% discount is only available for a limited time.

or
Get 60% Off Duplicator Pro Now →