IllegalStateException: Versions mismatch: the configuration version is 958 but the database version is 976

Answered

Hi,

What's the best practice for fixing this?  I am seeing this error when trying to start a backup.  I believe this only started happening once upgrading to TeamCity Enterprise 2021.1 (build 92597).

Thanks,
Mishael

0
6 comments

Hi,

A version mismatch indicates that the data directory and database are not on the same data format versions. Does your upgraded TeamCity instance run? How are you attempting to make your backup?

Thanks,

Eric

0

Our TeamCity instance has been running great since the upgrade afaik, except for this backup.  The upgrade seemed to go without hiccups at the time, but just took a little longer as it had to go through a database format upgrade.  We are using an external mySQL database for the server.  Nothing seemed to go on out of the ordinary.

We have a config that is scheduled to trigger the backups, but even directly starting a backup in Server Admin > Backup is failing.

0

That seems very strange to me. Could you please send me the teamcity-server.log covering the period of time the backup was started through the web UI?

0
[2021-06-02 16:57:37,505]   INFO - s.buildServer.ACTIVITIES.AUDIT - backup_settings_change: Backup settings were changed by "'miskim' (Mishael Kim) {id=5}"
[2021-06-02 16:57:37,519]   INFO - s.buildServer.ACTIVITIES.AUDIT - backup_start: Backup was started by "'miskim' (Mishael Kim) {id=5}"
[2021-06-02 16:57:37,526]   INFO - brains.buildServer.MAINTENANCE - Initializing...
[2021-06-02 16:57:37,527]   INFO - brains.buildServer.MAINTENANCE - Creating zip file '/Users/dvadevops/.BuildServer/backup/TeamCity_Backup_20210602_165737.zip'
[2021-06-02 16:57:37,527]   INFO - brains.buildServer.MAINTENANCE - ZIP factory in use: memory-conservative (dynamic, shared); compression level -1.
[2021-06-02 16:57:37,551]   INFO - brains.buildServer.MAINTENANCE - Deleting the temporary file (124 B): /Users/dvadevops/.BuildServer/backup/TeamCity_Backup_20210602_165737.zip.part...
[2021-06-02 16:57:37,559]  ERROR - brains.buildServer.MAINTENANCE - Error while performing backup: java.lang.IllegalStateException: Versions mismatch: the configuration version is 958 but the database version is 976
0

Thanks, can you look for the most recent server startup to see if you can find the data directory location? You should find something like:
The TeamCity Data Directory "/data/teamcity_server/datadir" exists

And

Data Directory version: 976

0

Mishael Kim How did you go about fixing this issue?

 

0

Please sign in to leave a comment.