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

Docker network error when running uv run python run_swelancer.py #43

Open
bingyuyap opened this issue Feb 24, 2025 · 3 comments
Open

Docker network error when running uv run python run_swelancer.py #43

bingyuyap opened this issue Feb 24, 2025 · 3 comments

Comments

@bingyuyap
Copy link

  1. I had to update my default address pool for Docker in order and make sure that there are enough subnets for the LocalClusters
RuntimeError: Too many docker networks have been created. Most machines/laptops default to allowing
16 LocalCluster instances.
  1. Running uv run python run_swelancer.py after gives after network related error like:
APIError: 409 Client Error for
http+docker://localhost/v1.47/containers/b82a01e75fc56dd741fc6a9160d7ed3cd1c2d2b4b2314cd6e4d6a36fe44
cf9c0/exec: Conflict ("container b82a01e75fc56dd741fc6a9160d7ed3cd1c2d2b4b2314cd6e4d6a36fe44cf9c0 is
not running")

and

APIError: 403 Client Error for
http+docker://localhost/v1.47/networks/6754a0439c1a914d5c6430e5feb3939ec6241db72f590974d8c4359f98ff6
5ea: Forbidden ("error while removing network: network
tinydockernet-alcatraz-10b58905-e743-4315-a9f0-8bcca776063f id
6754a0439c1a914d5c6430e5feb3939ec6241db72f590974d8c4359f98ff65ea has active endpoints")

Error: 403 Client Error for http+docker://localhost/v1.47/networks/cccc2e44b63756397009bc43756083b1d89593fbba1caa5b91dde15c3854a15c: Forbidden ("error while removing network: network tinydockernet-alcatraz-5b653b9c-a749-4b18-88af-ff72b74eace4 id cccc2e44b63756397009bc43756083b1d89593fbba1caa5b91dde15c3854a15c has active endpoints")

Using Macbook M3 Max and Orbstack

@leon-openai
Copy link

Could you try lowering your concurrency below 16, and seeing if that helps?

@bingyuyap
Copy link
Author

@leon-openai i think that would help the Too many docker networks created but putting concurrency = 1 still gives me this error:

TypeError: StopIteration interacts badly with generators and cannot be raised into a Future

@leon-openai
Copy link

Based on the error they're getting, if they're trying to run everything they should check out our documentation about Running at Scale! Our guidance to folks trying to run SWELancer is to check out the README first and then reach out for support.

Here's the writeup to running at scale, if helpful

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

2 participants