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

chroot error on start es pod #112

Closed
AdamWyzgol opened this issue Nov 3, 2020 · 6 comments
Closed

chroot error on start es pod #112

AdamWyzgol opened this issue Nov 3, 2020 · 6 comments
Assignees

Comments

@AdamWyzgol
Copy link

I just install wazuh on new kubernetes cluster, on ES I have in logs error:
chroot: cannot change root directory to /: Operation not permitted
This occures only on this pod, I tried also older versions of image, there was the same problem. Where could be the issue?

@AdamWyzgol
Copy link
Author

after adding to container definition:
securityContext:
runAsUser: 1000
it starts working, the same problem I had after changed image to base elasticsearch image. I foud that resolution after read this elastic/helm-charts#357 (comment) maybe it help someone.

@xr09
Copy link
Contributor

xr09 commented Nov 3, 2020

Hi @AdamWyzgol,

I'm trying to emulate this error. Could you share more details about your Kubernetes environment (minikube, EKS, GKE, etc) and the exact steps you followed for the deployment?

@AdamWyzgol
Copy link
Author

AdamWyzgol commented Nov 3, 2020

I have some more details, the same error occure on manager pods. I think it could be related with CRI-o based cluster. It is custom installation from kubeadm, latest version of k8s and crio. All is based on CentOS 8, SeLinux is enabled but disabling it give the same result.

@AdamWyzgol
Copy link
Author

AdamWyzgol commented Nov 3, 2020

I found this opendistro-for-elasticsearch/opendistro-build#167 it is probalby the issue when apply this fix it works

@xr09
Copy link
Contributor

xr09 commented Nov 3, 2020

Thanks for the PR we'll give it a look soon.

@xr09
Copy link
Contributor

xr09 commented Nov 17, 2020

Fixed by #113

@xr09 xr09 closed this as completed Nov 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants