Hello
I'm trying to upgrade from Zabbix 2.2 to 3.0. The manual says this is supported, although it didn't work. So my plan was to upgrade 2.2 -> 2.4, and then from 2.4 to 3.0.
I've created a snapshot of the VM so I can safely go back if something fails.
I've uninstalled 2.2 and installed 2.4. When I start zabbix_server, it seems the database upgrade fails:
What am I doing wrong, or what information should I post here?
Thanks
Daniel
I'm trying to upgrade from Zabbix 2.2 to 3.0. The manual says this is supported, although it didn't work. So my plan was to upgrade 2.2 -> 2.4, and then from 2.4 to 3.0.
I've created a snapshot of the VM so I can safely go back if something fails.
I've uninstalled 2.2 and installed 2.4. When I start zabbix_server, it seems the database upgrade fails:
Code:
4992:20160904:234132.699 Starting Zabbix Server. Zabbix 2.4.8 (revision 59539). 4992:20160904:234132.699 ****** Enabled features ****** 4992:20160904:234132.699 SNMP monitoring: YES 4992:20160904:234132.699 IPMI monitoring: YES 4992:20160904:234132.699 WEB monitoring: YES 4992:20160904:234132.699 VMware monitoring: YES 4992:20160904:234132.699 Jabber notifications: YES 4992:20160904:234132.699 Ez Texting notifications: YES 4992:20160904:234132.699 ODBC: YES 4992:20160904:234132.699 SSH2 support: YES 4992:20160904:234132.699 IPv6 support: YES 4992:20160904:234132.699 ****************************** 4992:20160904:234132.699 using configuration file: /etc/zabbix/zabbix_server.conf 4992:20160904:234132.705 current database version (mandatory/optional): 02020000/02020001 4992:20160904:234132.705 required mandatory version: 02040000 4992:20160904:234132.705 starting automatic database upgrade 4992:20160904:234132.708 completed 0% of database upgrade 4992:20160904:234132.712 completed 1% of database upgrade 4992:20160904:234132.740 completed 2% of database upgrade 4992:20160904:234132.744 completed 3% of database upgrade 4992:20160904:234132.752 completed 4% of database upgrade 4992:20160904:234132.760 completed 5% of database upgrade 4992:20160904:234132.803 completed 6% of database upgrade 4992:20160904:234132.813 completed 7% of database upgrade 4992:20160904:234132.813 [Z3005] query failed: [1452] Cannot add or update a child row: a foreign key constraint fails (`zabbix`.`trigger_discovery`, CONSTRAINT `c_trigger_discovery_1` FOREIGN KEY (`triggerid`) REFERENCES `triggers` (`triggerid`) ON DELETE CASCADE) [insert into trigger_discovery (select triggerid,parent_triggerid from trigger_discovery_tmp)] 4992:20160904:234132.813 database upgrade failed
Thanks
Daniel



Comment