Runtime error appears when ElasticSearch is turned off

XMLWordPrintable

    • Type: Problem report
    • Resolution: Fixed
    • Priority: Minor
    • None
    • Affects Version/s: 7.0.23rc1, 7.4.7rc1, 8.0.0alpha2
    • Component/s: Frontend (F)
    • None

      Precondition:
      Setup ElasticSearch

      Steps to reproduce:

      • Start ElasticSearch
      • Go to "Global dashboard" or "Latest data" (no errors)
      • Turn off ElasticSearch
      • Observe frontend error

      Result: Runtime error appears =>

      file_get_contents(http://localhost:9200/uint*/_search): Failed to open stream: Connection refused [zabbix.php:17 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerLatestView->doAction() → CControllerLatest->extendData() → CHistoryManager->getLastValues() → CHistoryManager->getLastValuesFromElasticsearch() → CElasticsearchHelper::query() → CElasticsearchHelper::request() → file_get_contents() → CConfigFile->{closure:/home/zabbix/workspace/7.0/ui/conf/zabbix.conf.php:85}() in conf/zabbix.conf.php:91]
      Elasticsearch error: failed to parse JSON.
      file_get_contents(http://localhost:9200/dbl*/_search): Failed to open stream: Connection refused [zabbix.php:17 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerLatestView->doAction() → CControllerLatest->extendData() → CHistoryManager->getLastValues() → CHistoryManager->getLastValuesFromElasticsearch() → CElasticsearchHelper::query() → CElasticsearchHelper::request() → file_get_contents() → CConfigFile->{closure:/home/zabbix/workspace/7.0/ui/conf/zabbix.conf.php:85}() in conf/zabbix.conf.php:91]
      Elasticsearch error: failed to parse JSON.
      file_get_contents(http://localhost:9200/str*/_search): Failed to open stream: Connection refused [zabbix.php:17 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerLatestView->doAction() → CControllerLatest->extendData() → CHistoryManager->getLastValues() → CHistoryManager->getLastValuesFromElasticsearch() → CElasticsearchHelper::query() → CElasticsearchHelper::request() → file_get_contents() → CConfigFile->{closure:/home/zabbix/workspace/7.0/ui/conf/zabbix.conf.php:85}() in conf/zabbix.conf.php:91]
      Elasticsearch error: failed to parse JSON.
      file_get_contents(http://localhost:9200/text*/_search): Failed to open stream: Connection refused [zabbix.php:17 → require_once() → ZBase->run() → ZBase->processRequest() → CController->run() → CControllerLatestView->doAction() → CControllerLatest->extendData() → CHistoryManager->getLastValues() → CHistoryManager->getLastValuesFromElasticsearch() → CElasticsearchHelper::query() → CElasticsearchHelper::request() → file_get_contents() → CConfigFile->{closure:/home/zabbix/workspace/7.0/ui/conf/zabbix.conf.php:85}() in conf/zabbix.conf.php:91]
      Elasticsearch error: failed to parse JSON.
      



      Expected: Proper error handling.

            Assignee:
            Zabbix Development Team
            Reporter:
            Kirils Seve
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: