Hi guys,
I run a quite large setup of Zabbix with more than 800 hosts. Now I wanted to migrate from 2.0 to 2.4. Because I wanted to export all the historic data as well, I stopped the old server made a database dump and copied it to the database of the new server. The documentation says:
But: When I start the server now, I will get failed queries inside the log as well as on the webinterface. Here are some samples:

Can anyone tell me what I can do now to get the DB to work with the new server?
Btw, password is correct and hostgroups etc. are displayed.
Best regards,
Marco
Edit: I just had an idea: Is it possible that Zabbix didn't upgrade the db, because I created a 2.4. database and used it before I imported the 2.0 db?
I run a quite large setup of Zabbix with more than 800 hosts. Now I wanted to migrate from 2.0 to 2.4. Because I wanted to export all the historic data as well, I stopped the old server made a database dump and copied it to the database of the new server. The documentation says:
Zabbix server will automatically upgrade the database only from Zabbix 2.0.x to 2.4. For upgrading from earlier versions consult Zabbix documentation for 2.0 and earlier.
6404:20150908:125702.707 [Z3005] query failed: [1054] Unknown column 't.variables' in 'field list' [select h.hostid,h.host,h.name,t.httptestid,t.name,t.varia bles,t.headers,t.agent,t.authentication,t.http_use r,t.http_password,t.http_proxy,t.retries,t.ssl_cer t_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<=1441709822 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)]
query failed: [1054] Unknown column 'itemid' in 'field list' [select escalationid,actionid,triggerid,eventid,r_eventid, nextcheck,esc_step,status,itemid from escalations order by actionid,triggerid,itemid,escalationid]

Can anyone tell me what I can do now to get the DB to work with the new server?
Btw, password is correct and hostgroups etc. are displayed.
Best regards,
Marco
Edit: I just had an idea: Is it possible that Zabbix didn't upgrade the db, because I created a 2.4. database and used it before I imported the 2.0 db?
Comment