Backup Repository in Invalid State - Causes and Troubleshooting Advice

KB ID: 4468
Product: Veeam Backup for Microsoft 365 | 8 | 8.1 | 8.2 | 8.3 | 8.4 | 8.5
Published: 2023-07-27
Last Modified: 2026-08-13
mailbox
Get weekly article updates
By subscribing, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Notice.

Cheers for trusting us with the spot in your mailbox!

Now you’re less likely to miss what’s been brewing in our knowledge base with this weekly digest

error icon

Oops! Something went wrong.

Please, try again later.

Purpose

This article documents possible causes for a Veeam Backup for Microsoft 365 Backup Repository to be listed as having an Invalid status and provides troubleshooting advice.
Invalid State Example
Note: Clicking on the blue Invalid word in the status column will cause a pop-up to display an error that may help diagnose the issue.

Solution

The sections below expand on the list of reasons a backup repository may have an Invalid state, as listed on the Invalid State page in the Veeam Backup for Microsoft 365 User Guide.

Each possibility must be investigated individually. If you would like assistance, please open a support case.

A repository lock in object storage is missing.

A repository lock denotes that an object storage repository is in use by a backup proxy server or a backup proxy pool, and it prevents the same object storage from being added to another backup infrastructure configuration. The lock file is stored in the RepositoryLock directory. For more information, see Object Storage Repository Structure.

When the repository lock is missing, the repository is marked Invalid, and an error similar to the following occurs:

Repository is invalid.: Cannot find expected repository lock in object storage (owner ID: {owner ID}, repository ID: {repository ID}).

Solution: Remove and re-add the object storage.

  1. Create a temporary repository. This will be used to unassign the existing jobs from the repository being investigated.
  2. Disable the jobs that are using the backup repository that is in the Invalid state.
  3. Edit those jobs, and reconfigure them to use the temporary repository created in Step 1.
  4. Remove the object storage repository from the console.
  5. Re-add the object storage entity.
  6. Reconfigure the jobs that you modified in Step 3 to use the re-added repository.

A trusted certificate for S3-Compatible object storage has been changed.

Unable to check object storage lock (reason: The object storage server security certificate is not valid. Examine and accept the certificate.)

Solution: Accept the updated certificate.

  1. In the Backup Infrastructure view, edit the object storage repository that is in the Invalid state.
  2. Proceed through the wizard by clicking Next until the updated certificate is presented, and accept it.
  3. Complete the wizard to save the object storage repository.

A connection to the object storage repository is missing.

The object storage repository is marked Invalid when Veeam Backup for Microsoft 365 cannot establish a connection to the object storage.

Solution: Isolation testing and firewall check.

  1. From the machine where Veeam Backup for Microsoft 365 is installed, test connecting to the object storage using a third-party tool, for example S3 Browser or Azure Storage Explorer. If neither the third-party tool nor Veeam Backup for Microsoft 365 can connect, resolve the underlying connectivity issue.
  2. If the third-party tool connects but the issue persists for Veeam Backup for Microsoft 365, check the firewall configuration to confirm that the ports used by Veeam Backup for Microsoft 365 have been opened.

A container or bucket is missing.

The object storage repository is marked Invalid when the container or bucket that holds its data can no longer be found.

Solution: Verify the container or bucket.

  1. Using a storage explorer (S3 Browser or Azure Storage Explorer) or the storage web interface, confirm whether the container or bucket still exists.
  2. If the container or bucket is missing, a new bucket or container must be created and a new object storage repository configured.

A repository folder is missing or has been renamed.

Within the container or bucket, each object storage repository stores its data in a repository folder (<repository_folder_name>) beneath the Veeam/Backup365/ path. The repository is marked Invalid when this folder is renamed or removed.

Solution: Restore the repository folder.

  1. Using a storage explorer or the storage web interface, browse the container or bucket and confirm whether the repository folder still exists under its original name.
  2. If the folder was renamed, restore its original name.
  3. After the original folder structure is in place, use the Synchronize Repository option to update the metadata held in the PersistentCache database. Synchronization does not recreate a missing folder; restore the folder first.

A connection to DAS or NAS is missing.

When a backup repository stores its data on direct-attached storage (DAS) or network-attached storage (NAS), losing the connection to that storage marks the repository Invalid.

Solution: Restore access to the storage.

  1. Confirm that the DAS or NAS hosting the repository is online and accessible from the machine running the backup proxy.
  2. Once network connectivity to the storage has been restored, the repository returns to a valid state automatically.

If this KB article did not resolve your issue or you need further assistance with Veeam software, please create a Veeam Support Case.

To submit feedback regarding this article, please click this link: Send Article Feedback
To report a typo on this page, highlight the typo with your mouse and press CTRL + Enter.

Spelling error in text

Thank you!

Thank you!

Your feedback has been received and will be reviewed.

Oops! Something went wrong.

Please, try again later.

You have selected too large block!

Please try select less.

KB Feedback/Suggestion

This form is only for KB Feedback/Suggestions, if you need help with the software open a support case

By submitting, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Notice.
Verify your email to continue your product download
We've sent a verification code to:
  • Incorrect verification code. Please try again.
An email with a verification code was just sent to
Didn't receive the code? Click to resend in sec
Didn't receive the code? Click to resend
Thank you!

Thank you!

Your feedback has been received and will be reviewed.

error icon

Oops! Something went wrong.

Please, try again later.