[ZBX-5305] foreign key constraint fails when proxy tries to delete groups Created: 2012 Jul 11 Updated: 2017 May 30 Resolved: 2012 Jul 17 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Proxy (P) |
Affects Version/s: | 2.0.0, 2.0.1 |
Fix Version/s: | None |
Type: | Incident report | Priority: | Major |
Reporter: | Wesley | Assignee: | Unassigned |
Resolution: | Cannot Reproduce | Votes: | 0 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
centos 5.8 X64 |
Issue Links: |
|
Description |
proxy server log 4239:20120711:134729.555 Received configuration data from server. Datalen 45156 and add zabbix_agentd server must restart proxy or clear the database resumed after the introduction. |
Comments |
Comment by richlv [ 2012 Jul 11 ] | ||||||||||||||||||||||||||||||||
what are exact proxy and server versions ? | ||||||||||||||||||||||||||||||||
Comment by Wesley [ 2012 Jul 12 ] | ||||||||||||||||||||||||||||||||
versions:2.0.1 | ||||||||||||||||||||||||||||||||
Comment by Oleksii Zagorskyi [ 2012 Jul 12 ] | ||||||||||||||||||||||||||||||||
I have the same error (with some differences): 17937:20120711:161230.042 [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,5,3003000000000007); <zalex> CLOSED | ||||||||||||||||||||||||||||||||
Comment by Oleksii Zagorskyi [ 2012 Jul 12 ] | ||||||||||||||||||||||||||||||||
(1) note also a typo in the message - "cofiguration", missing N letter. | ||||||||||||||||||||||||||||||||
Comment by Oleksii Zagorskyi [ 2012 Jul 12 ] | ||||||||||||||||||||||||||||||||
Show us please also an output from this SQL **on the proxy db**: Are you sure that you have created **only** DB **schema** as described in documentation? | ||||||||||||||||||||||||||||||||
Comment by dimir [ 2012 Jul 16 ] | ||||||||||||||||||||||||||||||||
jack.lee, please reply to the last comment or we will assume the case closed. | ||||||||||||||||||||||||||||||||
Comment by Wesley [ 2012 Jul 17 ] | ||||||||||||||||||||||||||||||||
Please tell me how to operate? Database changed
----------
----------
---------------------
--------------------- mysql> show variables like 'character_set_%';
-------------------------
------------------------- mysql> | ||||||||||||||||||||||||||||||||
Comment by Oleksii Zagorskyi [ 2012 Jul 17 ] | ||||||||||||||||||||||||||||||||
jack.lee, drop your database *on proxies* and recreate it according to documentation: Then the table "opgroup" (and others) will be empty, as they must be for proxies !!! Issue CLOSED. | ||||||||||||||||||||||||||||||||
Comment by dimir [ 2012 Jul 17 ] | ||||||||||||||||||||||||||||||||
Oleksiy, the typo will be fixed in | ||||||||||||||||||||||||||||||||
Comment by dimir [ 2012 Jul 17 ] | ||||||||||||||||||||||||||||||||
jack.lee, when you create proxy database only schema should be loaded, the data must not be loaded. |