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

Error appears removing a template

XMLWordPrintable

    • Team C
    • Sprint 90 (Jul 2022), Sprint 91 (Aug 2022)
    • 0.25

      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

        1. Selection_092.png
          Selection_092.png
          35 kB
        2. Selection_091.png
          Selection_091.png
          56 kB
        3. Screenshot 2022-06-16 at 15.33.21.png
          Screenshot 2022-06-16 at 15.33.21.png
          530 kB
        4. screenshot-1.png
          screenshot-1.png
          35 kB

            vmaksimovs Vladimirs Maksimovs
            smaklakovs Sergejs Maklakovs
            Team C
            Votes:
            1 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: