Recently we have upgraded to zabbix 2.0.1. Everything is working well except for zabbix proxy setup.
We are getting the following error in zabbix proxy log:
then after zabbix proxy restart the error message changes:
We have a fresh zabbix proxy instance. The database was created with the following commands:
Version of zabbix server, proxy and agents is 2.0.1.
I found similar error reports on the forum, but didn't see any reasonable solution.
Does anybody know what can cause this issue?
We are getting the following error in zabbix proxy log:
Code:
15062:20120703:160808.651 Received configuration data from server. Datalen 4767 15062:20120703:160809.079 [Z3005] query failed: [1451] Cannot delete or update a parent row: a foreign key constraint fails (`zabbix`.`opgroup`, CONSTRAINT `c_opgroup_2` FOREIGN KEY (`groupid`) REFERENCES `groups` (`groupid`)) [delete from applications where applicationid in (1,5,7,9,13,15,17,21,23,179,206,207,214,227,228,229,230,231,232,234,235,236,237,238,240,241,242,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,319,320,322,323,324,325,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355); delete from groups where groupid in (1,2,4); delete from expressions where expressionid between 1 and 4; delete from regexps where regexpid between 1 and 3; delete from dchecks where dcheckid=2; delete from drules where druleid=2; delete from interface where interfaceid=1; delete from hosts where hostid in (10001,10047,10050,10056,10060,10065,10066,10067,10068,10069,10070,10071,10072,10073,10074,10075,10076,10077,10078,10079,10081,10082,10083,10084); delete from globalmacro where globalmacroid=2;
Code:
15171:20120703:161027.615 [Z3005] query failed: [1451] Cannot delete or update a parent row: a foreign key constraint fails (`zabbix`.`opgroup`, CONSTRAINT `c_opgroup_2` FOREIGN KEY (`groupid`) REFERENCES `groups` (`groupid`)) [delete from groups where groupid in (1,2,4); delete from expressions where expressionid between 1 and 4; delete from regexps where regexpid between 1 and 3; delete from dchecks where dcheckid=2; delete from drules where druleid=2; delete from interface where interfaceid=1; delete from hosts where hostid in (10001,10047,10050,10056,10060,10065,10066,10067,10068,10069,10070,10071,10072,10073,10074,10075,10076,10077,10078,10079,10081,10082,10083,10084); delete from globalmacro where globalmacroid=2; ] 15171:20120703:161027.615 failed to update local proxy cofiguration copy: database error
Code:
# mysql zabbix < /usr/share/zabbix/database/mysql/schema.sql # mysql zabbix < /usr/share/zabbix/database/mysql/images.sql # mysql zabbix < /usr/share/zabbix/database/mysql/data.sql
I found similar error reports on the forum, but didn't see any reasonable solution.
Does anybody know what can cause this issue?
Comment