[ZBX-7617] database node conversion fails in 2.2.1 Created: 2014 Jan 07 Updated: 2017 May 30 Resolved: 2014 Jan 08 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Documentation (D) |
Affects Version/s: | 2.2.1 |
Fix Version/s: | 2.0.11, 2.2.2 |
Type: | Incident report | Priority: | Major |
Reporter: | jean-marc CHORIER | Assignee: | Martins Valkovskis |
Resolution: | Fixed | Votes: | 0 |
Labels: | dm | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
CentOS |
Issue Links: |
|
Description |
I just install zabbix from official rpm and try to convert to multi node
Centos
Mysql & Zabbix 2.2.1
|
Comments |
Comment by jean-marc CHORIER [ 2014 Jan 07 ] |
with all frontends windows close it works please append the documentation thanks |
Comment by Oleksii Zagorskyi [ 2014 Jan 07 ] |
I faced already with this problem once for 2.2 default DB. My log record was: zabbix_server [14555]: Error: [Z3005] query failed: [1452] Cannot add or update a child row: a foreign key constraint fails (`zabbix22node1`.`#sql-32c7_1fb`, CONSTRAINT `c_sessions_1` FOREIGN KEY (`userid`) REFERENCES `users` (`userid`) ON DELETE CASCADE) [ALTER TABLE `sessions` ADD CONSTRAINT `c_sessions_1` FOREIGN KEY (`userid`) REFERENCES `users` (`userid`) ON DELETE CASCADE] ......Conversion failed. but I had opened that zabbix frontend (which can perform automatic page refreshes) in browser during conversion, maybe even several tabs ! The problem happened because between tables "sessions" and "users" conversion I've got row(s) update for "sessions" table. Later I tried to reproduce the scenario 4 times on default 2.2 DB and was not able to catch the error anymore. Conclusion: do close all tabs with zabbix frontend before conversion !!! We just need to add a red note (after existing one) that it's strongly recommended to stop Apache (it's indeed provides guaranteed result) before the conversion step: martins-v RESOLVED in both suggested places. Please review. zalex_ua I think it's enough. |