Ad Widget

Collapse

Upgrade Zabbix-Server from 3.2 to 4.4 Troubles

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vladvvtesla
    Junior Member
    • Jan 2019
    • 9

    #1

    Upgrade Zabbix-Server from 3.2 to 4.4 Troubles

    Hi!

    I try to upgrade Zabbix-Server from 3.2 to 4.4 on Ubuntu 18.04 Server with PostgreSQL 12 DB

    I try to do this according to the guideline on the Zabbix documentation
    https://www.zabbix.com/documentation.../debian_ubuntu

    Now, when I run
    # service zabbix-server start
    # service zabbix-server status
    """
    zabbix-server.service - LSB: Start zabbix-server daemon
    Loaded: loaded (/etc/init.d/zabbix-server; generated)
    Active: active (exited) since Sun 2020-02-16 10:53:07 UTC; 16min ago
    Docs: man:systemd-sysv-generator(8)
    Process: 973 ExecStart=/etc/init.d/zabbix-server start (code=exited, status=0/SUCCES
    """

    There is no pid-file in /var/run/zabbix/
    The server does not listen to ListenPort (# netstat -naptu | grep LISTEN)
    The log-file /var/log/zabbix/zabbix_server.log is empty


    Where can I see the logs?
    Thank you!
    Last edited by vladvvtesla; 16-02-2020, 13:44.
  • vladvvtesla
    Junior Member
    • Jan 2019
    • 9

    #2
    I noticed, after upgrading to Zabbix4.4 the systemd zabbix-scripts are destroyed

    $ ls -la /etc/systemd/system/multi-user.target.wants/
    zabbix-server.service -> /lib/systemd/system/zabbix-server.service
    $ less /lib/systemd/system/zabbix-server.service
    /lib/systemd/system/zabbix-server.service: No such file or directory

    Comment

    • vladvvtesla
      Junior Member
      • Jan 2019
      • 9

      #3
      I restored /lib/systemd/system/zabbix-server.service simislar to /lib/systemd/system/zabbix-agent.service
      with row "ExecStart=/usr/sbin/zabbix_server -c $CONFFILE"

      However, now I can see there is no file /usr/sbin/zabbix_server ...

      Comment

      • vladvvtesla
        Junior Member
        • Jan 2019
        • 9

        #4
        How could I lose zabbix files during the updating process?

        Should I install new Zabbix4.4 server and restore my Zabbix3.2 database?
        Last edited by vladvvtesla; 23-03-2020, 17:41.

        Comment

        • tim.mooney
          Senior Member
          • Dec 2012
          • 1427

          #5
          I can't say for certain, but I don't think you have to restore your database. If the Zabbix (package) upgrade didn't actually install zabbix_serverd, then I think so far nothing has been done to your database. It's probably still exactly the way it was when you shut down zabbix_serverd before the upgrade.

          First, the link you gave for the upgrade procedure you followed was from Zabbix 3.2 to Zabbix 4.0, but you said you're upgrading to Zabbix 4.4. Did you actually follow the upgrade steps for 4.4? Did you read all the release notes for 4.0, 4.2, and 4.4, as recommended in that document?

          I don't know what happened to all the Zabbix components that you seem to be missing, but I'm guessing it was some error in the upgrade process. However, that shouldn't be hard to recover from, especially because I think your database is still exactly where it was when you shut down your zabbix 3.2 server before the upgrade.

          I use mainly Red Hat systems and derivatives, so I don't know "dpkg" or the Ubuntu/Debian package management system as well as I know RPM. What I think you want to do is remove any
          partial/corrupt zabbix packages, so that you can re-install them. If there's a Debian/Ubuntu method to reinstall and fix a set of corrupt packages, that's the procedure you want to apply.

          Once you have fixed versions of the Zabbix packages installed, you'll need to put your old zabbix_serverd.conf and zabbix_agentd.conf in place, as well as any conf.d/ config files you may have had. Keep in mind that because of the upgrade from 3.2 to 4.4, you may also need to make changes to your zabbix_serverd.conf, to remove deprecated parameters or add new config. That should be convered in the release notes for upgrading to 4.0, 4.2, and 4.4.

          Once you have fixed packages installed and you have your (possibly updated) zabbix_server.conf back in place, then try start zabbix-server. If, as I suspect, this is the first actual startup since the upgrade, it will log to its log file startup messages and then messages about upgrading the database.

          The first step is to make sure you've got full, non-corrupt packages installed. Getting that fixed should allow you to proceed.

          Comment


          • vladvvtesla
            vladvvtesla commented
            Editing a comment
            Thank you for your detailed answer!

            I restored my old Zabbix-server from backups. And now I'm installing and configuring new zabbix-server 4.4.1 on another virtual machine. I have fiew zabbix-proxies and several hosts. It'll be more difficult, however, it'll work.
            Last edited by vladvvtesla; 23-03-2020, 17:42.
        Working...