Hi,
installed 2.0.0 server and proxy. Server was updated from 1.8.12, proxy got a new and clean database from the supplied schema files.
Now configuration sync with the proxy fails (last line):
Before the error occured, I've added a few webchecks which should be executed by the proxy.
Just tried with a clean proxy database and got this error on initial sync:
Any ideas?
regards
Stephan
installed 2.0.0 server and proxy. Server was updated from 1.8.12, proxy got a new and clean database from the supplied schema files.
Now configuration sync with the proxy fails (last line):
Code:
9222:20120526:120857.949 Zabbix Proxy stopped. Zabbix 2.0.0 (revision 27675). 9332:20120526:120956.794 Starting Zabbix Proxy (active) [proxy-server18]. Zabbix 2.0.0 (revision 27675). 9332:20120526:120956.794 **** Enabled features **** 9332:20120526:120956.794 SNMP monitoring: YES 9332:20120526:120956.794 IPMI monitoring: YES 9332:20120526:120956.794 ODBC: NO 9332:20120526:120956.794 SSH2 support: NO 9332:20120526:120956.794 IPv6 support: YES 9332:20120526:120956.794 ************************** 9338:20120526:120956.817 proxy #1 started [configuration syncer #1] 9332:20120526:120956.827 proxy #0 started [main process] 9340:20120526:120956.828 proxy #3 started [data sender #1] 9348:20120526:120956.832 proxy #11 started [trapper #2] 9347:20120526:120956.833 proxy #10 started [trapper #1] 9350:20120526:120956.833 proxy #13 started [trapper #4] 9349:20120526:120956.833 proxy #12 started [trapper #3] 9352:20120526:120956.834 proxy #15 started [icmp pinger #1] 9351:20120526:120956.834 proxy #14 started [trapper #5] 9339:20120526:120956.835 proxy #2 started [heartbeat sender #1] 9353:20120526:120956.835 proxy #16 started [housekeeper #1] 9353:20120526:120956.835 Executing housekeeper 9354:20120526:120956.835 proxy #17 started [http poller #1] 9356:20120526:120956.835 proxy #19 started [history syncer #1] 9357:20120526:120956.836 proxy #20 started [history syncer #2] 9359:20120526:120956.836 proxy #22 started [history syncer #4] 9361:20120526:120956.837 proxy #24 started [ipmi poller #2] 9363:20120526:120956.837 proxy #26 started [ipmi poller #4] 9353:20120526:120956.851 Deleted 0 records from history [0.006326 seconds] 9358:20120526:120956.853 proxy #21 started [history syncer #3] 9360:20120526:120956.853 proxy #23 started [ipmi poller #1] 9362:20120526:120956.853 proxy #25 started [ipmi poller #3] 9364:20120526:120956.854 proxy #27 started [ipmi poller #5] 9346:20120526:120956.907 proxy #9 started [unreachable poller #1] 9342:20120526:120956.907 proxy #5 started [poller #2] 9345:20120526:120956.924 proxy #8 started [poller #5] 9344:20120526:120956.939 proxy #7 started [poller #4] 9343:20120526:120956.944 proxy #6 started [poller #3] 9341:20120526:120956.949 proxy #4 started [poller #1] 9355:20120526:120956.950 proxy #18 started [discoverer #1] 9338:20120526:120956.980 Received configuration data from server. Datalen 194264 9338:20120526:120957.222 [Z3005] query failed: [1451] Cannot delete or update a parent row: a foreign key constraint fails (`zabbix_proxy`.`opgroup`, CONSTRAINT `c_opgroup_2` FOREIGN KEY (`groupid`) REFERENCES `groups` (`groupid`)) [delete from groups where groupid in (1,2,4,5); 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; ] 9338:20120526:120957.222[B] failed to update local proxy cofiguration copy: database error[/B]
Just tried with a clean proxy database and got this error on initial sync:
Code:
9731:20120526:121818.394 Starting Zabbix Proxy (active) [proxy-server18]. Zabbix 2.0.0 (revision 27675). 9731:20120526:121818.394 **** Enabled features **** 9731:20120526:121818.394 SNMP monitoring: YES 9731:20120526:121818.394 IPMI monitoring: YES 9731:20120526:121818.394 ODBC: NO 9731:20120526:121818.394 SSH2 support: NO 9731:20120526:121818.394 IPv6 support: YES 9731:20120526:121818.394 ************************** 9737:20120526:121818.400 proxy #1 started [configuration syncer #1] 9739:20120526:121818.408 proxy #3 started [data sender #1] 9747:20120526:121818.412 proxy #11 started [trapper #2] 9731:20120526:121818.415 proxy #0 started [main process] 9749:20120526:121818.416 proxy #13 started [trapper #4] 9751:20120526:121818.416 proxy #15 started [icmp pinger #1] 9746:20120526:121818.417 proxy #10 started [trapper #1] 9738:20120526:121818.417 proxy #2 started [heartbeat sender #1] 9748:20120526:121818.417 proxy #12 started [trapper #3] 9753:20120526:121818.418 proxy #17 started [http poller #1] 9750:20120526:121818.418 proxy #14 started [trapper #5] 9752:20120526:121818.419 proxy #16 started [housekeeper #1] 9752:20120526:121818.419 Executing housekeeper 9755:20120526:121818.419 proxy #19 started [history syncer #1] 9756:20120526:121818.424 proxy #20 started [history syncer #2] 9757:20120526:121818.425 proxy #21 started [history syncer #3] 9758:20120526:121818.425 proxy #22 started [history syncer #4] 9760:20120526:121818.426 proxy #24 started [ipmi poller #2] 9762:20120526:121818.426 proxy #26 started [ipmi poller #4] 9759:20120526:121818.429 proxy #23 started [ipmi poller #1] 9761:20120526:121818.433 proxy #25 started [ipmi poller #3] 9763:20120526:121818.433 proxy #27 started [ipmi poller #5] 9752:20120526:121818.438 Deleted 0 records from history [0.001109 seconds] 9745:20120526:121818.487 proxy #9 started [unreachable poller #1] 9743:20120526:121818.489 proxy #7 started [poller #4] 9754:20120526:121818.518 proxy #18 started [discoverer #1] 9744:20120526:121818.537 proxy #8 started [poller #5] 9742:20120526:121818.540 proxy #6 started [poller #3] 9741:20120526:121818.540 proxy #5 started [poller #2] 9740:20120526:121818.542 proxy #4 started [poller #1] 9737:20120526:121818.564 Received configuration data from server. Datalen 194264 9737:20120526:121819.007 [Z3005] query failed: [1451] Cannot delete or update a parent row: a foreign key constraint fails (`zabbix_proxy`.`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 config where configid=1; delete from groups where groupid in (1,2,4,5); 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;
regards
Stephan
).
Comment