All,
I'm trying to upgrade from Zabbix 6.2.9 to 7.0.X, without any intermediate upgrades, eg 6.2 -> 6.4 -> 7.0. I have not seen anywhere that this is required, but I may be wrong.
I have followed the upgrade procedure in https://www.zabbix.com/documentation.../packages/rhel.
Now when I'm starting the zabbix-server, it should apply the required patches, but I'm stuck in a loop where patch 06030038 fails to install. After a 10 sec pause the process starts and fails again. Rinse and repeat.
Please see the snippet from Zabbix_server.log below.
What should be done here to succeed with the db-upgrade? Please bear in mind that I'm almost totally noob with sql.
Code:
38497:20250626:162427.483 Starting Zabbix Server. Zabbix 7.0.15 (revision d72b831a577). ... 38497:20250626:162427.483 using configuration file: /etc/zabbix/zabbix_server.conf 38497:20250626:162427.525 current database version (mandatory/optional): 06030037/06030037 38497:20250626:162427.525 required mandatory version: 07000000 38497:20250626:162427.525 mandatory patches were found 38497:20250626:162427.527 starting automatic database upgrade 38497:20250626:162427.528 [Z3005] query failed: [0] PGRES_FATAL_ERROR:ERROR: constraint "c_dchecks_1" of relation "dchecks" does not exist [alter table dchecks drop constraint c_dchecks_1] 38497:20250626:162427.528 database upgrade failed on patch 06030038, exiting in 10 seconds 38497:20250626:162437.528 Zabbix Server stopped. Zabbix 7.0.15 (revision d72b831a577). ^
timescaledb 2.15.3
rocky linux 8.10
Comment