"Unable to create directory" error leads Elasticsearch pod to a "CrashLoopBackOff" status

Solution Verified - Updated -

Issue

  • Elasticsearch is unable to get into a healthy state as the following errors stream in the container logs:

    ERROR Unable to create file /elasticsearch/persistent/logging-es/logs/logging-es_index_search_slowlog.log java.io.IOException: Could not create directory /elasticsearch/persistent/logging-es/logs
    

Environment

  • Red Hat OpenShift Container Platform (OCP) 3.11

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content