Hi all. I am attempting to upgrade from 6.4.12 to 7.4.3 (yes, I realize this was an ambitious thing to attempt).
The relevant line is 15348:20251003:120731.611 [Z3005] query failed: [1360] Trigger does not exist [drop trigger items_name_upper_insert], but I included the overall output for the sake of completeness - no other errors are thrown.
Does anyone know how I can create this trigger? I found a very old copy of it but it's from 5.x - I tried to run it anyway, on the theory that the database upgrade will drop the trigger regardless, but it fails:
I'm not terribly comfortable trying to figure this out on my own and potentially messing up the database. log_bin_trust_function_creators is enabled and the database user account has full grants on the entire Zabbix database so I'm assuming this may just be a consequence of trying to jump too many versions at once. I do have backups so if there's no solution I will roll it all back and try to upgrade to 7.0 instead and then go from there.
Code:
15348:20251003:120731.571 Starting Zabbix Server. Zabbix 7.4.3 (revision 9c308d6f49c). 15348:20251003:120731.571 ****** Enabled features ****** 15348:20251003:120731.571 SNMP monitoring: YES 15348:20251003:120731.571 IPMI monitoring: YES 15348:20251003:120731.571 Web monitoring: YES 15348:20251003:120731.571 VMware monitoring: YES 15348:20251003:120731.571 SMTP authentication: YES 15348:20251003:120731.571 ODBC: YES 15348:20251003:120731.571 SSH support: YES 15348:20251003:120731.571 IPv6 support: YES 15348:20251003:120731.571 TLS support: YES 15348:20251003:120731.571 ****************************** 15348:20251003:120731.571 using configuration file: /etc/zabbix/zabbix_server.conf 15348:20251003:120731.606 current database version (mandatory/optional): 06050154/06050154 15348:20251003:120731.606 required mandatory version: 07040000 15348:20251003:120731.606 mandatory patches were found 15348:20251003:120731.609 starting automatic database upgrade 15348:20251003:120731.611 [Z3005] query failed: [1360] Trigger does not exist [drop trigger items_name_upper_insert] 15348:20251003:120731.611 database upgrade failed on patch 06050155, exiting in 10 seconds
Does anyone know how I can create this trigger? I found a very old copy of it but it's from 5.x - I tried to run it anyway, on the theory that the database upgrade will drop the trigger regardless, but it fails:
Code:
mysql> CREATE TRIGGER items_name_upper_insert BEFORE INSERT ON items FOR EACH ROW SET NEW.name_upper=UPPER(NEW.name); ERROR 1054 (42S22): Unknown column 'name_upper' in 'NEW'
Comment