Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]Error when running Docker image #1567

Closed
qmonitoring opened this issue Jan 27, 2022 · 2 comments
Closed

[BUG]Error when running Docker image #1567

qmonitoring opened this issue Jan 27, 2022 · 2 comments
Assignees
Labels

Comments

@qmonitoring
Copy link

Describe the bug

When I try to run a docker image (following the documentation) I get this error:

tee: /usr/share/opensearch/config/opensearch.yml: Permission denied

The container won't start.

To Reproduce

Steps to reproduce the behavior:

docker run -p 9200:9200 -p 9600:9600 -e "discovery.type=single-node" -v /usr/share/opensearch/config/custom-opensearch.yml:/usr/share/opensearch/config/opensearch.yml opensearchproject/opensearch:1.2.4

Expected behavior

Opensearch up and running

Host/Environment (please complete the following information):

centos-release-8.2-2.2004.0.1.el8.x86_64

Additional context

I tried many options: change the configuration file, use a old version of the image, but the result was equally unsuccessful. For opensearchproject/opensearch:1.2.3 the error is:

tee: /usr/share/opensearch/config/opensearch.yml: Permission denied
sed: cannot rename /usr/share/opensearch/config/sedZbSzcg: Device or resource busy

@saratvemulapalli saratvemulapalli transferred this issue from opensearch-project/OpenSearch Jan 27, 2022
@bbarani bbarani added the docker label Feb 1, 2022
@peterzhuamazon
Copy link
Member

Hi @qmonitoring please refer to #1529 for more context and discussion as well as temp fixes that I am preparing to resolve the race condition.

As of now if your yml file is root owned it cannot be updated as that requires a complete change in how we handle the startup variable. Or you can make your yml file owned by opensearch and it should run.

Sorry for inconvinience,
Thanks.

@peterzhuamazon
Copy link
Member

Close this issue please continue the discussion in #1529 as we have a fix now for you to test:
#1529 (comment)

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants