Ad Widget

Collapse

database upgrade failed (3.4 -> 4.0)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mmorgan
    Junior Member
    • Sep 2017
    • 26

    #1

    database upgrade failed (3.4 -> 4.0)

    I'm trying to get a 3.4 server upgraded to 4.0. However, the database upgrade is failing with the following error: [Z3005] query failed: [1060] Duplicate column name 'name' [alter table `events` add `name` varchar(2048) default '' not null]. I tried deleting the column 'name' from the 'events' table and restarting zabbix server. Unfortunately, I got the same error. Does anyone know to get around this problem? Thanks.
  • Mike2K
    Member
    • Oct 2018
    • 62

    #2
    I had this error as well...
    • Delete the column
    • Restart the upgrade
    • Start zabbix server
    Does that work ?

    Comment

    • mmorgan
      Junior Member
      • Sep 2017
      • 26

      #3
      That worked for you? I've tried it three times without success. I'll give it one more try.

      Comment

      • Mike2K
        Member
        • Oct 2018
        • 62

        #4
        What's the output of your zabbix server log ?

        Comment

        • mmorgan
          Junior Member
          • Sep 2017
          • 26

          #5
          Ok. It appears to be working now. The mistake I made was that I was restarting the zabbix-server after making the database changes instead of completely stopping the service before making the changes. So, the steps to fix the problem were:

          1. Stop the zabbix-server service (systemctl stop zabbix-server)
          2. Log into MariaDB or MySQL and drop the column (alter table events drop column name
          3. Restart the zabbix-server service (systemctl start zabbix-server)

          Thank you for your help.

          Comment

          Working...