Docker Elasticsearch issue fix #5994
Snify89
started this conversation in
Show and tell
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have seen many issues regarding elasticsearch and docker.
This is mostly not because of ragflow.
The elasticsearch container/image uses data from this path:
/usr/share/elasticsearch/data
In the docker compose file, this path is by default handled with it's docker volume (driver: local)
By default, this path is owned by the user id 1000 (look for elasticsearch documentation, to change user/group id).
I wanted to remove the volume and change the path (docker host mount).
Some users might do the same or the "driver: local" (on different OSes) has some issues with elasticsearch.
This might lead to some issues and elasticsearch does not boot up.
Before starting the container, I made a esdata01 folder, gave it 777 permission (I don't mind it) and mount host this path to the elasticsearch container.
This shows, that elasticsearch might not start, due to permission/user/group issues/mistakes/consfusion.
This should be added to the FAQ
Beta Was this translation helpful? Give feedback.
All reactions