Ad Widget

Collapse

Database upgrade failure Zabbix 3.0 to 5.0

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rthonpm
    Member
    • Jan 2016
    • 41

    #1

    Database upgrade failure Zabbix 3.0 to 5.0

    I tried the upgrade of our Zabbix server from 3.0 to 5.0 yesterday and all of the steps went smoothly until time for the database upgrade. Zabbix log shows the following:

    20736:20200513:094951.178 current database version (mandatory/optional): 04050003/04050003
    20736:20200513:094951.178 required mandatory version: 05000000
    20736:20200513:094951.178 starting automatic database upgrade
    20736:20200513:094951.179 [Z3005] query failed: [1071] Specified key was too long; max key length is 767 bytes [create index items_1 on items (hostid,key_(1021))]
    20736:20200513:094951.179 database upgrade failed

    There's a lot online regarding this error, but there's nothing I've tried so far that seems to work.

    Server info:

    CentOS 7
    MySQL 5.6.48



  • shreyash
    Junior Member
    • May 2020
    • 1

    #2
    hey rthonpm i am getting the same error. Can you share me the details if you have solved it ?

    Comment

    • kro
      Junior Member
      • Nov 2019
      • 6

      #3
      same error here.

      have you found any solution ?

      Comment

      • kro
        Junior Member
        • Nov 2019
        • 6

        #4
        plus, since I am using docker I was thinking about rolling back to my previous version but I can't find any docker image relative to the db version 04050003... (I was using :latest tag and that's all I can say)
        4.4 seems to be 04040000 and there's no 4.5.

        Comment

        • kro
          Junior Member
          • Nov 2019
          • 6

          #5
          problem solved on my side

          Comment

          • rthonpm
            Member
            • Jan 2016
            • 41

            #6
            For me, the resolution was to upgrade the MySQL version from 5.6 to 5.8. After that, the database was able to upgrade.

            Comment


            • Rudlafik
              Rudlafik commented
              Editing a comment
              Hi, for me help upgrade to 5.7.30
          Working...