Start opensearch with nfs mounted volume /usr/share/opensearch/config permission issues read

from startup
opensearch-node1 | grep: /usr/share/opensearch/config/opensearch.yml: Permission denied
opensearch-node1 | tee: /usr/share/opensearch/config/opensearch.yml: Permission denied

docker-compose.yml has
volumes:
- /usr/share/opensearch/config/opensearch.yml:/usr/share/opensearch/config/opensearch.yml

also created local user elasticsearch but default userid 1000 is already used by amzn ec2-user ?

Are you able to read the file as the same user that docker runs as? We should probably try to narrow this down to the NFS export options for read access and/or the permissions itself on the file.

Who owns the file /usr/share/opensearch/config/opensearch.yml and what are its current permissions?

@nateynate thanksfor reply
yes no nfs issue
the issue is its on amzn ec2 instance and new user (opensearch) userid 1002 not matching userid 1000 inside default container which is reserved for ec2-user
afte few checks changing nfs file/folder to ec2-user (1000) /ec2-user(1000)group

then it worked just now
so reference to anyone not on ubuntu about userid must match
didnt see this userid issue on [BUG]Error when running Docker image · Issue #1567 · opensearch-project/opensearch-build · GitHub

1 Like

perhaps opensearch userid could be updated to 1010 in new latest container image so it doesnt conflict or some higher number userid

Glad you got it working! I imagine we could warn people of some gotchas there, but this seems more like an NFS thing than an OpenSearch thing. STill, it’s worth sharing.

Thanks for bringing your solution here!

Nate

1 Like