Omd restore fails, previous version needed


I run two checkmk sites, second is kind of a hot DR with notifications disabled. I take a backup of the prod site with omd backup and do an omd restore on the DR to keep it in sync. I recently updated both of them from 1.6.0p10 to 1.6.0p14 and then did a cleanup to get rid of p10. Now when I backup the prod site and try to restore to DR, it fails saying p10 has to be installed. But the prod site is p14 so why is it saying it needs p10? Do you really need to keep all your old versions after an update?

I would understand that my old backups might require this, but why a fresh backup taken after the update?

No only the current version is needed.

This is strange. You are sure that on your prod system only p14 is running and installed?

1 Like

I am sure.

OMD[sitename]:~$ omd version
OMD - Open Monitoring Distribution Version 1.6.0p14.cre
OMD[sitename]:~$ omd versions
1.6.0p14.cre (default)

In /check_mk/ it also shows p14, and I acknowledged all the werks.

I have a work around for now, I can just rsync the site folder in /opt/omd/sites

I have no real good idea what you can do. Only one test would be to create a new empty site on your productive system, make a backup from this empty site and try to restore this backup to the other server.
If there comes the same error, something on your productive system is wrong.

You could also try to check the version of the backup file like so:

root@cmkserver:~# tar -t -v --wildcards -f backup.tar.gz "*/version"
lrwxrwxrwx stest/stest       0 2020-06-18 15:54 stest/version -> ../../versions/1.6.0p12.cee.demo
-rw-r--r-- stest/stest      18 2020-06-09 16:30 stest/.version_meta/version
lrwxrwxrwx stest/stest       0 2020-06-18 15:54 stest/version -> ../../versions/1.6.0p12.cee.demo

With that output I know that backup.tar.gz contains a backup of the site stest which was running with 1.6.0p12.cee.demo. Maybe that helps.

1 Like

Hi Dirk, looks like the expected p14 in the backup

[root@server files]# tar -t -v --wildcards -f site_omd_backup.tgz “*/version”
lrwxrwxrwx site/site 0 2020-07-23 17:02 site/version -> …/…/versions/1.6.0p14.cre
lrwxrwxrwx site/site 0 2020-07-23 17:02 site/version -> …/…/versions/1.6.0p14.cre
-rw-r----- site/site 13 2020-07-23 17:02 site/.version_meta/version

I have verified the same issue on another environment that I built fresh with p10, created a site, upgraded to p14, took a backup and then tried to restore on a different server built in the same way and it still errors saying p10 needs to be installed. At this point I would call this a bug, is there anyway to report this or just hope its seen in the forum?