Ad Widget

Collapse

Ubuntu 12.04 upgrade to 14.04 - Zabbix is gone

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • samhast
    Junior Member
    • Sep 2013
    • 8

    #1

    Ubuntu 12.04 upgrade to 14.04 - Zabbix is gone

    I have an Ubuntu 12.04 server with Zabbix installed.
    I did a release-upgrade to 14.04 and after that, zabbix was gone.

    What do I have to do. It's in a virtual environment, so I revert the state of my virtual machine, but I want to upgrade to 14.04
  • maruscya
    Senior Member
    Zabbix Certified Specialist
    • Jul 2007
    • 129

    #2
    Have you checked the Zabbix server logs ??

    Some informations about the zabbix version for example ??

    Comment

    • samhast
      Junior Member
      • Sep 2013
      • 8

      #3
      How can I check logs if Zabbix is gone?

      When I execute the upgrade from 12.04 to 14.04, Ubuntu shows all the packages that were deleted. Zabbix mysql server is one of them..

      But I can't proceed without pressing yes.. So How can I upgrade Ubuntu 12.04 to 14.04 without deleting zabbix?

      Comment

      • kloczek
        Senior Member
        • Jun 2006
        • 1771

        #4
        Originally posted by samhast
        How can I check logs if Zabbix is gone?

        When I execute the upgrade from 12.04 to 14.04, Ubuntu shows all the packages that were deleted. Zabbix mysql server is one of them..

        But I can't proceed without pressing yes.. So How can I upgrade Ubuntu 12.04 to 14.04 without deleting zabbix?
        What it means "Zabbix is gone"? Zabbix packages has been uninstalled during upgrade or zabbix server process is not working?
        http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
        https://kloczek.wordpress.com/
        zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
        My zabbix templates https://github.com/kloczek/zabbix-templates

        Comment

        • samhast
          Junior Member
          • Sep 2013
          • 8

          #5
          Zabbix packages are uninstalled during upgrade

          Comment

          • kloczek
            Senior Member
            • Jun 2006
            • 1771

            #6
            Originally posted by samhast
            Zabbix packages are uninstalled during upgrade
            Sorry to say this but this is not a zabbix problem
            Probably you forced upgrade with uninstall packages with broken dependencies which may mean that you are using some repo with zabbix packages not build on updated version of Ubuntu.
            http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
            https://kloczek.wordpress.com/
            zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
            My zabbix templates https://github.com/kloczek/zabbix-templates

            Comment

            • samhast
              Junior Member
              • Sep 2013
              • 8

              #7
              Problem is solved. Now running zabbix 2.4 on ubuntu 14.04

              I re-installed mysql and zabbix-mysql-server packages. Did some configuration and now everything is up and running again.

              Comment

              • troffasky
                Senior Member
                • Jul 2008
                • 567

                #8
                I've just done a release-upgrade from 12 to 14 and it appears that it wipes out /etc/zabbix/zabbix_server.conf as what I have now is a blank file with no database password in.

                Usually when upgrading packages on Debian it asks you if you want to keep your old config or overwrite it with a new one, not the case with Ubuntu release-upgrades apparently. Furthermore, it will leave a copy of either your original or the new file depending on your choice, giving you the ability to compare and integrate the changes. But now I have an /etc/zabbix that just contains the default out-of-the-box files from a zabbix-server-mysql install.

                It didn't update the database schema, either. Fantastic. And to think I keep telling my co-workers we should always be deploying debian-derived servers because the packages are so much better than on Centos!
                [Edit: so I wimped out and RTFM, looks like the zabbix service itself is supposed to patch the DB schema, so not required by the package]
                Last edited by troffasky; 12-03-2015, 23:55.

                Comment

                • troffasky
                  Senior Member
                  • Jul 2008
                  • 567

                  #9
                  OK, not quite as simple as I hoped!:

                  So, I like Zabbix. Sue me 🙂 But upgrading is a whole different ballgame. Zabbix on Ubuntu 12.04 is version 1.8.1 and Zabbix on Ubuntu 14.04 is version 2.2.2. And Zabbix only does an automatic database upgrade from version 2.0 onwards. So, basically, you are on your own and Google does not seem to help […]

                  Comment

                  • nick0909
                    Member
                    • Apr 2013
                    • 73

                    #10
                    Zabbix binary updating the schema is a new feature as of 2.4 I believe. It was still a manual process back on 1.8>2.0 and possibly 1.8>2.2. Unfortunately right now there is a bug in the 2.4 version supplied with Ubuntu 14.04 if you have innodb it fails to upgrade properly and the zabbix_server process stops. If you try to start the service it tries to upgrade the schema again, fails and stops. There are no provided upgrade scripts to do it manually because it isn't supposed to be needed in this version, so you are just stuck. Hopefully this gets fixed and rolling in to the ubuntu package soon, or they still provide upgrade scripts that we can use in an emergency.

                    Comment

                    • troffasky
                      Senior Member
                      • Jul 2008
                      • 567

                      #11
                      Spoiler alert: they didn't do it, you still have to patch it yourself manually :-)

                      Comment

                      Working...