Ad Widget

Collapse

Problem with import templates (hang on)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MarkoJ13
    Junior Member
    • Mar 2023
    • 1

    #1

    Problem with import templates (hang on)

    Hello,

    Currently I'm migrating hosts and templates from 3 old Zabbix to the Zabbix 6.0.14 version. Others are 5 and 4 version of Zabbix. Problem happens with two templates which I try to import to new one it just hangs, pop up windows get gray and goes to loop. Both of problematic files are "big" ones (211 and 265 KB ). Other templates was mostly not bigger then 100 KB and they upload fine without any problem which would come with compatibility issues.

    I do not have a currently rights to log in on Zabbix server but colleague which have gave me errors which he saw on log files:

    Home ($hostid) must be of type string, null given, called in /usr/share/zabbix/include/classes/import/importers/CTemplateDashboardImporter.php on line 178 and defined in /usr/share/zabbix/include/classes/import/CImportReferencer.php:404
    Stack trace:
    #0 /usr/share/zabbix/include/classes/import/importers/CTemplateDashboardImporter.php(178): CImportReferencer->findGraphidByName()
    Home /usr/share/zabbix/include/classes/import/importers/CTemplateDashboardImporter.php(47): CTemplateDashboardImporter->resolveDashboardWidgetReferences()
    Forum /usr/share/zabbix/include/classes/import/CConfigurationImport.php(1937): CTemplateDashboardImporter->import()
    #3 /usr/share/zabbix/include/classes/import/CConfigurationImport.php(157): CConfigurationImport->processTemplateDashboards()
    #4 /usr/share/zabbix/include/classes/api/services/CConfiguration.php(289): CConfigurationImport->import()
    #5 /usr/share/zabbix/include/classes/" while reading response header from upstream, client: 10.10.1.98, server: xxxxxxx, request: "POST /zabbix.php?action=popup.import&output=ajax HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/zabbix.sock:", host: "xxxxxx", referrer

    ​Only solution which I found is that to increase to:
    set memory_limit = 1G

    Is there any one other solution for importing this two templates? To write this two templates is kind of hell...
Working...