Ad Widget

Collapse

Problem upgrading from 3.2.1 to 3.4.x Debian 9

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dwm
    Junior Member
    • Nov 2017
    • 3

    #1

    Problem upgrading from 3.2.1 to 3.4.x Debian 9

    Hello,
    I'm having a problem upgrading Zabbix server from 3.2.1 version to 3.4.1 on our Debian 9 Stretch i686 (which was upgraded from debian 8).

    I downloaded a deb package from here: http://repo.zabbix.com/zabbix/3.4/de...tretch_all.deb

    Then dpkg -i, and apt-get update / upgrade. I saw that it's installing the new version because there was few events in console like:

    Preparing to unpack .../2-zabbix-server-mysql_1%3a3.4.3-2+stretch_i386.deb ...
    Unpacking zabbix-server-mysql (1:3.4.3-2+stretch) over (1:3.2.8-1+jessie) ...
    Setting up zabbix-server-mysql (1:3.4.3-2+stretch) ...

    But the problem is, that when I log in to the webpanel I still get the 3.2.1 version, also on /var/tmp/zabbix_server.log there is:
    1146:20171102:130946.824 Starting Zabbix Server. Zabbix 3.2.1 (revision 62890).

    I have no clue why it doesn't upgraded properly. I've always downloaded a new deb package, then install it / sudo apt-get update/upgrade and it was working flawlessly.
  • kaspars.mednis
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2017
    • 349

    #2
    Tried to replicate your problem on fresh debian 9.2

    Code:
    root@debian:~# wget http://repo.zabbix.com/zabbix/3.4/debian/pool/main/z/zabbix-release/zabbix-release_3.4-1+stretch_all.deb
    zabbix-release_3.4-1+stretch 100%[=============================================>]   3.79K  --.-KB/s    in 0s
    Code:
    root@debian:~# dpkg -i zabbix-release_3.4-1+stretch_all.deb
    Get:1 http://repo.zabbix.com/zabbix/3.4/debian stretch/main i386 zabbix-server-mysql i386 1:3.4.3-2+stretch [2005 kB]
    Get:2 http://repo.zabbix.com/zabbix/3.4/debian stretch/main i386 zabbix-agent i386 1:3.4.3-2+stretch [375 kB]
    Get:3 http://repo.zabbix.com/zabbix/3.4/debian stretch/main i386 zabbix-frontend-php all 1:3.4.3-2+stretch [2199 kB]
    Code:
    Preparing to unpack .../zabbix-server-mysql_1%3a3.4.3-2+stretch_i386.deb ...
    Unpacking zabbix-server-mysql (1:3.4.3-2+stretch) over (1:3.2.9-2+stretch) ...
    Preparing to unpack .../zabbix-agent_1%3a3.4.3-2+stretch_i386.deb ...
    Unpacking zabbix-agent (1:3.4.3-2+stretch) over (1:3.2.9-2+stretch) ...
    Preparing to unpack .../zabbix-frontend-php_1%3a3.4.3-2+stretch_all.deb ...
    Unpacking zabbix-frontend-php (1:3.4.3-2+stretch) over (1:3.2.9-2+stretch) ...
    Setting up zabbix-server-mysql (1:3.4.3-2+stretch) ...
    Setting up zabbix-agent (1:3.4.3-2+stretch) ...
    Setting up zabbix-frontend-php (1:3.4.3-2+stretch) ...
    after that

    Code:
    root@debian:/etc/zabbix# zabbix_server -V
    zabbix_server (Zabbix) 3.4.3
    Everything worked as expected.
    I can't see a zabbix_frontend /agent upgrade in your log, maybe something went wrong with this ?
    Is the zabbix frontend on the same server ?

    Regards,
    Kaspars

    Comment

    • dwm
      Junior Member
      • Nov 2017
      • 3

      #3
      Yes, frontend is at the same server.

      Comment

      • dwm
        Junior Member
        • Nov 2017
        • 3

        #4
        So I`ve tried it again today.

        Code:
        root#dpkg -i zabbix-release_3.4-1+stretch_all.deb
        (Reading database ... 81513 files and directories currently installed.)
        Preparing to unpack zabbix-release_3.4-1+stretch_all.deb ...
        Unpacking zabbix-release (3.4-1+stretch) over (3.2-1+jessie) ...
        Setting up zabbix-release (3.4-1+stretch) ...
        Installing new version of config file /etc/apt/sources.list.d/zabbix.list ...
        
        # apt-get install zabbix-server-mysql zabbix-frontend-php
        Reading package lists... Done
        Building dependency tree
        Reading state information... Done
        The following additional packages will be installed:
          php-bcmath php7.0-bcmath
        The following NEW packages will be installed:
          php-bcmath php7.0-bcmath
        The following packages will be upgraded:
          zabbix-frontend-php zabbix-server-mysql
        2 upgraded, 2 newly installed, 0 to remove and 19 not upgraded.
        Need to get 3,403 kB of archives.
        After this operation, 4,466 kB disk space will be freed.
        Do you want to continue? [Y/n] Y
        Get:1 http://ftp.us.debian.org/debian stretch/main i386 php7.0-bcmath i386 7.0.19-1 [16.7 kB]
        Get:2 http://repo.zabbix.com/zabbix/3.4/debian stretch/main i386 zabbix-server-mysql i386 1:3.4.4-1+stretch [2,007 kB]
        Get:3 http://ftp.us.debian.org/debian stretch/main i386 php-bcmath all 1:7.0+49 [5,050 B]
        Get:4 http://repo.zabbix.com/zabbix/3.4/debian stretch/main i386 zabbix-frontend-php all 1:3.4.4-1+stretch [1,374 kB]
        Fetched 3,403 kB in 3s (1,053 kB/s)
        Reading changelogs... Done
        (Reading database ... 81513 files and directories currently installed.)
        Preparing to unpack .../zabbix-server-mysql_1%3a3.4.4-1+stretch_i386.deb ...
        Unpacking zabbix-server-mysql (1:3.4.4-1+stretch) over (1:3.2.8-1+jessie) ...
        Selecting previously unselected package php7.0-bcmath.
        Preparing to unpack .../php7.0-bcmath_7.0.19-1_i386.deb ...
        Unpacking php7.0-bcmath (7.0.19-1) ...
        Selecting previously unselected package php-bcmath.
        Preparing to unpack .../php-bcmath_1%3a7.0+49_all.deb ...
        Unpacking php-bcmath (1:7.0+49) ...
        Preparing to unpack .../zabbix-frontend-php_1%3a3.4.4-1+stretch_all.deb ...
        Unpacking zabbix-frontend-php (1:3.4.4-1+stretch) over (1:3.2.8-1+jessie) ...
        Setting up zabbix-server-mysql (1:3.4.4-1+stretch) ...
        insserv: warning: script 'zabbix-server' missing LSB tags and overrides
        Processing triggers for systemd (232-25+deb9u1) ...
        Setting up php7.0-bcmath (7.0.19-1) ...
        
        Creating config file /etc/php/7.0/mods-available/bcmath.ini with new version
        Processing triggers for man-db (2.7.6.1-2) ...
        Setting up php-bcmath (1:7.0+49) ...
        Setting up zabbix-frontend-php (1:3.4.4-1+stretch) ...
        But even after reboot it's still on 3.2.1
        Code:
        root# zabbix_server -V
        zabbix_server (Zabbix) 3.2.1
        Revision 62890 30 September 2016, compilation time: Oct 25 2016 09:11:47
        //EDIT: I've done few more tests and research.
        So... dunno why I have 2 versions installed on debian.

        root:/etc/init.d# /usr/sbin/zabbix_server -V
        zabbix_server (Zabbix) 3.2.9

        root:/etc/init.d# /usr/local/sbin/zabbix_server -V
        zabbix_server (Zabbix) 3.2.1

        I've edited /etc/rc.d/zabbix_server, and changed path to /usr/sbin/zabbix_server
        And now I see in the log (/var/log/zabbix/zabbix_server.log), that 3.2.9 version is starting... BUT on the webpanel there is still 3.2.1 version.

        EDIT2:
        I've changed startup path for zabbix to the new version located in: /usr/sbin/, the same was with the webpanel. Older version of webpanel was located in /var/www/, the new one is in /usr/share/zabbix.
        Now everything is working as it should.
        Last edited by dwm; 10-11-2017, 14:51. Reason: working now

        Comment

        Working...