Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-17045

Error while delete host

XMLWordPrintable

      I removed from host all items, triggers, graphs and so on.

      But when i try to delete this host I get this error in Web UI:

      Cannot delete host
      - Error in query [DELETE FROM hosts WHERE hostid='10417'] [Cannot delete or update a parent row: a foreign key constraint fails (`zabbix`.`items`, CONSTRAINT `c_items_4` FOREIGN KEY (`interfaceid`) REFERENCES `interface` (`interfaceid`))]
      - SQL statement execution has failed "DELETE FROM hosts WHERE hostid='10417'" [hosts.php:823 → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → CHost->delete() → DB::delete() → DB::exception() in include/classes/db/DB.php:847]

      Debug information in file debug_output.txt

      Expected:
      Succesfully delete the host.

            zabbix.support Zabbix Support Team
            alex_spq Alex Alexandrov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: