Hi,
I'm trying to upgrade my Zabbix install and keep running into this:
I run Postgresql 9.3 on a standalone DB server and trying to upgrade from ZBX version 2.2 to 3.2.
What can I do to resolve this issue?
Checking the table lists both tables exist. I'm not sure what the issue actually is as "triggerid" exists in both tables mentioned in the psql command.
Would anyone have any suggestions or solution?
Many Thanks!
I'm trying to upgrade my Zabbix install and keep running into this:
Code:
83129:20161114:184811.930 using configuration file: /usr/local/etc/zabbix32/zabbix_server.conf 83129:20161114:184811.992 current database version (mandatory/optional): 02030006/02030006 83129:20161114:184811.992 required mandatory version: 03020000 83129:20161114:184811.992 starting automatic database upgrade 83129:20161114:184811.999 [Z3005] query failed: [0] PGRES_FATAL_ERROR:ERROR: there is no unique constraint matching given keys for referenced table "triggers" [alter table trigger_discovery add constraint c_trigger_discovery_1 foreign key (triggerid) references triggers (triggerid) on delete cascade] 83129:20161114:184811.999 database upgrade failed
What can I do to resolve this issue?
Checking the table lists both tables exist. I'm not sure what the issue actually is as "triggerid" exists in both tables mentioned in the psql command.
Would anyone have any suggestions or solution?
Many Thanks!
Comment