-
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.
- is duplicated by
-
ZBX-27401 [Elasticsearch] Frontend PHP errors when History Provider is unreachable
-
- Confirmed
-