Question
When using the Explore Content interface to browse the Digital Hive content, a message stating "Something went wrong" and a Try Again button is displayed How do I resolve this?
Answer
This issue is usually a result of Elasticsearch being unreachable. The first thing to verify is that both Elasticsearch services are active. If either of the services is offline, restart the Elasticsearch 5.5.1 (DigitalHive_9200) and Elasticsearch 5.5.1 (DigitalHive_9201) services.
If Digital Hive is configured for load balancing, where Digital Hive and Elasticsearch are installed on multiple servers, there may be a configuration issue with Elasticsearch. To help diagnose this issue, examine the <Digital Hive install>/app/node1/tomcat/logs/theia.date.log file for the presence of this error message:
ERROR [c.m.a.r.SearchController] - Error while getting ES indices
org.elasticsearch.client.ResponseException: GET http://server_name4:9201_all/_settings,_aliases?human: HTTP/1.1 503 Service Unavailable
{"error":{"root_cause":[{"type":"master_not_discovered_exception","reason":null}],"type":"master_not_discovered_exception","reason":null},"status":503}
Examine the <Digital Hive install>/Elasticsearch/logs/theia_es_1/theia-cluster.log (and theia_es_2) directory for the presence of this error message:
[server_name_9200] failed to send join request to master ... [127.0.0.1:9400] handshake failed. unexpected remote node ...
The key element to this message is that instead of the actual server IP address, the 127.0.0.1 (localhost) IP is being used.
To correct this misconfiguration, files on both the primary and secondary servers will have to be verified.
Primary Elasticsearch configuration changes
Edit the <Digital Hive install>/Elasticsearch/config1/elasticsearch.yml file so that these settings are consistent
- network.bind_host: "0.0.0.0"
- network.publish_host: "primary server name or IP address"
- discovery.zen.ping.unicast.hosts: primary server name or IP address:9400
- Save and close the file
Edit the <Digital Hive install>/Elasticsearch/config2/elasticsearch.yml file so that these settings are consistent
- network.bind_host: "0.0.0.0"
- network.publish_host: "primary server name or IP address"
- discovery.zen.ping.unicast.hosts: primary server name or IP address:9400
- Save and close the file
Restart the Elasticsearch 5.5.1 (DigitalHive_9201) service
Restart the Elasticsearch 5.5.1 (DigitalHive_9200) service, if it didn't start automatically after the previous step
Secondary Elasticsearch configuration changes
Restart the Elasticsearch 5.5.1 (DigitalHive_9201) service
Restart the Elasticsearch 5.5.1 (DigitalHive_9200) service, if it didn't start automatically after the previous step
Open a new browser tab, or log out the current Digital Hive session, and log into Digital Hive. The issue should now be resolved and content should be visible through the Explore Content interface.