Docker elasticsearch container : FileSystemException : Not a directory

I have the same issue as described in:

I'm getting the error
"java.nio.file.FileSystemException: /usr/share/elasticsearch/data/nodes/0: Not a directory"

But if I change "/usr/share/elasticsearch/data" to "/usr/share/elasticsearch", I instead receive this error:
"/usr/local/bin/ line 49: /usr/share/elasticsearch/bin/elasticsearch-env-from-file: No such file or directory"

@JackieLaFrite Have you been able to find a solution/workaround for this problem yet by any chance?

Is this message accurate? I.e. is this path a file and not a directory? If it's a file, what are its contents?

It doesn't exist, the path stops right after /usr/share/elasticsearch/data .
However, I can also not create the directory as the container just shuts itself down again immediately after reaching this error.
I realized this when I inspected the container by starting it via
docker run -it --entrypoint /bin/bash 'elasticsearch:7.13.4'
instead of
docker-compose up -d
I can't start up my entire project that way though, so I can't create the directory on a live container.

Hmm I think you're not seeing what Elasticsearch is seeing. It would create this directory if it doesn't exist at all.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.