-
Notifications
You must be signed in to change notification settings - Fork 543
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
Tests failing with docker command 'CreateNetwork' returned with non-zero exit code
#5702
Comments
After multiple running, I got this error too:
This problem occurs because the app-host doesn't clean up networks after stop/shutdown. This is the list of networks on my machine. |
This seems to primarily be an issue with Docker being slower to respond when running multiple tests in parallel; there's a timeout set on the resource cleanup to avoid leaving zombie processes if cleanup never completes, but it's too aggressive when running this many simultaneous resources. In the short term we're making some tweaks to try to improve the reliability of resource cleanup and test runs (including a longer default+configurable duration for the resource cleanup phase and retry on network creation if a subnet wasn't available from the default pools) that should land today. |
@radical are we still seeing this issue with the latest DCP updates? We should be better about cleaning up resources as well as retrying to reconnect if we can't initially allocate a network subnet. |
I haven't seen this been hit in the last few days. We can close the issue after some time, since it still has entries in the last 7 days.
We are doing explicit |
It doesn't hurt to keep that prune in to be on the safe side; Docker is pretty limiting in the maximum number of default networks you can create. |
What's the timeout for these networks getting cleaned up by dcp? Just trying to get a sense of how many networks would be too many (IOW, dcp hasn't been able to cleanup) at end of a test run of N minutes. |
Current default timeout is 2 minutes to cleanup resources, but it can also be configured via environment variable ( |
This hasn't been hit in weeks now. Closing. |
Build Information
Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=807077
Build error leg or test failing: Aspire.Playground.Tests.*
Pull request: #5684
Full error message:
docker command 'CreateNetwork' returned with non-zero exit code 1: command output: Stdout: '' Stderr: 'Error response from daemon: could not find an available, non-overlapping IPv4 address pool among the defaults to assign to the network
Error Message
Fill the error message using step by step known issues guidance.
Known issue validation
Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=807077
Error message validated:
[docker command 'CreateNetwork' returned with non-zero exit code
]Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 9/13/2024 6:49:19 AM UTC
Report
Summary
The text was updated successfully, but these errors were encountered: