explicitly set ownership on elasticsearch data volume for podman compat#405
Open
3nprob wants to merge 1 commit intoheadwaymaps:mainfrom
Open
explicitly set ownership on elasticsearch data volume for podman compat#4053nprob wants to merge 1 commit intoheadwaymaps:mainfrom
3nprob wants to merge 1 commit intoheadwaymaps:mainfrom
Conversation
michaelkirk
reviewed
Dec 11, 2025
| rm -fr /usr/share/elasticsearch/data/* | ||
| mv "${extract_dir}"/* /usr/share/elasticsearch/data | ||
|
|
||
| chown -R "$elasticsearch_user:$elasticsearch_group" /usr/share/elasticsearch/data |
Member
There was a problem hiding this comment.
It's already been chgrp'd with the same permissions right, so why do we need this?
Contributor
Author
There was a problem hiding this comment.
Unless there's some other similar edge-case going on here, I think it's this podman bug: containers/podman#27720
Contributor
Author
There was a problem hiding this comment.
Note also that the existing chgrp only affects the contents of /usr/share/elasticsearch/data but not the dir itself as it already exists and is not deleted/modified here. elasticsearch expects permission on the dir itself.
ffb1296 to
339c7dc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When running the docker-compose stack using podman, the elasticsearch container crashloops due to lacking permissions on
/usr/share/elasticsearch/data.As workaround, running
podman exec -it -u0 headway-pelias-elasticsearch-1 chown 1000:1000 /usr/share/elasticsearch/datafixes this and makes everything run fine.containers/podman#27720