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

Error appears removing a template

    XMLWordPrintable

Details

    • Problem report
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • 5.4.4rc1, 6.0.0alpha1
    • None
    • Frontend (F)

    Description

      Steps to reproduce:

      1. Create new database
      2. Turn on agent and server.
      3. Wait until discovery rule "Network interface discovery" discovered.
      4. Remove template - "Linux network interface by Zabbix agent".

      Result:

      pg_query(): Query failed: ERROR:  update or delete on table "valuemap" violates foreign key constraint "c_items_3" on table "items"
      DETAIL:  Key (valuemapid)=(63) is still referenced from table "items". [templates.php:467 -> CApiWrapper->__call() -> CFrontendApiWrapper->callMethod() -> CApiWrapper->callMethod() -> CFrontendApiWrapper->callClientMethod() -> CLocalApiClient->callMethod() -> CTemplate->delete() -> DB::delete() -> DBexecute() -> pg_query() -> CConfigFile->{closure}() in include/db.inc.php:349] 

      runtime error. Can't remove template.
      Expected:
      template removed

      Attachments

        Activity

          People

            zabbix.dev Zabbix Development Team
            smaklakovs Sergejs Maklakovs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: