-
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
nomad kills random processes on restart while restoring old processes #17960
Comments
A simple solution to this would be adding a env variable to the child proceses which can be checked before killing the process. |
Hi @mmpataki, note that Nomad v0.12.4 is a very old release from September 2020. If you can reproduce with a supported version (e.g. v1.6-RC, 1.5.x, or 1.4.x), that would be worth investigating. |
I tested with v1.6.0 and could not reproduce. I have vague memories of this bug being fixed but a quick skim of the changelog didn't jog my memory. Please reopen if you can reproduce! This definitely shouldn't happen (the |
Looks like reproduced here too: #23969 |
Could this be reponed? Reproduced the issue here: #23969 |
Hi @yigit-erkoca; we will keep the newer issue which is linked to this one. There is no reason to have two issues open for the same bug. |
Nomad version
Output from
nomad version
Operating system and Environment details
Issue
AAA
nomad
process goes down (restarts)nomad
restarts, the job completesnomad
starts and tries to kill the process with pidAAA
.AAA
is used by some other process,AAA
gets killedReproduction steps
This is no exact reproduction, but we can observe the issue happening this way
nomad
process first and then the job process. Below script can do it without a delay (In my case job process was calledGroupExecutor
. It also prints the PID of the job process, let's say it'sAAA
killsnoop
.nomad
issues a SIGKILL to theAAA
(16276 - nomad, 16286 - job)Expected Result
nomad
shouldn't send the signal if the process is not started by itself.Actual Result
nomad
is sending the SIGKILLJob file (if appropriate)
Nomad Server logs (if appropriate)
Nomad Client logs (if appropriate)
The text was updated successfully, but these errors were encountered: