Skip to main content

OneDrive backup jobs are failing with error ESITELOCKED and EINTERNAL

OneDrive backup jobs are failing with error ESITELOCKED and EINTERNAL

Problem Description:

OneDrive backup jobs are failing with errors ESITELOCKED and EINTERNAL. The logs indicate Microsoft Graph API response code 423 (resourceLocked) with the message:

"Access to this site has been blocked. Please contact the administrator to resolve this problem."

This issue typically occurs when OneDrive sites are locked or set to NoAccess in Microsoft 365, preventing Druva from accessing the site for backup.


Cause:

  • The affected OneDrive sites have their site access setting set to NoAccess in Microsoft 365.

  • This commonly happens when:

    • Users are converted from licensed users to shared mailboxes.

    • After 93 days of inactivity, Microsoft automatically locks the OneDrive site.

  • As a result, Druva inSync cannot access the OneDrive site, leading to backup failures.


Traceback / Logs:

Sample error logs from the case:

Error <class 'inSyncLib.inSyncError.SyncError'>: Internal error. Response Code: 423
Text: {"error":{"code":"notAllowed","innerError":{"code":"resourceLocked"},
"message":"Access to this site has been blocked. Please contact the administrator to resolve this problem."}} (#100000001)

Traceback (most recent call last):
File "/opt/Druva/inSync/active/src/onedrive/backup/lib/one_drive_backup_driver.py", line 60, in check_one_drive_status
self.drive_obj = capp_precheck.check_if_user_exist()
File "/opt/Druva/inSync/active/src/inSyncLib/CloudAppUtils.py", line 487, in check_if_user_exist
raise fault
SyncError: Internal error. Response Code: 423 Text: {"error":{"code":"notAllowed","innerError":{"code":"resourceLocked"},
"message":"Access to this site has been blocked. Please contact the administrator to resolve this problem."}} (#100000001)

Resolution:

To resolve the ESITELOCKED error:

Option 1: Unlock the OneDrive Site

  1. Log in to Microsoft 365 Admin Center.

  2. Navigate to Users → Active Users.

  3. Search for the affected user and open their profile.

  4. Click on OneDrive.

  5. Under Site Details, change the site access setting from NoAccess to either:

    • ReadOnly, or

    • Unlock.

  6. Retry the backup after making this change.

Option 2: Preserve the User in Druva

  • If the user is no longer active and you only need to retain their data:

    1. Mark the user as Preserved in Druva.

    2. This stops backups for that user but retains existing data per retention policy.

    3. It also frees up an active license.

Additional Notes:

  • This issue is common when users are converted to shared mailboxes or after 93 days of inactivity.

  • Reinstalling the Microsoft 365 app will not resolve this error because the root cause is the site access setting.


References:

Did this answer your question?