-
Notifications
You must be signed in to change notification settings - Fork 2k
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
mount: operation not permitted #4199
Comments
Hey, You will need to share the job file in question, the client logs and the output of the alloc-status before we can help. There is not enough information in this ticket. |
@dadgar This behaviour is not confined to a particular job file. It happens once in a while irrespective of any nomad job we run. And i was not able to retrieve the logs because as soon as allocation fails i dont see any log files regarding that particular allocation. |
Are you mounting particular directories? What drivers are you using? |
Okay. Below is the job file if appropriate. And no i am not mounting any directory.
|
@SuryaBommadevara Are you by chance running Nomad in a container itself? Can you mount a tmpfs regularly?
|
@dadgar No i am running nomad on AWS host machines. And yes i'm able to mount a tmpfs |
Could you add a few more details to help us reproduce/debug this including:
|
@SuryaBommadevara in the process tree that you sent me I see that there is a nomad client running inside of a docker container. It looks to me like nomad is running on the host machine and a second nomad agent is running in a jenkins slave container on the same host. Can you confirm this? If the nomad client in the container is setting up the task then its likely that is causing you to see the |
@nickethier My apologies for the delayed response. So this is why we were having mount error occassionally. We have 5 nomad clients and on which we are running jenkins master & slave containers. But the catch here was we were also running nomad agent in those containers to be able to submit jobs to the server. What i ignored completely was when running nomad agent in containers . The nomad servers considers them also as a nomad client. And when deploying nomad job hoping that it would be placed on one of the 5 clients it was going to the client running inside the container. Since we dint give proper permissions for agents running inside the containers. That was causing the mount issue. Now we are not running nomad agents in containers. That fixed it. Thank you for assisting us on this. Sorry for any inconvenience caused. You can go ahead and close this issue. |
@SuryaBommadevara no worries! I'm glad we were able to help sort this out. Thanks for using nomad! |
I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues. |
Nomad version
Nomad v0.7.0
Operating system and Environment details
Ubuntu 16.04
Issue
i have a nomad cluster on AWS with 3 nomad servers & 5 nomad clients. I see this issue very often these days
Setup Failure failed to build task directory for elasticsearch: mount: operation not permitted
. But what bothers me is that the client where i am seeing this error is successfully running my other containers. Any clue as to why this is happeningReproduction steps
Nomad Server logs (if appropriate)
There are no server error logs
Nomad Client logs (if appropriate)
There are no server error logs
Client config file (if appropriate)
The text was updated successfully, but these errors were encountered: