External Elasticsearch server is not available and control panel is inaccessible
Written By
Michael Warren Young
How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!
While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.
Legacy Article
You are viewing an article from our legacy "FastTrack"
publication program, made available for informational purposes. Articles
in this program were published without a requirement for independent
editing or verification and are provided"as is" without
guarantee.
Before using any information from this article, independently verify its
suitability for your situation and project.
Issue
- The external Elasticsearch server configured for Liferay DXP is no longer available
- Liferay cannot be set to use the embedded Elasticsearch server because the Control Panel is showing a blank page with “No Group exists with the key {companyId=0, groupKey=Guest}”
Environment
- Liferay DXP
- External Elasticsearch server
Resolution
-
To workaround this issue, you can use the Elasticsearch configuration file. This file should by default be:
- Elasticsearch 2.x (DXP 7.0)
- Elasticsearch 6.x (DXP 7.0, 7.1 or 7.2)
-
- Elasticsearch 7.x (DXP 7.2, 7.3 or 7.4)
-
-
You can switch to the Embedded Elasticsearch by changing this setting from REMOTE back to EMBEDDED:
operationMode="EMBEDDED"
-
If the file does not already exist, you can create it and set the operationMode configuration to EMBEDDED.
- Once these changes have been made, Liferay should switch back to the Embedded Elasticsearch server after being restarted.
Did this article resolve your issue ?