You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Concourse (garden) doesn't recognise death of init process it spawned in the container #212
@xoebus yes, but I don't know what we'd be able to do about it. If you kill initd, the container is dead. The workaround is to not kill initd .
If you've spawned a container with a root user then you're implicitly allowing that user to kill the container. If you kill the container you will not then be able to run future processes in it.
The comment about the error not going away when the worker is rebooted sounds like it's related to snapshot/restore. To restart a worker and have all containers recreated the worker needs to be recreated (rather than just restarted).
@goonzoid Yeah, I guess it's just a question of whether Garden should realize one of its containers is unrecoverable and have it go away from the API. I could see the argument for not having it do it; in CF your health checks would start failing anyway and the container would probably be destroyed. Having the API be the only way for containers to disappear (either grace time or .Destroy) sounds like the least presumptuous thing to do, which is already the case.
In this case Concourse just keeps trying to run the process, not realizing the container is hopeless.
Perhaps some way to indicate to the caller that the container is unrecoverable would help? Which arguably we'd get for free if we got richer errors back from Garden; we'd handle the known errors (i.e. command not found, network blip) and treat anything else as fatal.
Agreed, richer errors are certainly something I'd like Garden to provide.
I've put #109944908 in Tracker as a placeholder to think about some kind of "container unrecoverable" error type that we can return from Container.Run (and possibly other calls).
Activity
concourse-bot commentedon Nov 25, 2015
Hi there!
We use Pivotal Tracker to provide visibility into what our team is working on. A story for this issue has been automatically created.
The current status is as follows:
This comment, as well as the labels on the issue, will be automatically updated as the status in Tracker changes.
xoebus commentedon Dec 3, 2015
@goonzoid @julz This sounds like it belongs to Garden. What do you think?
goonzoid commentedon Dec 7, 2015
@xoebus yes, but I don't know what we'd be able to do about it. If you kill initd, the container is dead. The workaround is to not kill initd
.
If you've spawned a container with a root user then you're implicitly allowing that user to kill the container. If you kill the container you will not then be able to run future processes in it.
The comment about the error not going away when the worker is rebooted sounds like it's related to snapshot/restore. To restart a worker and have all containers recreated the worker needs to be recreated (rather than just restarted).
vito commentedon Dec 10, 2015
@goonzoid Yeah, I guess it's just a question of whether Garden should realize one of its containers is unrecoverable and have it go away from the API. I could see the argument for not having it do it; in CF your health checks would start failing anyway and the container would probably be destroyed. Having the API be the only way for containers to disappear (either grace time or .Destroy) sounds like the least presumptuous thing to do, which is already the case.
In this case Concourse just keeps trying to run the process, not realizing the container is hopeless.
Perhaps some way to indicate to the caller that the container is unrecoverable would help? Which arguably we'd get for free if we got richer errors back from Garden; we'd handle the known errors (i.e. command not found, network blip) and treat anything else as fatal.
goonzoid commentedon Dec 11, 2015
Agreed, richer errors are certainly something I'd like Garden to provide.
I've put #109944908 in Tracker as a placeholder to think about some kind of "container unrecoverable" error type that we can return from
Container.Run(and possibly other calls).vito commentedon Jan 9, 2016
Gonna close this out since it's been delegated to the proper team (there's nothing for us to really do on the Concourse side of things).
ernado commentedon May 1, 2016
This error occurs when restarting worker with systemd. Cleaning worker folder and rebooting hosts works, but it is annoying. Any updates on this?
bump atc fly testflight ginkgo gomega