ExportXMLWordPrintable

    • Type: Problem report
    • Resolution: Unresolved
    • Priority: Trivial
    • None
    • Affects Version/s: 8.0.1rc1
    • Component/s: Proxy (P), Server (S)
    • None

      Steps to reproduce:

      1. Use a database version not supported by Zabbix 8.0, for example MySQL 8.0.46. However, it should not be below above the hard MIN limit.
      2. Configure AllowUnsupportedDBVersions=0 in zabbix_server.log
      3. Create a clean database for the latest Zabbix 7.0 (branch release/7.0).
      4. Start Zabbix server 8.0 (branch master)

      Tested at MySQL.

      Result:
      Zabbix server shows failed query message.
      See log file zabbix_server.log

      342638:20261103:174150.829 Starting Zabbix Server. Zabbix 8.0.0rc3 (revision {ZABBIX_REVISION}).
      342638:20261103:174150.829 ****** Enabled features ******
      342638:20261103:174150.829 SNMP monitoring:           YES
      342638:20261103:174150.829 IPMI monitoring:            NO
      342638:20261103:174150.829 Web monitoring:            YES
      342638:20261103:174150.829 VMware monitoring:         YES
      342638:20261103:174150.829 SMTP authentication:       YES
      342638:20261103:174150.829 ODBC:                       NO
      342638:20261103:174150.830 SSH support:                NO
      342638:20261103:174150.830 IPv6 support:              YES
      342638:20261103:174150.830 TLS support:               YES
      342638:20261103:174150.830 ******************************
      342638:20261103:174150.830 using configuration file: /usr/local/etc/zabbix_server.conf
      342638:20261103:174150.839 ==================================================
      342638:20261103:174150.839 Unable to start Zabbix server due to unsupported MySQL database version (8.0.46).
      342638:20261103:174150.839 Must be at least (8.4.0).
      342638:20261103:174150.839 Use of supported database version is highly recommended.
      342638:20261103:174150.839 Override by setting AllowUnsupportedDBVersions=1 in Zabbix server configuration file at your own risk.
      342638:20261103:174150.839 ==================================================
      342638:20261103:174150.840 [Z3005] query failed: [1146] Table 'dbname.settings' doesn't exist [select 1 from settings where name='dbversion_status']
      342638:20261103:174150.840 Zabbix Server stopped. Zabbix 8.0.0rc3 (revision {ZABBIX_REVISION}).
      

      Expected:
      Zabbix server log should not contain failed query messages and it should stop with error message about unsupported DB version only.

      Also, Zabbix proxy should be checked for the same problem.

      Root cause
      Zabbix schema was not upgraded in zbx_check_db() because unsupported DB version was detected. zbx_check_db() tries to perform zbx_db_setting_exists("dbversion_status") with schema for Zabbix 7.0 which it should not.

            Assignee:
            Zabbix Development Team
            Reporter:
            Mihails Prihodko
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: