Open brandonSc opened 7 months ago
Since we suspect that the wrong image platform is being used, we have added the following to our error message: https://github.com/earthly/earthly/pull/3805
This will help determine if an incorrect platform is being set in the image pull parameters.
Note that running with --verbose
may be required to see the full error string.
BTW, this trace will be shipped in a new release that is coming today or tomorrow
from https://github.com/earthly/earthly/pull/3805#issuecomment-1957765574
This error may happen when the git image is overridden in the Earthly config.
We figured out that this issue can be the result of running a build on a satellite before QEMU has started, and when the git image used requires emulation. A backend fix will be implemented to ensure QEMU is running before allowing the build. We can leave this ticket open until then.
What went wrong? Users are reporting occasional/non-deterministic errors in ARM satellites with the internal GIT META command. The command
fails with a message like the following:
Since the git command is run in a pulled git image, it's possible that this
exec format error
is due to an incorrect image platform being used. In many cases, this error has been reported on ARM64-based satellites (where an amd64-based image may be getting pulled incorrectly).Note that this internal command is used when resolving a remote target references (for example, when running
earthly github.com/org/repo+some-target
).More insights reported by users:
arm64
satellites--feature-flag disable-emulation
seems to have either reduce the failure frequency