EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB484135: How to solve the error, “Metadata is required to be backed up,” for MSTRBak-Client


Community Admin

• Strategy


This article explains why an error is encountered when running the MSTRBak-Client version 1 or higher. This article also provides workarounds to avoid this error.

Description


When running the MSTRBak-Client v1 or higher, you may encounter the following error and experience a stall in the mstrbak client process from taking a backup of the cloud environment.
Metadata is required to be backed up
 


[2020-02-19 12:58:36,769][INFO][env-xxxxxxlaioeuw1][MSTRBAK-BACKUP][creating response.json...]
[2020-02-19 12:58:37,605][INFO][env-xxxxxxlaioeuw1][MSTRBAK-BACKUP][There is no installation of pigz. install pigz for faster performance...]
[2020-02-19 12:58:37,606][INFO][env-xxxxxxlaioeuw1][MSTRBAK-BACKUP][starting backup...]
[2020-02-19 12:58:37,612][INFO][env- xxxxxxlaioeuw1][MSTRBAK-BACKUP][starting metadata backup...]
[2020-02-19 12:58:38,898][ERROR][env-170843laioeuw1][MSTRBAK-BACKUP][Metadata is required to be backed up]

Why is this happening?


This error is caused only when using the client in the default mode. In the default mode,

DBMigrator
is used to get a SQL dump for both MySQL and Postgres and it requires
mysql-connector-java.8x.jar.
If the version of the driver is lower than 8x, it will throw the error.

Solution

Dump mode on a 2019 environment


If you are backing up a 2019 environment and want to restore another 2019 environment, use the dump mode (-d flag).
Run it as:

./mstrbak -d

 

Default DbMigrator mode 


You should download the 

mysql-connector-java-8.0.12.jar
file and place it anywhere. 
Prompted Mode
If you are using prompted mode, specify the path of the MySQL connector driver when prompted for the MySQL driver path: 

ka04W000001IwpwQAC_0EM2R000000oKvD.jpeg

 
Silent Mode
If you are using silent mode, update the key

mysql
in
driver-paths
with the MySQL connector driver path in the response file.

ka04W000001IwpwQAC_0EM2R000000oKvI.jpeg

Comment

0 comments

Details

Knowledge Article

Published:

March 24, 2020

Last Updated:

July 24, 2020