[ZBX-8746] upgrade 2.2 to 2.4 - zabbix server error log Created: 2014 Sep 11  Updated: 2017 May 30  Resolved: 2014 Oct 15

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: None
Fix Version/s: None

Type: Incident report Priority: Trivial
Reporter: AndreaConsadori Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates ZBX-8744 errors after upgrade from 2.2 to 2.4 Closed

 Description   

20144:20140911:173935.556 [Z3005] query failed: [1054] Unknown column 't.headers' in 'field list' [select h.hostid,h.host,h.name,t.httptestid,t.name,t.variables,t.headers,t.agent,t.authentication,t.http_user,t.http_password,t.http_proxy,t.retries,t.ssl_cert_file,t.ssl_key_file,t.ssl_key_password,t.verify_peer,t.verify_host from httptest t,hosts h where t.hostid=h.hostid and t.nextcheck<=1410449975 and mod(t.httptestid,10)=9 and t.status=0 and h.proxy_hostid is null and h.status=0 and (h.maintenance_status=0 or h.maintenance_type=0)]



 Comments   
Comment by AndreaConsadori [ 2014 Sep 11 ]

if i goes under config - template - web scenario i found

Undefined index: headers [ in /usr/share/zabbix/httpconf.php:481]
Undefined index: verify_peer [ in /usr/share/zabbix/httpconf.php:482]
Undefined index: verify_host [ in /usr/share/zabbix/httpconf.php:483]
Undefined index: ssl_cert_file [ in /usr/share/zabbix/httpconf.php:484]
Undefined index: ssl_key_file [ in /usr/share/zabbix/httpconf.php:485]
Undefined index: ssl_key_password [ in /usr/share/zabbix/httpconf.php:486]
Undefined index: headers [httpconf.php:528 → CView->render() → include() → require_once() in /usr/share/zabbix/include/views/js/configuration.httpconf.edit.js.php:192]
Undefined index: retrieve_mode [httpconf.php:528 → CView->render() → include() → require_once() in /usr/share/zabbix/include/views/js/configuration.httpconf.edit.js.php:193]
Undefined index: follow_redirects [httpconf.php:528 → CView->render() → include() → require_once() in /usr/share/zabbix/include/views/js/configuration.httpconf.edit.js.php:194]

Comment by Alexander Vladishev [ 2014 Sep 13 ]

It is a duplicate of ZBX-8744. These issues are related to the problems with server's database upgrade.

I close the issue.

Comment by AndreaConsadori [ 2014 Oct 15 ]

13957:20141015:083723.646 Starting Zabbix Server. Zabbix 2.4.1 (revision 49643).
13957:20141015:083723.646 ****** Enabled features ******
13957:20141015:083723.646 SNMP monitoring: YES
13957:20141015:083723.646 IPMI monitoring: YES
13957:20141015:083723.646 WEB monitoring: YES
13957:20141015:083723.646 VMware monitoring: YES
13957:20141015:083723.646 Jabber notifications: YES
13957:20141015:083723.646 Ez Texting notifications: YES
13957:20141015:083723.646 ODBC: YES
13957:20141015:083723.646 SSH2 support: YES
13957:20141015:083723.646 IPv6 support: YES
13957:20141015:083723.646 ******************************
13957:20141015:083723.646 using configuration file: /etc/zabbix/zabbix_server.conf
13957:20141015:083723.674 current database version (mandatory/optional): 02020000/02020001
13957:20141015:083723.674 required mandatory version: 02040000
13957:20141015:083723.674 starting automatic database upgrade
13957:20141015:083723.675 completed 0% of database upgrade
13957:20141015:083723.730 completed 1% of database upgrade
13957:20141015:083723.933 completed 2% of database upgrade
13957:20141015:083724.923 completed 3% of database upgrade
13957:20141015:083725.019 completed 4% of database upgrade
13957:20141015:083725.065 completed 5% of database upgrade
13957:20141015:083725.157 completed 6% of database upgrade
13957:20141015:083725.232 completed 7% of database upgrade
13957:20141015:083725.234 [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)]
13957:20141015:083725.234 database upgrade failed

[root@zabbix tmp]# rpm -qa | grep zabbix
zabbix-release-2.4-1.el6.noarch
zabbix-web-2.4.1-1.el6.noarch
zabbix-get-2.4.1-1.el6.x86_64
percona-zabbix-templates-1.1.1-1.noarch
zabbix-server-2.4.1-1.el6.x86_64
zabbix-sender-2.4.1-1.el6.x86_64
zabbix-server-mysql-2.4.1-1.el6.x86_64
zabbix-agent-2.4.1-1.el6.x86_64
zabbix-2.4.1-1.el6.x86_64
zabbix-web-mysql-2.4.1-1.el6.noarch

Comment by richlv [ 2014 Oct 15 ]

existing database problems is not a bug in zabbix, more of a support request. please use zabbix irc, forums and other channels for community support - see https://www.zabbix.org/wiki/Getting_help for more detail

Comment by Bobby Hakimi [ 2015 May 17 ]

im having the same issue as andrea. Andrea Consadori how did you fix this issue?

Comment by AndreaConsadori [ 2015 May 21 ]

I export the mysql db without db structure, drop old mysql db, drop zabbix, new 2.2 install, import only data db without structure, upgrade 2.2 to 2.4

Generated at Mon Mar 03 13:15:06 EET 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.