Hello everyone,
I recently did an upgrade of a Zabbix server running the Zabbix 4.0 LTS release to the latest version of Zabbix 5 (5.0.22).
The upgrade was a bit of a tedious process as there was a few issues in the database preventing the upgrade from successfully being upgraded to the new version. These issues were resolved by the help of database queries and the server was started successfully on the new version.
Unfortunately one issue remains after the upgrade and that is that it is no longer possible to create "Web Checks". The creation of any web checks fails with an error message related to key constraints in the database:
I have searched around for a bit and cannot find any relevant information in regards to this problem in the bug tracker or other sources.
Does anyone have any suggestions in regards how to resolve this problem?
Thanks in advance!
/Fredrik
I recently did an upgrade of a Zabbix server running the Zabbix 4.0 LTS release to the latest version of Zabbix 5 (5.0.22).
The upgrade was a bit of a tedious process as there was a few issues in the database preventing the upgrade from successfully being upgraded to the new version. These issues were resolved by the help of database queries and the server was started successfully on the new version.
Unfortunately one issue remains after the upgrade and that is that it is no longer possible to create "Web Checks". The creation of any web checks fails with an error message related to key constraints in the database:
Code:
Error in query [INSERT INTO httptest (hostid,name,authentication,applicationid,delay,retries,status,agent,http_proxy,http_user,http_password,verify_peer,verify_host,ssl_cert_file,ssl_key_file,ssl_key_password,templateid,httptestid) VALUES ('11001','HTTPD Check','0',NULL,'1m','5','0','Zabbix','','','','0','0','','','','1','2'),('11002','HTTPD Check','0',NULL,'1m','5','0','Zabbix','','','','0','0','','','','1','3'),('11003','HTTPD Check','0',NULL,'1m','5','0','Zabbix','','','','0','0','','','','1','4')] [Cannot add or update a child row: a foreign key constraint fails (`zabbix`.`httptest`, CONSTRAINT `c_httptest_2` FOREIGN KEY (`hostid`) REFERENCES `hosts` (`hostid`) ON DELETE CASCADE)] SQL statement execution has failed "INSERT INTO httptest (hostid,name,authentication,applicationid,delay,retries,status,agent,http_proxy,http_user,http_password,verify_peer,verify_host,ssl_cert_file,ssl_key_file,ssl_key_password,templateid,httptestid) VALUES ('11001','HTTPD Check','0',NULL,'1m','5','0','Zabbix','','','','0','0','','','','1','2'),('11002','HTTPD Check','0',NULL,'1m','5','0','Zabbix','','','','0','0','','','','1','3'),('11003','HTTPD Check','0',NULL,'1m','5','0','Zabbix','','','','0','0','','','','1','4')".
Does anyone have any suggestions in regards how to resolve this problem?
Thanks in advance!
/Fredrik
Comment