Elasticsearch issues after Adobe Commerce cloud infrastructure 2.3.1+ upgrade
This article discusses a fix for problems during deployment after upgrading to Adobe Commerce on cloud infrastructure versions 2.3.1+, if you are on Elasticsearch versions 2.x and 5.x.
Affected Products and Versions:
- Adobe Commerce on cloud infrastructure 2.3.1+
- Elasticsearch 2.x and 5.x
Cause
Merchants that have upgraded to Adobe Commerce on cloud infrastructure (versions 2.3.1 and onwards) and are on a version of Elasticsearch prior to 6.x can experience errors when deploying. This is because Elasticsearch versions 2.x and 5.x are End of Life and are no longer supported in Adobe Commerce. The Elasticsearch client has to be up to date, or running a deployment risks triggering an error. To learn more, refer to Change the Elasticsearch client in our developer documentation.
Issue
When deploying you see an error message similar to the following, indicating that your Elasticsearch version is not compatible: Elasticsearch service version 5.2.2 on infrastructure layer is not compatible with current version of elasticsearch/elasticsearch module (6.7.0.0), used by your Magento application. You can fix this issue by upgrading the Elasticsearch service on your Magento Cloud infrastructure to version 6.x. Other symptoms of this issue may be missing images and problems with filters in your environment.
Solution
To solve this issue, the Elasticsearch client module and Elasticsearch service need to be on the latest recommended versions:
- Follow the instructions to change the Elasticsearch module in our developer documentation so you have the latest recommended version of the Elasticsearch client module.
- Submit a support ticket and request an Elasticsearch service update to 6.x on staging and production. Please note that an upgrade to the Elasticsearch service may take some time to complete.
Related reading
- Adobe Commerce 2.3 technology stack requirements in our developer documentation.
- Set up Elasticsearch service in our developer documentation.
- Install and configure Elasticsearch in our developer documentation.
- Ensure Elasticsearch is installed properly in our support knowledge base.