Legacy Knowledge Base
Published Jun. 30, 2025

Upgrading from Elasticsearch 7.9.0 to 7.17.0, index status is YELLOW

Written By

Jordi Rodó

How To articles are not official guidelines or officially supporteddocumentation. They are community-contributed content and may not alwaysreflect the latest updates to Liferay DXP. We welcome your feedback toimprove How to articles!

While we make every effort to ensure this Knowledge Base is accurate, itmay not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with anyfeedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack"publication program, made available for informational purposes. Articlesin this program were published without a requirement for independentediting or verification and are provided "as is" withoutguarantee.

Before using any information from this article, independently verify itssuitability for your situation and project.
Note: please note that Liferay has renamed its Liferay Experience Could offerings to Liferay SaaS (formerly LXC) and Liferay PaaS (formerly LXC-SM).

Issue

  • Upgrading from Elasticsearch 7.9.0 to 7.17.0, index status is YELLOW
  • The UNASSIGNED shard can be seen with the following command
    $ curl search:9200/_cat/shards
    .ds-.logs-deprecation.elasticsearch-default-2022.10.13-000001 0 p STARTED 10.0.0.88 search-0
    .ds-.logs-deprecation.elasticsearch-default-2022.10.13-000001 0 r UNASSIGNED

Environment

  • Liferay PaaS (DXP 7.3)

solution

  • One replica shard is not allocated (UNASSIGNED) for the index for Elasticsearch, so the node itself has YELLOW status
  • Delete the concerned replica shard with the following command
    curl -XPUT search:9200/.ds-.logs-deprecation.elasticsearch-default-2022.10.13-000001/_settings -H 'Content-Type: application/json' -d'{ "number_of_replicas":0 }'

Additional Information

  • The following commands are useful for troubleshooting Elasticsearch
    curl http://search:9200/
    curl http://search:9200/_cat/nodes
    curl http://search:9200/_cat/shards
    curl http://search:9200/_cat/allocation
    curl http://search:9200/_cat/indices
    curl http://search:9200/_cluster/settings
    curl http://search:9200/_cluster/health
    curl http://search:9200/_cluster/stats
    curl http://search:9200/_cluster/allocation/explain
    curl http://search:9200/liferay-*/_settings

 

 

Did this article resolve your issue ?

Legacy Knowledge Base