Hello guys,
I'm trying to upgarde one instance of Zabbix 6.0 lts running on Galera to Zabbix 7.0.. All VM's are running updated Debian 12.. I've got into problem with database upgrade, in particular with:
15584:20241204:173653.921 current database version (mandatory/optional): 06010075/06010075
15584:20241204:173653.921 required mandatory version: 07000000
15584:20241204:173653.921 mandatory patches were found
15584:20241204:173653.983 [Z3005] query failed: [1005] Can't create table `zabbix`.`items` (errno: 121 "Duplicate key on write or update") [alter table `items` add constraint c_items_1 foreign key (`hostid`) references `hosts` (`hostid`)]
15584:20241204:173653.983 database upgrade failed on patch 06010076, exiting in 10 seconds
15584:20241204:173703.984 Zabbix Server stopped. Zabbix 7.0.6 (revision c1d7a081969).
=> Any idea please _where_ can I find those particular patches for SQL? So I can in more detail go with changes and maybe help a little with manual altering of tables etc..
Maybe I'll add current snippet of 'items' table:
KEY `items_1` (`hostid`,`key_`(764)),
...
CONSTRAINT `c_items_1` FOREIGN KEY (`hostid`) REFERENCES `hosts` (`hostid`),
But I don't know what that patch want to do..
Thanks..
I'm trying to upgarde one instance of Zabbix 6.0 lts running on Galera to Zabbix 7.0.. All VM's are running updated Debian 12.. I've got into problem with database upgrade, in particular with:
15584:20241204:173653.921 current database version (mandatory/optional): 06010075/06010075
15584:20241204:173653.921 required mandatory version: 07000000
15584:20241204:173653.921 mandatory patches were found
15584:20241204:173653.983 [Z3005] query failed: [1005] Can't create table `zabbix`.`items` (errno: 121 "Duplicate key on write or update") [alter table `items` add constraint c_items_1 foreign key (`hostid`) references `hosts` (`hostid`)]
15584:20241204:173653.983 database upgrade failed on patch 06010076, exiting in 10 seconds
15584:20241204:173703.984 Zabbix Server stopped. Zabbix 7.0.6 (revision c1d7a081969).
=> Any idea please _where_ can I find those particular patches for SQL? So I can in more detail go with changes and maybe help a little with manual altering of tables etc..
Maybe I'll add current snippet of 'items' table:
KEY `items_1` (`hostid`,`key_`(764)),
...
CONSTRAINT `c_items_1` FOREIGN KEY (`hostid`) REFERENCES `hosts` (`hostid`),
But I don't know what that patch want to do..
Thanks..
you can find info on patches from source code...
Comment