Ad Widget

Collapse

Docker upgrade from 4.0 to 5.4

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • osadmin
    Junior Member
    • Feb 2018
    • 3

    #1

    Docker upgrade from 4.0 to 5.4

    Dear Colleagues,

    I'm running dockbix docker (Zabbix 4.0.19) -https://github.com/monitoringartist/dockbix-xxl

    Want to upgrade to official docker (5.4) to have up to date and easy updates because dockbix-xxl is not maintained longer.

    Can you suggest how to do so ? Not sure if I just connect 4.0.19 DB to newly created 5.4 docker it would work.
    Any config export/import solution/script that we might use in this case?
  • osadmin
    Junior Member
    • Feb 2018
    • 3

    #2
    I was wondering if anybody faced same task.
    Any way to execute DB upgrade script or some export/import configuration ?

    Comment

    • gofree
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2017
      • 400

      #3
      DB schema is updated as the upgraded zabbix server connects to the old DB - so in theory all you need to do is configure new environment ( based on official docker images ) to old DB and it should work ( assuming that the DB is not customized by dockix-xxl ). In any case case read documentation - there have been many changes between 4.0 and 5.4.

      Comment

      • osadmin
        Junior Member
        • Feb 2018
        • 3

        #4
        cool
        thank you !

        just tried this way - had to drop set of existing tables because DB upgrade failed:
        -------
        query failed: [1050] Table 'X' already exists
        ...
        database upgrade failed
        -------

        Here are they:
        drop table lld_macro_path;
        drop table host_tag;
        drop table item_rtdat;
        drop table item_rtdata;
        drop table config_autoreg_tls;
        drop table media_type_param;
        drop table media_type_message;
        drop table module;
        drop table role_rule;
        drop table module;
        drop table task_data;
        drop table task_result;
        drop table interface_snmp;
        drop table lld_override_condition;
        drop table lld_override_opdiscover;
        drop table lld_override_ophistory;
        drop table lld_override_opinventory;
        drop table lld_override_opperiod;
        drop table lld_override_opseverity;
        drop table lld_override_opstatus;
        drop table lld_override_optag;
        drop table lld_override_optemplate;
        drop table lld_override_optrends;
        drop table lld_override_operation;
        drop table lld_override;
        drop table trigger_queue;
        drop table item_parameter;
        drop table role;

        Not sure if that expected but after all it started to work !

        Comment

        Working...