Hallo all, hope you can help me with a database upgrade problem.
I'm running a Zabbix server on a CentOS Stream 8 machine since a few years, mysql Ver 8.0.26, Kernel Linux 4.18.0-365.el8.x86_64.
Today I've done an upgrade from 5.2 to 5.4 and while starting the server an error occurs on upgrading database:
I've done searches and found similar problems while upgrading, but no solutions helps me out there.
Thanks in advance for any help or hint. Ric
I'm running a Zabbix server on a CentOS Stream 8 machine since a few years, mysql Ver 8.0.26, Kernel Linux 4.18.0-365.el8.x86_64.
Today I've done an upgrade from 5.2 to 5.4 and while starting the server an error occurs on upgrading database:
Code:
77745:20220212:154401.474 Starting Zabbix Server. Zabbix 5.4.10 (revision db03ff023d). 77745:20220212:154401.475 ****** Enabled features ****** 77745:20220212:154401.475 SNMP monitoring: YES 77745:20220212:154401.475 IPMI monitoring: YES 77745:20220212:154401.475 Web monitoring: YES 77745:20220212:154401.475 VMware monitoring: YES 77745:20220212:154401.475 SMTP authentication: YES 77745:20220212:154401.475 ODBC: YES 77745:20220212:154401.475 SSH support: YES 77745:20220212:154401.475 IPv6 support: YES 77745:20220212:154401.475 TLS support: YES 77745:20220212:154401.475 ****************************** 77745:20220212:154401.475 using configuration file: /etc/zabbix/zabbix_server.conf 77745:20220212:154401.478 current database version (mandatory/optional): 05030094/05030094 77745:20220212:154401.478 required mandatory version: 05040000 77745:20220212:154401.478 optional patches were found 77745:20220212:154401.478 starting automatic database upgrade 77745:20220212:154401.489 [Z3005] query failed: [1452] Cannot add or update a child row: a foreign key constraint fails (`zabbix`.`widget_field`, CONSTRAINT `c_widget_field_4` FOREIGN KEY (`value_itemid`) REFERENCES `items` (`itemid`) ON DELETE CASCADE) [insert into widget_field (widget_fieldid,widgetid,type,name,value_int,value _str,value_itemid,value_graphid,value_groupid,valu e_hostid,value_sysmapid) values (271,115,5,'itemid',0,'',28671,null,null,null,null )] 77745:20220212:154401.490 database upgrade failed
Thanks in advance for any help or hint. Ric
Comment