I have problem with duplicate entry for key 'PRIMARY' after upgrading Zabbix 5.0 > 6.0.6.
First DB upgrade went well and there was no problems (zbx1.txt) but after I run manualy database upgrade for primary keys (zbx2.txt) I got lots of query failed errors with duplicates (zbx3.txt).
Here is one example in zabbix_server.log:
17170:20220629:130620.865 [Z3008] query failed due to primary key constraint: [1062] Duplicate entry '29095-1656507978-1' for key 'PRIMARY'
17170:20220629:130620.876 skipped 48 duplicates
I have allready tried different fixes, deleted history tables, recreate, partitioning etc but no luck, maybe someone have some idea what is wrong and what should I do for fix this error.
Or do I certainly need primary keys for history tables?
My system is
Ubuntu 20.04
Php 7.4.3
MariaDB 10.6.8
First DB upgrade went well and there was no problems (zbx1.txt) but after I run manualy database upgrade for primary keys (zbx2.txt) I got lots of query failed errors with duplicates (zbx3.txt).
Here is one example in zabbix_server.log:
17170:20220629:130620.865 [Z3008] query failed due to primary key constraint: [1062] Duplicate entry '29095-1656507978-1' for key 'PRIMARY'
17170:20220629:130620.876 skipped 48 duplicates
I have allready tried different fixes, deleted history tables, recreate, partitioning etc but no luck, maybe someone have some idea what is wrong and what should I do for fix this error.
Or do I certainly need primary keys for history tables?
My system is
Ubuntu 20.04
Php 7.4.3
MariaDB 10.6.8
Comment