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

Builds "failing" with strange docker error but actually passes #9

Open
faceleg opened this issue Jan 5, 2017 · 4 comments
Open

Builds "failing" with strange docker error but actually passes #9

faceleg opened this issue Jan 5, 2017 · 4 comments

Comments

@faceleg
Copy link

faceleg commented Jan 5, 2017

I'm getting builds consistently failing with one of the errors:

Error response from daemon: You cannot remove a running container <hash>. Stop the container before attempting removal or use -f

write /dev/stdout: resource temporarily unavailable

The build actually continues and an artefact is deployed.

What could cause this? What might I try to start debugging/fixing this?

(for my own reference, examples:
KS74D3U6ABIOa54e258f786ed94b6fc8ec2b66a41a75de6d62b95ec49f41ab59920b95429203
3deb346072699d4a24fbf52848a1183e620e64ce4ccd6a0b61cd8dceca651c20)

@faceleg faceleg changed the title Builds "failing" with strange docker error, actually pass Builds "failing" with strange docker error but actually passes Jan 5, 2017
@mhart
Copy link
Member

mhart commented Jan 5, 2017

@faceleg is one of your builds still running on that machine? It could be this command that's failing: https://github.com/lambci/ecs/blob/master/runbuild.sh#L20 (basically, the --rm flag is trying to remove any existing containers with the same name – but if one of them is still running, then I think it'll fail)

@faceleg
Copy link
Author

faceleg commented Jan 5, 2017

Yes I think this was the case. I killed the EC2 instance, which caused ECS to spawn another. Builds have been passing successfully since then.

@faceleg faceleg closed this as completed Jan 5, 2017
@faceleg
Copy link
Author

faceleg commented Jan 16, 2017

I've been experiencing this again. I have deleted the ECS cluster and rebuild. First build was good. second build failed with

Error response from daemon: You cannot remove a running container be7faf28c4431951449975645bd4c1550b5aaef2bb1aa61b63f1d1466ff2246d. Stop the container before attempting removal or use -f

@faceleg faceleg reopened this Jan 16, 2017
@ancil26
Copy link

ancil26 commented Dec 5, 2017

We're getting the same error after restarting the ecs cluster @mhart ,

Error response from daemon: You cannot remove a running container d4a274e5961b7b0c37620cd2f490ca37a3dcd65ffb4dd567c64bd5e03d3f8d7c. Stop the container before attempting removal or use -f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants