Closed blagae closed 1 year ago
A very helpful support person at CircleCI asked me to try defining the default executor with a newer image:
- aws-ecr/build-and-push-image:
executor:
name: aws-ecr/default
image: "ubuntu-2004:2023.04.2"
This turned out to work for both projects (Java and Python). I then looked this repo and saw that PR #270 exists and has been merged in the master
branch, which fixes another problem in roughly the same way. I also tried to manually define the image from this PR, which is ubuntu-2004:2022.04.1
, and the builds succeed as well. That means that my problem has been fixed already.
As a result, I would like to ask the maintainers of this repo to make a new release of this orb. In the mean time, I am no longer blocked due to the workaround above.
Hey @blagae,
Thanks for opening this issue and providing all of your details. We're working on closing out all these issues and will cut a new release for this orb very soon.
Thanks again! Brian
This issue appears to still be affecting users. We are hitting this issue as well. I would recommend leaving the issue "Open" so it's easier for others to find this workaround.
We are also on the latest orb version 8.2.1
and were using aws-ecr/default
as the executor. Our pip install
inside a dockerfile build was giving us:
RuntimeError: can't start new thread
We applied the workaround described by @blagae here and it has fixed the issue for us.
Orb version
8.2.1
What happened
When I try to run certain types of builds with the AWS-ECR orb, I recently started getting warnings that build jobs cannot execute because of memory and/or threading problems. This seems to be irrespective of the resource class of the executor (which I tried setting to large).
Below is a build failure for a new project that has a very simple Dockerfile:
Below is the error, which mentions that the process can't create a thread, but also that it ran out of memory.
and on another project (which used to run well), we get a pip failure to start a thread for no apparent reason:
My CircleCI config file is pretty simple, so I don't think there's anything wrong with it:
It seems to me, but I am definitely not sure, that this started occurring on builds after the recent changes that CircleCI made to the execution environments. The Python project definitely used to build correctly in early June.
FYI I am also submitting this to the official CircleCI support channel, because I don't know if this is a them problem or a you problem.
Expected behavior
builds should succeed