[ZBX-8744] errors after upgrade from 2.2 to 2.4 Created: 2014 Sep 11 Updated: 2017 May 30 Resolved: 2014 Nov 06 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Proxy (P), Server (S) |
Affects Version/s: | 2.4.0 |
Fix Version/s: | 2.4.1rc1, 2.5.0 |
Type: | Incident report | Priority: | Blocker |
Reporter: | AndreaConsadori | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | dbpatches, upgrade | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Issue Links: |
|
Description |
If i click under Admin -> Proxy -> for every proxy i reciever |
Comments |
Comment by Alexander Vladishev [ 2014 Sep 13 ] |
Whether there were errors while upgrading a database (the first start of the Zabbix server). Please attach a log file of the Zabbix server. |
Comment by AndreaConsadori [ 2014 Sep 15 ] |
db upgrade goes to 100% without any error, 22076:20140911:175849.101 Starting Zabbix Server. Zabbix 2.4.0 (revision 48953). |
Comment by richlv [ 2014 Sep 15 ] |
do you have server log for the upgrade phase ? |
Comment by AndreaConsadori [ 2014 Sep 16 ] |
I've no more install log because i notice the error one day after and yes, previously was a node install where i just switch to proxy but master server remain on node 1 |
Comment by AndreaConsadori [ 2014 Sep 16 ] |
Maybe in mysql i've to do a manual cleanup of object with id major of 1002000000? (all my master node obj start with 10010000xxx |
Comment by Oleksii Zagorskyi [ 2014 Sep 16 ] |
You mentioned ID as 1002000000. It's quite strange. 1002000000 NNNSSSDDDDDDDDDDD I guess you just trimmed unique ID part. |
Comment by Oleksii Zagorskyi [ 2014 Sep 16 ] |
If you have any db backup before the upgrade to 2.4 - we could play with this, otherwise I don't have any idea how to investigate this case. |
Comment by AndreaConsadori [ 2014 Sep 16 ] |
where can i send my backup without sharing my host data with others? |
Comment by richlv [ 2014 Sep 16 ] |
how large is the backup file ? |
Comment by AndreaConsadori [ 2014 Sep 16 ] |
8mb |
Comment by Oleksii Zagorskyi [ 2014 Sep 16 ] |
you could send it to support at zabbix dot com |
Comment by AndreaConsadori [ 2014 Sep 16 ] |
sent with obj |
Comment by Alexander Vladishev [ 2014 Sep 16 ] |
The scheme of your database differs from the original. Database must correspond to the original scheme. Except partitioning. For example: CREATE TABLE `trigger_discovery` ( `triggerdiscoveryid` bigint(20) unsigned NOT NULL, `triggerid` bigint(20) unsigned NOT NULL, `parent_triggerid` bigint(20) unsigned NOT NULL, `name` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`triggerdiscoveryid`), UNIQUE KEY `trigger_discovery_1` (`triggerid`,`parent_triggerid`), KEY `c_trigger_discovery_2` (`parent_triggerid`), KEY `trigger_discovery_2` (`parent_triggerid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 Original table definition: CREATE TABLE `trigger_discovery` ( `triggerdiscoveryid` bigint(20) unsigned NOT NULL, `triggerid` bigint(20) unsigned NOT NULL, `parent_triggerid` bigint(20) unsigned NOT NULL, `name` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`triggerdiscoveryid`), UNIQUE KEY `trigger_discovery_1` (`triggerid`,`parent_triggerid`), KEY `trigger_discovery_2` (`parent_triggerid`), CONSTRAINT `c_trigger_discovery_2` FOREIGN KEY (`parent_triggerid`) REFERENCES `triggers` (`triggerid`) ON DELETE CASCADE, CONSTRAINT `c_trigger_discovery_1` FOREIGN KEY (`triggerid`) REFERENCES `triggers` (`triggerid`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 We strongly recommends to add FOREIGN KEY constraints to fields which have them in the original db scheme. Otherwise the database will be inconsistent and Zabbix will work incorrectly. |
Comment by Alexander Vladishev [ 2014 Sep 16 ] |
In any case Zabbix should stop upgrade procedure when error occurred. It will be fixed. |
Comment by Alexander Vladishev [ 2014 Sep 16 ] |
Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-8744 |
Comment by Daniel W Ottey [ 2014 Sep 16 ] |
I am seeing this same error after upgrading zabbix proxy. 17327:20140916:110553.874 [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 Is there a fix that I can apply? |
Comment by tdudas [ 2014 Sep 16 ] |
I also have the same error: [Z3005] query failed: [1054] Unknown column 'bulk' in 'field list' [select interfaceid,hostid,type,main,useip,ip,dns,port,bulk from interface I also try compile with svn://svn.zabbix.com/branches/dev/ZBX-8744 but still the same error. The upgrade database to 2.4 was failed. Is there a fix that I can apply? |
Comment by richlv [ 2014 Sep 16 ] |
8744 branch fix will make it stop upon the first failure. for this to help any, you should restore the db with a backup before the upgrade and attempt the upgrade again. then you will see the original error. |
Comment by Andris Zeila [ 2014 Sep 17 ] |
Successfully tested |
Comment by Alexander Vladishev [ 2014 Sep 17 ] |
Fixed in pre-2.4.1 r49087 and pre-2.5.0 (trunk) r49088. |
Comment by AndreaConsadori [ 2014 Sep 18 ] |
how is possible to fix the scheme of database that differs from the original? maybe some changes has been made on the fist version when mysql partitioning wasn't usable. |
Comment by Oleksii Zagorskyi [ 2014 Sep 18 ] |
AndreaConsadori, this issue report is not the place where you need to expect some help on your question. In short - you need to fix your db schema yourself and manually, then make sure it corresponds with official db schema and only then do upgrade. |
Comment by AndreaConsadori [ 2014 Oct 09 ] |
in 2.4.1 i still have the issue 24437:20141009:103324.970 Starting Zabbix Server. Zabbix 2.4.0 (revision 48953). and start to fill all log of 25388:20141009:103330.352 [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<=1412843610 and mod(t.httptestid,1)=0 and t.status=0 and h.proxy_hostid is null and h.status=0 and (h.maintenance_status=0 or h.maintenance_type=0)] now polling works but maps are gone, all corrupted |
Comment by AndreaConsadori [ 2014 Oct 09 ] |
with 2.4.1 issue persist |
Comment by Alexander Vladishev [ 2014 Oct 09 ] |
In the log I see "Starting Zabbix Server. Zabbix 2.4.0 (revision 48953).". Please check what version you use. |
Comment by AndreaConsadori [ 2014 Oct 09 ] |
mm... i see zabbix-release-2.4-1.el6.noarch.rpm but zabbix-server-mysql-2.4.0-2.el6.x86_64.rpm so rpm still uploading.... |
Comment by Alexander Vladishev [ 2014 Oct 09 ] |
Packages 2.4.1 will appear a little bit later. Please wait. zabbix-release-2.4-1.el6.noarch.rpm <-- it isn't 2.4.1 packet. <richlv> hmm... somehow we seem to have lost "0" in the version number, which could have helped to avoid this confusion sasha It is "Zabbix repository configuration" package. $ rpm -qip zabbix-release-2.4-1.el6.noarch.rpm warning: zabbix-release-2.4-1.el6.noarch.rpm: Header V4 DSA/SHA1 Signature, key ID 79ea5ed4: NOKEY Name : zabbix-release Version : 2.4 Release : 1.el6 Architecture: noarch Install Date: (not installed) Group : System Environment/Base Size : 20118 License : GPL Signature : DSA/SHA1, Thu 11 Sep 2014 11:19:09 AM EEST, Key ID d13d58e479ea5ed4 Source RPM : zabbix-release-2.4-1.el6.src.rpm Build Date : Thu 11 Sep 2014 11:10:26 AM EEST Build Host : build.zabbix.com Relocations : (not relocatable) Packager : Zabbix SIA <https://support.zabbix.com> Vendor : Zabbix SIA URL : http://www.zabbix.com Summary : Zabbix repository configuration Description : This package contains the Zabbix official repository GPG key as well as configuration for yum. <richlv> ah, got it - thanks |
Comment by Alexander Vladishev [ 2014 Oct 15 ] |
FYI: 2.4.1 packages are published on our repository. Please try again. |
Comment by Alexander Vladishev [ 2014 Nov 06 ] |
I close the issue. Feel free to reopen. |
Comment by Alexander Vladishev [ 2015 Jan 05 ] |
This caused a regression: |