Ad Widget

Collapse

Upgrade from 1.6.6 to 1.8.2 mysql-error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • joggl62
    Junior Member
    • Jan 2008
    • 6

    #1

    Upgrade from 1.6.6 to 1.8.2 mysql-error

    Hello,

    i have a problem by updating zabbix from 1.6.6 to 1.8.2

    By starting the Update from mysql with " mysql zabbix -uroot -pxxx < patch.sql"

    i got the following error:

    ERROR 1060 (42S21) at line 12: Duplicate column name 'ip'

    Can anywhere help me ?

    Thank you ;O)
    joggl62
    Last edited by joggl62; 16-09-2010, 15:49.
  • joggl62
    Junior Member
    • Jan 2008
    • 6

    #2
    force-Made

    When i run the force-mode (mysql zabbix -uroot -pxxx < patch.sql -f) i get the following errors:

    ERROR 1060 (42S21) at line 12: Duplicate column name 'ip'
    ERROR 1060 (42S21) at line 13: Duplicate column name 'resourceid'
    ERROR 1060 (42S21) at line 14: Duplicate column name 'resourcename'
    ERROR 1050 (42S01) at line 15: Table 'autoreg_host' already exists
    ERROR 1061 (42000) at line 21: Duplicate key name 'autoreg_host_1'
    ERROR 1060 (42S21) at line 22: Duplicate column name 'dropdown_first_entry'
    ERROR 1060 (42S21) at line 23: Duplicate column name 'dropdown_first_remember'
    ERROR 1060 (42S21) at line 24: Duplicate column name 'discovery_groupid'
    ERROR 1060 (42S21) at line 25: Duplicate column name 'max_in_table'
    ERROR 1060 (42S21) at line 26: Duplicate column name 'search_limit'
    ERROR 1060 (42S21) at line 27: Duplicate column name 'snmpv3_securityname'
    ERROR 1060 (42S21) at line 28: Duplicate column name 'snmpv3_securitylevel'
    ERROR 1060 (42S21) at line 29: Duplicate column name 'snmpv3_authpassphrase'
    ERROR 1060 (42S21) at line 30: Duplicate column name 'snmpv3_privpassphrase'
    ERROR 1061 (42000) at line 32: Duplicate key name 'dchecks_1'
    ERROR 1060 (42S21) at line 33: Duplicate column name 'dcheckid'
    ERROR 1060 (42S21) at line 34: Duplicate column name 'ip'
    ERROR 1054 (42S22) at line 36: Unknown column 'dhosts.ip' in 'field list'
    ERROR 1091 (42000) at line 38: Can't DROP 'ip'; check that column/key exists
    ERROR 1061 (42000) at line 40: Duplicate key name 'dhosts_1'
    ERROR 1060 (42S21) at line 41: Duplicate column name 'unique_dcheckid'
    ERROR 1061 (42000) at line 44: Duplicate key name 'dservices_1'
    ERROR 1061 (42000) at line 45: Duplicate key name 'dservices_2'
    ERROR 1061 (42000) at line 46: Duplicate key name 'escalations_2'
    ERROR 1050 (42S01) at line 49: Table 'expressions' already exists
    ERROR 1061 (42000) at line 58: Duplicate key name 'expressions_1'
    ERROR 1050 (42S01) at line 59: Table 'globalmacro' already exists
    ERROR 1061 (42000) at line 65: Duplicate key name 'globalmacro_1'
    ERROR 1061 (42000) at line 68: Duplicate key name 'graphs_items_1'
    ERROR 1061 (42000) at line 69: Duplicate key name 'graphs_items_2'
    ERROR 1060 (42S21) at line 70: Duplicate column name 'ymin_type'
    ERROR 1060 (42S21) at line 71: Duplicate column name 'ymax_type'
    ERROR 1060 (42S21) at line 72: Duplicate column name 'ymin_itemid'
    ERROR 1060 (42S21) at line 73: Duplicate column name 'ymax_itemid'
    ERROR 1054 (42S22) at line 75: Unknown column 'yaxistype' in 'field list'
    ERROR 1054 (42S22) at line 76: Unknown column 'yaxistype' in 'field list'
    ERROR 1091 (42000) at line 78: Can't DROP 'yaxistype'; check that column/key exists
    ERROR 1050 (42S01) at line 79: Table 'graph_theme' already exists
    ERROR 1061 (42000) at line 98: Duplicate key name 'graph_theme_1'
    ERROR 1061 (42000) at line 99: Duplicate key name 'graph_theme_2'
    ERROR 1062 (23000) at line 101: Duplicate entry '1' for key 1
    ERROR 1062 (23000) at line 102: Duplicate entry '2' for key 1
    ERROR 1060 (42S21) at line 103: Duplicate column name 'internal'
    ERROR 1060 (42S21) at line 244: Duplicate column name 'logeventid'
    ERROR 1061 (42000) at line 246: Duplicate key name 'history_log_2'
    ERROR 1061 (42000) at line 247: Duplicate key name 'history_text_2'
    ERROR 1050 (42S01) at line 248: Table 'hostmacro' already exists
    ERROR 1061 (42000) at line 255: Duplicate key name 'hostmacro_1'
    ERROR 1091 (42000) at line 256: Can't DROP 'hosts_groups_groups_1'; check that column/key exists
    ERROR 1061 (42000) at line 257: Duplicate key name 'hosts_groups_1'
    ERROR 1061 (42000) at line 258: Duplicate key name 'hosts_groups_2'
    ERROR 1060 (42S21) at line 259: Duplicate column name 'maintenanceid'
    ERROR 1060 (42S21) at line 260: Duplicate column name 'maintenance_status'
    ERROR 1060 (42S21) at line 261: Duplicate column name 'maintenance_type'
    ERROR 1060 (42S21) at line 262: Duplicate column name 'maintenance_from'
    ERROR 1060 (42S21) at line 263: Duplicate column name 'ipmi_ip'
    ERROR 1060 (42S21) at line 264: Duplicate column name 'ipmi_errors_from'
    ERROR 1060 (42S21) at line 265: Duplicate column name 'snmp_errors_from'
    ERROR 1060 (42S21) at line 266: Duplicate column name 'ipmi_error'
    ERROR 1060 (42S21) at line 267: Duplicate column name 'snmp_error'
    ERROR 1060 (42S21) at line 268: Duplicate column name 'authentication'
    ERROR 1060 (42S21) at line 269: Duplicate column name 'http_user'
    ERROR 1060 (42S21) at line 270: Duplicate column name 'http_password'
    ERROR 1061 (42000) at line 272: Duplicate key name 'httptest_2'
    ERROR 1061 (42000) at line 273: Duplicate key name 'httptest_3'
    ERROR 1091 (42000) at line 274: Can't DROP 'nextcheck'; check that column/key exists
    ERROR 1060 (42S21) at line 275: Duplicate column name 'data_type'
    ERROR 1060 (42S21) at line 276: Duplicate column name 'authtype'
    ERROR 1060 (42S21) at line 277: Duplicate column name 'username'
    ERROR 1060 (42S21) at line 278: Duplicate column name 'password'
    ERROR 1060 (42S21) at line 279: Duplicate column name 'publickey'
    ERROR 1060 (42S21) at line 280: Duplicate column name 'privatekey'
    ERROR 1060 (42S21) at line 281: Duplicate column name 'mtime'
    ERROR 1050 (42S01) at line 282: Table 'maintenances_groups' already exists
    ERROR 1061 (42000) at line 288: Duplicate key name 'maintenances_groups_1'
    ERROR 1050 (42S01) at line 289: Table 'maintenances_hosts' already exists
    ERROR 1061 (42000) at line 295: Duplicate key name 'maintenances_hosts_1'
    ERROR 1050 (42S01) at line 296: Table 'maintenances' already exists
    ERROR 1061 (42000) at line 305: Duplicate key name 'maintenances_1'
    ERROR 1050 (42S01) at line 306: Table 'maintenances_windows' already exists
    ERROR 1061 (42000) at line 312: Duplicate key name 'maintenances_windows_1'
    ERROR 1050 (42S01) at line 323: Table 'opmediatypes' already exists
    ERROR 1061 (42000) at line 329: Duplicate key name 'opmediatypes_1'
    ERROR 1061 (42000) at line 330: Duplicate key name 'profiles_2'
    ERROR 1050 (42S01) at line 331: Table 'proxy_autoreg_host' already exists
    ERROR 1061 (42000) at line 337: Duplicate key name 'proxy_autoreg_host_1'
    ERROR 1060 (42S21) at line 341: Duplicate column name 'dcheckid'
    ERROR 1060 (42S21) at line 342: Duplicate column name 'logeventid'
    ERROR 1050 (42S01) at line 343: Table 'regexps' already exists
    ERROR 1061 (42000) at line 349: Duplicate key name 'regexps_1'
    ERROR 1061 (42000) at line 350: Duplicate key name 'rights_2'
    ERROR 1061 (42000) at line 351: Duplicate key name 'services_1'
    ERROR 1061 (42000) at line 352: Duplicate key name 'sessions_1'
    ERROR 1060 (42S21) at line 355: Duplicate column name 'iconid_maintenance'
    ERROR 1060 (42S21) at line 356: Duplicate column name 'label'
    ERROR 1060 (42S21) at line 356: Duplicate column name 'highlight'
    ERROR 1050 (42S01) at line 356: Table 'timeperiods' already exists
    ERROR 1050 (42S01) at line 368: Table 'user_history' already exists
    ERROR 1061 (42000) at line 383: Duplicate key name 'user_history_1'
    ERROR 1060 (42S21) at line 384: Duplicate column name 'rows_per_page'
    ERROR 1060 (42S21) at line 385: Duplicate column name 'api_access'
    ERROR 1060 (42S21) at line 386: Duplicate column name 'debug_mode'

    Whats the problem ?
    Have anyone an idea?

    Thanks joggl62

    Comment

    • zalex_ua
      Senior Member
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Oct 2009
      • 1286

      #3
      Originally posted by joggl62
      When i run the force-mode (mysql zabbix -uroot -pxxx < patch.sql -f) i get the following errors:

      ERROR 1060 (42S21) at line 12: Duplicate column name 'ip'
      ......
      ERROR 1060 (42S21) at line 386: Duplicate column name 'debug_mode'

      Whats the problem ?
      Have anyone an idea?
      The problem is that you have already applied this patch and apply it again. If you have failed to apply the patch completely without error the first time and you try to apply the patch again, such errors - this is quite logical. Update database to version 1.8 should be done strictly according to instructions. It is very important.
      I think that repeated attempts to apply the patch with just such errors should not harm the database, although I'm not sure.
      If it is a complete list of errors, then I think that the database has been updated completely.

      Comment

      • joggl62
        Junior Member
        • Jan 2008
        • 6

        #4
        Thanks zalex_ua

        That was the problem.
        I played the data base from the last dump and again implemented the upgrade (only 1 time). It has functioned without errors

        Thanks

        Comment

        Working...