Ad Widget

Collapse

DB Upgrade to Zabbix 4.4.1 failure Error on rename of './zabbix/autoreg_host'

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cvee.it
    Member
    • Nov 2010
    • 45

    #1

    DB Upgrade to Zabbix 4.4.1 failure Error on rename of './zabbix/autoreg_host'

    Starting Zabbix Server. Zabbix 4.4.1 (revision 8870606e6a).
    26684:20191121:162701.843 ****** Enabled features ******
    26684:20191121:162701.843 SNMP monitoring: YES
    26684:20191121:162701.843 IPMI monitoring: YES
    26684:20191121:162701.843 Web monitoring: YES
    26684:20191121:162701.843 VMware monitoring: YES
    26684:20191121:162701.843 SMTP authentication: YES
    26684:20191121:162701.843 ODBC: YES
    26684:20191121:162701.843 SSH2 support: YES
    26684:20191121:162701.843 IPv6 support: YES
    26684:20191121:162701.843 TLS support: YES
    26684:20191121:162701.843 ******************************
    26684:20191121:162701.843 using configuration file: /etc/zabbix/zabbix_server.conf
    26684:20191121:162701.846 current database version (mandatory/optional): 04020000/04020000
    26684:20191121:162701.846 required mandatory version: 04040000
    26684:20191121:162701.846 starting automatic database upgrade
    26684:20191121:162701.857 [Z3005] query failed: [1025] Error on rename of './zabbix/autoreg_host' to './zabbix/#sql2-12b2-11718' (errno: -1) [alter table `autoreg_host` modify `host` varchar(128) default '' not null]
    26684:20191121:162701.857 database upgrade failed

    I was able to downgrade successfully at least.

    Running version:
    26928:20191121:162751.079 Starting Zabbix Server. Zabbix 4.2.8 (revision cb5d5b10f4).
    26928:20191121:162751.079 ****** Enabled features ******
    26928:20191121:162751.079 SNMP monitoring: YES
    26928:20191121:162751.080 IPMI monitoring: YES
    26928:20191121:162751.080 Web monitoring: YES
    26928:20191121:162751.080 VMware monitoring: YES
    26928:20191121:162751.080 SMTP authentication: YES
    26928:20191121:162751.080 Jabber notifications: NO
    26928:20191121:162751.080 Ez Texting notifications: YES
    26928:20191121:162751.080 ODBC: YES
    26928:20191121:162751.080 SSH2 support: YES
    26928:20191121:162751.080 IPv6 support: YES
    26928:20191121:162751.080 TLS support: YES
    26928:20191121:162751.080 ******************************
    26928:20191121:162751.080 using configuration file: /etc/zabbix/zabbix_server.conf
    26928:20191121:162751.084 current database version (mandatory/optional): 04020000/04020001
    26928:20191121:162751.084 required mandatory version: 04020000
  • dimir
    Zabbix developer
    • Apr 2011
    • 1080

    #2
    Are you missing some rights on a user that operates on Zabbix database?

    Comment

    • cvee.it
      Member
      • Nov 2010
      • 45

      #3
      the user in the config in my case is zabbix, and during db permission creates it was essentially:
      GRANT ALL on zabbix.* to zabbix@localhost identified by 'somepass';

      db = mysql


      Comment

      • cvee.it
        Member
        • Nov 2010
        • 45

        #4
        Hi
        FYI resolved.

        good ole selinux. oOOoooOOOO

        Comment

        Working...