Hi
I'm in the process of upgrading our Zabbix infrastructure and have encountered a database schema upgrade issue. Environment Details:
What I Did:
Issue:
Upon starting the Zabbix server, I received the following error on the web frontend:
From the logs, I see that the upgrade fails during patch 06010006:
query failed: [1050] Table 'userdirectory' already exists database upgrade failed on patch 06010006, exiting in 10 seconds
I suspect a conflict between pre-existing schema objects in the restored database and what the Zabbix 7.0 upgrade scripts expect.
Request:
Could you please advise on the recommended way to proceed?
Thanks in advance for your help.
I'm in the process of upgrading our Zabbix infrastructure and have encountered a database schema upgrade issue. Environment Details:
- Current Production Server:
- Zabbix version: 6.0.40 (LTS)
- OS: Ubuntu 22.04
- MySQL/MariaDB used for the Zabbix database
- New Target Server:
- Zabbix version: 7.0
- OS: Ubuntu 24.04
- Clean installation with Zabbix 7.0 packages
What I Did:
- Performed a full mysqldump of the zabbix database on the 6.0.40 server.
- Restored the dump on the newly installed Zabbix 7.0 server.
- After restoration, I attempted to start the Zabbix server service to trigger the automatic schema upgrade.
Issue:
Upon starting the Zabbix server, I received the following error on the web frontend:
"The Zabbix database version does not match current requirements. Your database version: 6010005. Required version: 7000000."
From the logs, I see that the upgrade fails during patch 06010006:
query failed: [1050] Table 'userdirectory' already exists database upgrade failed on patch 06010006, exiting in 10 seconds
I suspect a conflict between pre-existing schema objects in the restored database and what the Zabbix 7.0 upgrade scripts expect.
Request:
Could you please advise on the recommended way to proceed?
- Is there a supported method for migrating a Zabbix 6.0 database to a Zabbix 7.0 installation?
- Is it expected to step through minor version upgrades (e.g., 6.0 → 6.4 → 7.0) rather than jumping directly?
- Should I drop specific objects before the upgrade, or is there a cleaner migration approach?
Thanks in advance for your help.
Comment