Ad Widget

Collapse

Upgrade from 4.4 to 5.0 Problem with apt sources

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mpmichael
    Junior Member
    • Mar 2019
    • 9

    #1

    Upgrade from 4.4 to 5.0 Problem with apt sources

    Hello,

    I tried a Zabbix Server upgrade from 4.4.10 to 5.0.2.
    I did :


    Code:
    dpkg --purge zabbix-release
    
    wget https://repo.zabbix.com/zabbix/5.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_5.0-1+$(lsb_release -sc)_all.deb
    dpkg -i zabbix-release_5.0-1+$(lsb_release -sc)_all.deb
    apt update
    apt install -y --only-upgrade zabbix-server-mysql zabbix-frontend-php
    apt-get install -y zabbix-apache-conf
    Then I got this Error:
    Code:
    The frontend does not match Zabbix database. Current database version (mandatory/optional): 5000000/5000000. Required mandatory version: 4040000. Contact your system administrator.
    • I tried to update only zabbix-frontend-php but doesen't work
    • I tried: apt purge zabbix-frontend-php and apt install zabbix-frontend-php -> no success
    Some tries later (i did several variations) I noticed - that the command
    Code:
    dpkg -l | grep zabbix
    returned

    Code:
    ii zabbix-agent 1:5.0.2-1+xenial amd64 Zabbix network monitoring solution - agent
    [COLOR=#e74c3c]ii zabbix-apache-conf 1:4.4.10-1+xenial all Zabbix network monitoring solution - apache configuration for front-end
    ii zabbix-frontend-php 1:4.4.10-1+xenial all Zabbix network monitoring solution - PHP front-end[/COLOR]
    ii zabbix-release 1:5.0-1+xenial all Zabbix official repository configuration
    ii zabbix-sender 1:5.0.2-1+xenial amd64 Zabbix network monitoring solution - sender
    ii zabbix-server-mysql 1:5.0.2-1+xenial amd64 Zabbix network monitoring solution - server (MySQL)
    My /etc/apt/sources.list.d/zabbix.list was:

    Code:
    deb http://repo.zabbix.com/zabbix/5.0/ubuntu xenial main
    deb-src http://repo.zabbix.com/zabbix/5.0/ubuntu xenial main
    I'm confused - could anyone help?
    Last edited by mpmichael; 27-07-2020, 17:22.
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    There is no zabbix-frontend-php package for Xenial.


    Zabbix 5.0 requires PHP 7.2 or later, so it can no longer run with the standard PHP version of Xenial. You should be able to get it working by setting up PHP 7.2 or later and using the package zabbix-frontend-php-deprecated.


    However, there is no package named zabbix-apache-conf, so I think that you need to create the configuration file yourself by referring to the configuration files for other versions.

    Comment

    • mpmichael
      Junior Member
      • Mar 2019
      • 9

      #3
      Hello,

      thank you very much - this is logical!
      I allready changed to PHP 7.4 - so this is solved.
      Let's see if i get it work...

      Comment

      Working...