[ZBX-12060] query failed: [1452] Created: 2017 Apr 18 Updated: 2024 Apr 10 Resolved: 2017 May 02 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Server (S) |
Affects Version/s: | 3.2.5rc1 |
Fix Version/s: | None |
Type: | Incident report | Priority: | Trivial |
Reporter: | Anderson Oliveira | Assignee: | Unassigned |
Resolution: | Won't fix | Votes: | 0 |
Labels: | database, items | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
CentOS 6.8; MySQL 5.7 |
Team: | |
Sprint: | Sprint 6, Sprint 7 |
Description |
After upgrade to 3.2.5rc this error appears many times in log 731:20170418:001726.283 [Z3005] query failed: [1452] Cannot add or update a child row: a foreign key constraint fails (`zabbix`.`functions`, CONSTRAINT `c_functions_1` FOREIGN KEY (`itemid`) REFERENCES `items` (`itemid`) ON DELETE CASCADE) [insert into functions (functionid,itemid,triggerid,function,parameter) values (48904,127334,42075,'diff','0'),(48905,127335,42076,'diff','0'),(48906,127336,42077,'diff','0'),(48907,127337,42078,'diff','0'),(48908,127338,42079,'diff','0'),(48909,127339,42080,'diff','0'),(48910,127340,42081,'diff','0'); |
Comments |
Comment by Alexander Vladishev [ 2017 Apr 19 ] |
What version you used before 3.2.5rc1? |
Comment by Hsu Mon [ 2017 May 02 ] |
I am facing this error too. My OS is Ubuntu 16.04 LTS, MySQL 5.7.14. Moreover, the following errors are also repeatedly found in server log. query failed: [1062] Duplicate entry '10154-ifAdminStatus[Internal]' for key 'items_1' [insert into items (itemid,n |
Comment by Alexander Vladishev [ 2017 May 02 ] |
Hsu Mon, your database is not configured as case-sensitive. You need use utf8_bin collate instead of *_ci. |
Comment by Anderson Oliveira [ 2017 May 02 ] |
Problem solved; I deleted the entry manually |
Comment by Alexander Vladishev [ 2017 May 02 ] |
Closed as "Won't Fix" |