Ad Widget

Collapse

Zabbix upgrade from 6 to 7 failing on patch 6050201

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jgroves
    Junior Member
    • Jun 2023
    • 3

    #1

    Zabbix upgrade from 6 to 7 failing on patch 6050201

    We are upgarding from Zabbix 6.0.39 to 7.0 and we are facing issues with patch 6050201

    Logs:

    Starting Zabbix Server. Zabbix 7.0.0 (revision 49955f1).
    Press Ctrl+C to exit.

    1:20250313:142516.859 Starting Zabbix Server. Zabbix 7.0.0 (revision 49955f1).
    1:20250313:142516.859 ****** Enabled features ******
    1:20250313:142516.859 SNMP monitoring: YES
    1:20250313:142516.859 IPMI monitoring: YES
    1:20250313:142516.859 Web monitoring: YES
    1:20250313:142516.859 VMware monitoring: YES
    1:20250313:142516.859 SMTP authentication: YES
    1:20250313:142516.859 ODBC: YES
    1:20250313:142516.859 SSH support: YES
    1:20250313:142516.860 IPv6 support: YES
    1:20250313:142516.860 TLS support: YES
    1:20250313:142516.860 ******************************
    1:20250313:142516.860 using configuration file: /etc/zabbix/zabbix_server.conf
    1:20250313:142516.984 current database version (mandatory/optional): 06050200/06050200
    1:20250313:142516.984 required mandatory version: 07000000
    1:20250313:142516.984 mandatory patches were found
    1:20250313:142516.987 starting automatic database upgrade
    1:20250313:142516.993 host or template [hostid=10014] is not assigned to any group, permissions not granted
    1:20250313:142517.642 [Z3005] query failed: [0] PGRES_FATAL_ERROR:ERROR: null value in column "groupid" of relation "hgset_group" violates not-null constraint
    DETAIL: Failing row contains (488, null).
    [insert into hgset_group (hgsetid,groupid) values ... (487,332),(488,null),(488,188)...;
    ]
    1:20250313:142517.644 database upgrade failed on patch 06050201, exiting in 10 seconds
    1:20250313:142527.644 Zabbix Server stopped. Zabbix 7.0.0 (revision 49955f1).
    I am looking through the database to see if I can find the issue ... but not sure why it is picking up 'null'

    When looking at: https://git.zabbix.com/projects/ZBX/...0.10#3069-3098
    I tested:
    Code:
    select hostid from hosts where flags<>2
    And every host has hostgroups ... can't work out where the issue may be :/​
Working...