[ZBX-24621] Upgrading postgres database from 6.4 to 7.0 cruch on patch 06050111 Created: 2024 Jun 07 Updated: 2024 Jun 11 Resolved: 2024 Jun 11 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Problem report | Priority: | Trivial |
Reporter: | Maciej Użdalewicz | Assignee: | Zabbix Support Team |
Resolution: | Won't fix | Votes: | 0 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Debian 12 bookworm |
Attachments: |
![]() |
Description |
Steps to reproduce: Folow by update instructions on 2 Debian/Ubuntu (zabbix.com)
Result: On zabbix page thers an error on log file zabbix_server.log: 20040:20240607:092637.341 Starting Zabbix Server. Zabbix 7.0.0 (revision 49955f1fb5c). 20040:20240607:092637.342 ****** Enabled features ****** 20040:20240607:092637.342 SNMP monitoring: YES 20040:20240607:092637.342 IPMI monitoring: YES 20040:20240607:092637.342 Web monitoring: YES 20040:20240607:092637.342 VMware monitoring: YES 20040:20240607:092637.342 SMTP authentication: YES 20040:20240607:092637.342 ODBC: YES 20040:20240607:092637.342 SSH support: YES 20040:20240607:092637.342 IPv6 support: YES 20040:20240607:092637.342 TLS support: YES 20040:20240607:092637.342 ****************************** 20040:20240607:092637.342 using configuration file: /etc/zabbix/zabbix_server.conf 20040:20240607:092637.453 current database version (mandatory/optional): 06050110/06050110 20040:20240607:092637.453 required mandatory version: 07000000 20040:20240607:092637.453 mandatory patches were found 20040:20240607:092637.457 starting automatic database upgrade 20040:20240607:092637.463 [Z3005] query failed: [0] PGRES_FATAL_ERROR:ERROR: table tid from new index tuple (336,20) overlaps with invalid duplicate tuple at offset 27 of block 108 in index "items_8" [update items set timeout='' where type not in (19,21)] 20040:20240607:092637.463 database upgrade failed on patch 06050111, exiting in 10 seconds 20040:20240607:092647.464 Zabbix Server stopped. Zabbix 7.0.0 (revision 49955f1fb5c). Expected: |
Comments |
Comment by Alexander Vladishev [ 2024 Jun 09 ] |
It looks very much like a corrupted database. Try making a dump of the database, restoring it, and only then performing the upgrade. This should help. |
Comment by Edgar Akhmetshin [ 2024 Jun 11 ] |
Not a Zabbix issue. https://www.postgresql.org/docs/current/sql-reindex.html REINDEX (VERBOSE) TABLE CONCURRENTLY items; Closing as Won't fix. |