Ad Widget

Collapse

The Zabbix database version does not match current requirements

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mlazzarotto
    Junior Member
    • Feb 2022
    • 14

    #1

    The Zabbix database version does not match current requirements

    Hello,
    I'm running Zabbix via Docker. The Zabbix server is running and I am receiving notifications from Pushover, but the web interface is not working anymore.
    The error I'm receiving is
    Code:
    Database error The Zabbix database version does not match current requirements. Your database version: 7040000. Required version: 7020000. Please contact your system administrator.
    .

    Docker logs are not showing anything useful.

    This is my docker-compose
    Code:
    version: '3.7'
    
    services:
      postgresql-server:
        image: postgres:16
        container_name: postgresql-server
        restart: unless-stopped
        labels:
          - "diun.enable=false"
        environment:
          POSTGRES_USER: ${POSTGRES_USER}
          POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
          POSTGRES_DB: ${POSTGRES_DB}
          POSTGRES_SHARED_BUFFERS: "128MB"
          POSTGRES_BGWRITER_LRU__MAXPAGES: "0"
          POSTGRES_WAL_LEVEL: "minimal"
          POSTGRES_FSYNC: "off"
          POSTGRES_SYNCHRONOUS_COMMIT: "off"
          POSTGRES_WAL_COMPRESSION: "on"
          POSTGRES_CHECKPOINT_TIMEOUT: "1d"
          POSTGRES_MAX_WAL_SIZE: "1GB"
          POSTGRES_MIN_WAL_SIZE: "80MB"
        volumes:
          - postgresql-data:/var/lib/postgresql/data
    
      zabbix-server:
        image: zabbix/zabbix-server-pgsql:latest
        container_name: zabbix-server
        restart: unless-stopped
        depends_on:
          - postgresql-server
        environment:
          DB_SERVER_HOST: postgresql-server
          POSTGRES_USER: ${POSTGRES_USER}
          POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
          POSTGRES_DB: ${POSTGRES_DB}
          ZBX_CACHESIZE: "128M"
          ZBX_HISTORYCACHESIZE: "64M"
          ZBX_HISTORYINDEXCACHESIZE: "16M"
          ZBX_TRENDCACHESIZE: "16M"
          ZBX_VALUECACHESIZE: "128M"
        ports:
          - "10051:10051"
        volumes:
          - zabbix-server-data:/var/lib/zabbix
          - zabbix-snmptraps-data:/var/lib/zabbix/snmptraps
          - zabbix-export-data:/var/lib/zabbix/export
    
      zabbix-web-nginx-pgsql:
        image: zabbix/zabbix-web-nginx-pgsql:latest
        container_name: zabbix-web
        restart: unless-stopped
        depends_on:
          - postgresql-server
          - zabbix-server
        environment:
          DB_SERVER_HOST: postgresql-server
          POSTGRES_USER: ${POSTGRES_USER}
          POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
          POSTGRES_DB: ${POSTGRES_DB}
          ZBX_SERVER_HOST: zabbix-server
          PHP_TZ: ${PHP_TZ}
        ports:
          - "${ZABBIX_FRONTEND_PORT}:8080"
        volumes:
          - zabbix-web-data:/usr/share/zabbix
    
      zabbix-agent2:
        hostname: zabbix-agent
        image: zabbix/zabbix-agent2:latest
        container_name: zabbix-agent2
        restart: unless-stopped
        depends_on:
          - zabbix-server
        environment:
          ZBX_HOSTNAME: "zabbix-server"
          ZBX_SERVER_HOST: zabbix-server
          ZBX_PASSIVE_ALLOW: "true"
          ZBX_ACTIVE_ALLOW: "true"
        volumes:
          - /:/rootfs:ro
          - /var/run:/var/run
          - /var/run/docker.sock:/var/run/docker.sock
          - zabbix-agent-plugins:/etc/zabbix/zabbix_agent2.d/plugins.d
        user: 0:0
    
    volumes:
      postgresql-data:
      zabbix-server-data:
      zabbix-agent-plugins:
      zabbix-snmptraps-data:
      zabbix-export-data:
      zabbix-web-data:
  • Answer selected by mlazzarotto at 22-07-2025, 14:22.
    mlazzarotto
    Junior Member
    • Feb 2022
    • 14

    Originally posted by Markku
    I don't usually run containers for Zabbix components, but what could be your own explanation, why is the old web version still running (according to your report) while you say that you have already deployed the new version?

    Markku
    I stopped the compose, deleted the docker volume of the web container, started the compose. Web started working again but there's a banner saying that the server is not running. I'll need to check what did break.

    EDIT: Fixed here https://www.zabbix.com/forum/zabbix-...806#post504806
    Last edited by mlazzarotto; 22-07-2025, 12:58.

    Comment

    • Markku
      Senior Member
      Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
      • Sep 2018
      • 1781

      #2
      The error message means that your web frontend is still at version 7.2.x.

      Do whatever you need to do to restart the web container at version 7.4.

      Markku

      Comment

      • mlazzarotto
        Junior Member
        • Feb 2022
        • 14

        #3
        Originally posted by Markku
        The error message means that your web frontend is still at version 7.2.x.

        Do whatever you need to do to restart the web container at version 7.4.

        Markku
        I redeployed the stack using the container tag 7.4-alpine-latest for the server and the web container, but the error is still there.

        Comment

        • Markku
          Senior Member
          Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
          • Sep 2018
          • 1781

          #4
          I don't usually run containers for Zabbix components, but what could be your own explanation, why is the old web version still running (according to your report) while you say that you have already deployed the new version?

          Markku

          Comment

          • mlazzarotto
            Junior Member
            • Feb 2022
            • 14

            #5
            Originally posted by Markku
            I don't usually run containers for Zabbix components, but what could be your own explanation, why is the old web version still running (according to your report) while you say that you have already deployed the new version?

            Markku
            I stopped the compose, deleted the docker volume of the web container, started the compose. Web started working again but there's a banner saying that the server is not running. I'll need to check what did break.

            EDIT: Fixed here https://www.zabbix.com/forum/zabbix-...806#post504806
            Last edited by mlazzarotto; 22-07-2025, 12:58.

            Comment

            Working...