Hey all,
I'm trying to have a "dry run" of an upgrade we need to perform in prod, here are the details:
current server (physical server) - CentOS 7, Zabbix 2.2.9
test server (vm) - CentOS 7, Zabbix 2.2.18 (that's what the repos installed)
Trying to upgrade to the latest using this procedure:
When starting the zabbix-server I'm running into this error - which I fix by running SET GLOBAL FOREIGN_KEY_CHECKS=0; :
21427:20170508:171505.502 Got signal [signal:15(SIGTERM),sender_pid:1,sender_uid:0,reaso n:0]. Exiting ...
21430:20170508:171505.502 Got signal [signal:15(SIGTERM),sender_pid:1,sender_uid:0,reaso n:0]. Exiting ...
21434:20170508:171505.503 Got signal [signal:15(SIGTERM),sender_pid:1,sender_uid:0,reaso n:0]. Exiting ...
21437:20170508:171505.503 Got signal [signal:15(SIGTERM),sender_pid:1,sender_uid:0,reaso n:0]. Exiting ...
21407:20170508:171505.503 Got signal [signal:15(SIGTERM),sender_pid:16884,sender_uid:0,r eason:0]. Exiting ...
21407:20170508:171507.505 syncing history data...
21407:20170508:171507.514 syncing history data done
21407:20170508:171507.514 syncing trends data...
21407:20170508:171507.518 syncing trends data done
21407:20170508:171507.519 Zabbix Server stopped. Zabbix 2.2.18 (revision 67443).
17257:20170508:173144.209 Starting Zabbix Server. Zabbix 3.2.6 (revision 67849).
17257:20170508:173144.209 ****** Enabled features ******
17257:20170508:173144.209 SNMP monitoring: YES
17257:20170508:173144.209 IPMI monitoring: YES
17257:20170508:173144.209 Web monitoring: YES
17257:20170508:173144.209 VMware monitoring: YES
17257:20170508:173144.209 SMTP authentication: YES
17257:20170508:173144.209 Jabber notifications: YES
17257:20170508:173144.209 Ez Texting notifications: YES
17257:20170508:173144.209 ODBC: YES
17257:20170508:173144.209 SSH2 support: YES
17257:20170508:173144.209 IPv6 support: YES
17257:20170508:173144.209 TLS support: YES
17257:20170508:173144.209 ******************************
17257:20170508:173144.209 using configuration file: /etc/zabbix/zabbix_server.conf
17257:20170508:173144.220 current database version (mandatory/optional): 02020000/02020001
17257:20170508:173144.220 required mandatory version: 03020000
17257:20170508:173144.220 starting automatic database upgrade
17257:20170508:173144.240 completed 0% of database upgrade
17257:20170508:173144.499 completed 1% of database upgrade
17257:20170508:173144.607 completed 2% of database upgrade
17257:20170508:173144.718 [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)]
17257:20170508:173144.719 database upgrade failed
Now I'm running into a new issue which I can't resolve:
17289:20170508:173215.422 database upgrade failed
17300:20170508:173225.497 Starting Zabbix Server. Zabbix 3.2.6 (revision 67849).
17300:20170508:173225.498 ****** Enabled features ******
17300:20170508:173225.498 SNMP monitoring: YES
17300:20170508:173225.498 IPMI monitoring: YES
17300:20170508:173225.498 Web monitoring: YES
17300:20170508:173225.498 VMware monitoring: YES
17300:20170508:173225.498 SMTP authentication: YES
17300:20170508:173225.498 Jabber notifications: YES
17300:20170508:173225.498 Ez Texting notifications: YES
17300:20170508:173225.498 ODBC: YES
17300:20170508:173225.498 SSH2 support: YES
17300:20170508:173225.498 IPv6 support: YES
17300:20170508:173225.498 TLS support: YES
17300:20170508:173225.498 ******************************
17300:20170508:173225.498 using configuration file: /etc/zabbix/zabbix_server.conf
17300:20170508:173225.500 current database version (mandatory/optional): 02030020/02030020
17300:20170508:173225.500 required mandatory version: 03020000
17300:20170508:173225.500 starting automatic database upgrade
17300:20170508:173225.500 [Z3005] query failed: [1050] Table 'item_condition' already exists [create table item_condition (
item_conditionid bigint unsigned not null,
itemid bigint unsigned not null,
operator integer default '8' not null,
macro varchar(64) default '' not null,
value varchar(255) default '' not null,
primary key (item_conditionid)
) engine=innodb]
17300:20170508:173225.500 database upgrade failed
Any help is much appreciated!
Thanks!
I'm trying to have a "dry run" of an upgrade we need to perform in prod, here are the details:
current server (physical server) - CentOS 7, Zabbix 2.2.9
test server (vm) - CentOS 7, Zabbix 2.2.18 (that's what the repos installed)
Trying to upgrade to the latest using this procedure:
When starting the zabbix-server I'm running into this error - which I fix by running SET GLOBAL FOREIGN_KEY_CHECKS=0; :
21427:20170508:171505.502 Got signal [signal:15(SIGTERM),sender_pid:1,sender_uid:0,reaso n:0]. Exiting ...
21430:20170508:171505.502 Got signal [signal:15(SIGTERM),sender_pid:1,sender_uid:0,reaso n:0]. Exiting ...
21434:20170508:171505.503 Got signal [signal:15(SIGTERM),sender_pid:1,sender_uid:0,reaso n:0]. Exiting ...
21437:20170508:171505.503 Got signal [signal:15(SIGTERM),sender_pid:1,sender_uid:0,reaso n:0]. Exiting ...
21407:20170508:171505.503 Got signal [signal:15(SIGTERM),sender_pid:16884,sender_uid:0,r eason:0]. Exiting ...
21407:20170508:171507.505 syncing history data...
21407:20170508:171507.514 syncing history data done
21407:20170508:171507.514 syncing trends data...
21407:20170508:171507.518 syncing trends data done
21407:20170508:171507.519 Zabbix Server stopped. Zabbix 2.2.18 (revision 67443).
17257:20170508:173144.209 Starting Zabbix Server. Zabbix 3.2.6 (revision 67849).
17257:20170508:173144.209 ****** Enabled features ******
17257:20170508:173144.209 SNMP monitoring: YES
17257:20170508:173144.209 IPMI monitoring: YES
17257:20170508:173144.209 Web monitoring: YES
17257:20170508:173144.209 VMware monitoring: YES
17257:20170508:173144.209 SMTP authentication: YES
17257:20170508:173144.209 Jabber notifications: YES
17257:20170508:173144.209 Ez Texting notifications: YES
17257:20170508:173144.209 ODBC: YES
17257:20170508:173144.209 SSH2 support: YES
17257:20170508:173144.209 IPv6 support: YES
17257:20170508:173144.209 TLS support: YES
17257:20170508:173144.209 ******************************
17257:20170508:173144.209 using configuration file: /etc/zabbix/zabbix_server.conf
17257:20170508:173144.220 current database version (mandatory/optional): 02020000/02020001
17257:20170508:173144.220 required mandatory version: 03020000
17257:20170508:173144.220 starting automatic database upgrade
17257:20170508:173144.240 completed 0% of database upgrade
17257:20170508:173144.499 completed 1% of database upgrade
17257:20170508:173144.607 completed 2% of database upgrade
17257:20170508:173144.718 [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)]
17257:20170508:173144.719 database upgrade failed
Now I'm running into a new issue which I can't resolve:
17289:20170508:173215.422 database upgrade failed
17300:20170508:173225.497 Starting Zabbix Server. Zabbix 3.2.6 (revision 67849).
17300:20170508:173225.498 ****** Enabled features ******
17300:20170508:173225.498 SNMP monitoring: YES
17300:20170508:173225.498 IPMI monitoring: YES
17300:20170508:173225.498 Web monitoring: YES
17300:20170508:173225.498 VMware monitoring: YES
17300:20170508:173225.498 SMTP authentication: YES
17300:20170508:173225.498 Jabber notifications: YES
17300:20170508:173225.498 Ez Texting notifications: YES
17300:20170508:173225.498 ODBC: YES
17300:20170508:173225.498 SSH2 support: YES
17300:20170508:173225.498 IPv6 support: YES
17300:20170508:173225.498 TLS support: YES
17300:20170508:173225.498 ******************************
17300:20170508:173225.498 using configuration file: /etc/zabbix/zabbix_server.conf
17300:20170508:173225.500 current database version (mandatory/optional): 02030020/02030020
17300:20170508:173225.500 required mandatory version: 03020000
17300:20170508:173225.500 starting automatic database upgrade
17300:20170508:173225.500 [Z3005] query failed: [1050] Table 'item_condition' already exists [create table item_condition (
item_conditionid bigint unsigned not null,
itemid bigint unsigned not null,
operator integer default '8' not null,
macro varchar(64) default '' not null,
value varchar(255) default '' not null,
primary key (item_conditionid)
) engine=innodb]
17300:20170508:173225.500 database upgrade failed
Any help is much appreciated!
Thanks!
).
Comment