Quantcast
Channel: Veeam Support Knowledge Base
Viewing all articles
Browse latest Browse all 4362

Installation Fails with Patched Database

$
0
0

Challenge

When you apply a patch to Veeam Backup & Replication, the database is upgraded and its version number is changed. If you attempt to reinstall Veeam Backup & Replication, the installation may fail because it is unable to start the Veeam Backup Service. In the service log, you see:
 
[DB|ERROR] Cannot use database [VeeamBackup], because it was created with later version of the product: product version 633, database version 638. (Veeam.Backup.DBCreator.CDatabaseException)

Cause

The Veeam Backup & Replication configuration database table dbo.Version is incremented with each update to the database. The Veeam Backup Service will not run if the database version is newer than expected. 

Solution

There are three possible workarounds:

1.  Create a new database during installation, apply the appropriate patch, and then restore the configuration backup. Note that configuration backup does not retain the session history.
2.  Create a new database during installation, apply the appropriate patch, and then detach and replace the empty database with the existing (patched) database.
3.  Revert the configuration database version, install Veeam Backup & Replication, and then apply the patch.
 
To allow installation with the existing database, the table dbo.Version should be set to the version contained in the installer. We recommend backing up your database prior to making any changes. To change the version number:
 
1.  From SQL Management Studio, connect to the instance containing the Veeam configuration database (default names are VEEAM or VEEAMSQL2008R2)
2.  Expand “Databases”
3.  Right-click “VeeamBackup” > New query.
4.  Paste the appropriate query (below) and press “execute” or F5.
 
To install 6.5.0.109:
 
Use VeeamBackup
UPDATE [Version] SET current_version = 633
 
To install 7.0.0.690:
 
Use VeeamBackup
UPDATE [Version] SET current_version = 1179
 
To install 8.0.0.817:
 
Use VeeamBackup
UPDATE [Version] SET current_version = 1870

If you had version 7.0.0.871 (Patch 4) installed prior to the re-installation, after running the query above and installing 7.0.0.690, run the following query prior to applying Patch 4.
 
Use VeeamBackup
UPDATE [Version] SET current_version = 1200
 
If you had version 8.0.0.2084 (v8 Update 3) installed prior to the re-installation, after updating the database version to 1870 (as above) and installing 8.0.0.817, run the following query prior to applying Update 3.
 
Use VeeamBackup
UPDATE [Version] SET current_version = 2022

To install 9.0.0.902:

Use VeeamBackup
UPDATE [Version] SET current_version = 2754

NOTE:  This is an operation that Veeam Support is happy to walk through with you and this KB is provided mostly as a convenience for customers wishing to perform the above operations themselves. If you would like to walk through this process with a Veeam Support Engineer, please do not hesitate to open a case with us via the Customer Portal. cp.veeam.com

More Information

Installing Microsoft SQL Management Studio
How to apply a SQL script
How to Backup Your SQL DB using SQL Server Management Studio
 
Do not attempt to revert to an older release of Veeam Backup & Replication. Attempting to install 6.1 with a database that has been upgraded to 6.5 or install 6.5 with a 7.0 database is likely to fail or corrupt the database. We recommend backing up the database prior to upgrading.

 

Viewing all articles
Browse latest Browse all 4362

Trending Articles