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
wait: no child processes #178
Comments
I've run into this intermittently. The code section in question is in utils/run.go You should be able to add some logging to your health/onChange handlers to verify this for yourself; you'll see your logs and then the That being said, I'd like to come up with a better way to handle this. We want to make sure we're logging if there's a real error, but we don't want to log in this case which is really just a limitation of the underlying API. |
I'm going to tag this as a bug although it's really more of a UX thing. |
@kenjones-cisco are you running consul-template in the container where you're seeing this? And if so, which version? I've been having trouble reproducing lately and I wonder if you're seeing hashicorp/consul-template#506 which was fixed in consul-template 0.13 which was released in Feb. |
Yes, inside the same container. consul-template v0.15 |
Ok, I have definitely been able to reproduce now... just need to figure out how to fix it next. 😀 |
I believe that I've fixed this in #184 and #199. We're no longer calling We may want to try to catch the error |
Released in https://github.com/joyent/containerpilot/releases/tag/2.4.0. Going to mark this as fixed tentatively and close it. If it comes up again let's reopen this to dive in. |
I'm going to have to re-open this, as I've seen it again while working on some autopilotpattern/mysql features. Again, it's pretty harmless log noise but we can do better. |
I know it's been a bit since I've circled back to this but I've discovered that this really is not harmless log noise and can result in missed heartbeats. I'll be digging into this shortly. |
With debug logging on it manifests as follows:
Which I can trace to where we split out the |
Opened #222 to fix. |
One of my service, an api that only depends on an underlying mongodb instance, keeps on talking about this same error (api.health exited with error: waitid: no child processes).
As a result the healthcheck is not consistent as the service status switches between healthy and unhealthy even if the underlying DB is stopped. |
@lucj can you provide debug logs? |
I keep see the
wait: no child processes
show up in my log files but I've not been able to determine the root cause of why that happens.Does this mean that a health check or onChange script execution couldn't be executed as there were no available child processes?
The only reference I saw previously dealt with the reapChildren work done previously, so does this mean that the attempt to reap found no children to reap?
The text was updated successfully, but these errors were encountered: