The error may be caused by an es error, which can be determined by viewing the system log: elasticsearch exception: type=cluster_block_exception, reason=blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];
The reason for this error is that when the disk space is less than 85%, the default value is 85%, which means that Elasticsearch will not allocate fragments to nodes that use more than 85% of the disk. All the above errors will be reported.
The solution to this error:
Since the es container has already been mapped, there is no need to enter the container and execute the reset all index instructions outside.
curl -XPUT -H “Content-Type: application/json” http://127.0.0.1:9200/_all/_settings -d'{“index.blocks.read_only_allow_delete”: null}’