Hi everyone,
I recently switched from Intel Mac to ARM-based (Apple Silicon) Mac with Apple M1 Chipset and my balenaCLI fails pushing my project.
The error message points at a wrong architecture being used. It says:
[Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
The device-type I have set on my project on Balena Cloud is an RPi4 64-Bit.
Here’s the full dump:
[Info] Starting build for balena-node-red, user g_simon_kemper
[Info] Dashboard link: https://dashboard.balena-cloud.com/apps/1972788/devices
[Info] Building on arm02
[Info] Pulling previous images for caching purposes...
[Success] Successfully pulled cache images
[main] Step 1/7 : FROM balenalib/raspberrypi4-64-python:3-stretch-run
[main] ---> 5f41c7def93e
[main] Step 2/7 : WORKDIR /usr/src/app
[main] ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
[main] ---> Running in cb72b3554c2b
[main] Removing intermediate container cb72b3554c2b
[main] ---> 0d5cc714c948
[main] Step 3/7 : COPY requirements.txt requirements.txt
[main] failed to get destination image "sha256:0d5cc714c948e51d8dd40505446bc8b833199afa005a1e09ec5e357a155f80cb": image with reference sha256:0d5cc714c948e51d8dd40505446bc8b833199afa005a1e09ec5e357a155f80cb was found but does not match the specified platform: wanted linux/arm64/v8, actual: linux/amd64
[Info] Uploading images
[Success] Successfully uploaded images
[Error] Some services failed to build:
[Error] Service: main
[Error] Error: failed to get destination image "sha256:0d5cc714c948e51d8dd40505446bc8b833199afa005a1e09ec5e357a155f80cb": image with reference sha256:0d5cc714c948e51d8dd40505446bc8b833199afa005a1e09ec5e357a155f80cb was found but does not match the specified platform: wanted linux/arm64/v8, actual: linux/amd64
[Info] Built on arm02
[Error] Not deploying release.
Remote build failed
The CLI is on latest version. The project I try to push can be found here.
Thanks,
Simon