Docker build completes successfully after "Spin up Environment" without running steps

#1

I’m attempting to build an app on three platforms.

There is a Mac build and two which use Docker images. Those two are identical apart from the docker image.

One of them just quits after setting up the environment:
image

The other one completes fine:
image

How can I debug why the steps are not being run?

#2

Hello, that is quite strange.

I suspect that the Docker image is exiting somehow and thus killing the job. Can you share the image here or, of not, open a ticket so we can take a look?

#3

We’re trying to build for Raspberry Pi by basing our image off of resin/armv7hf-debian-qemu, so there are plenty of things that could be going wrong.

When I get some time to look into this again, I’ll report back!

#4

Oh! We can’t run ARM images, since we are on x86 machines. They completely fail. I’ll check if we forgot to document this when we last discovered it.

#5

Hello,
No new information to anyone here but for future reference we have this mentioned here so hopefully others are able to find it: https://support.circleci.com/hc/en-us/articles/360018651374

We are also looking into detecting ARM images so perhaps we can implement some kind of warning in the UI.

If you are interested in CircleCI adding ARM support, please cast your vote and share your opinion here: https://ideas.circleci.com/ideas/CCI-I-900

Thank you!

1 Like
#6

Hi there!

This is not actually an ARM image, it uses QEMU to emulate ARM. I’ve had this image running on both Windows/macOS x64 hosts, installed node v10 for ARM and ran a test script outputting process.arch with no issues.

#7

Hi Tim,

It’s possible this is a limitation caused by how we secure the container then. We would need to be able to see the build to dig deeper it what’s happening.

#8

Perhaps an entirely different issue, but our builds randomly and sporadically began completely failing at the Spin up Environment stage and prints errors (unlike the OP whose build silently fails)…

#9

Re: seeing the build, I submitted a ticket that might be related. Zendesk case 46920

#10

That’s a completely different issue. Will respond via the ticket

#11

If your code would work on an ordinary Linux x86 machine, then perhaps a Machine executor would be worth a try? They are less locked down than containers.

#12

Yes, but I believe that since QEMU is telling our executor that that’s ARM we are crashing. The issue at the root is that we need to inject the build agent binary into the job and we can’t do that since it’s not compiled for ARM.

1 Like
closed #13

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.