Closed ketilmo closed 6 months ago
Same issue confirmed on a Raspberry Pi 4 with 4 GB RAM.
Also failing on a Raspberry Pi 3 with 1 GB RAM, but with a different error message:
Setting up libjq1:armhf (1.5+dfsg-2+b1) ...
Setting up jq (1.5+dfsg-2+b1) ...
Setting up gpiod (1.2-3) ...
Processing triggers for libc-bin (2.28-10+deb10u2) ...
Removing intermediate container e3ffa6b61807
---> 8b782129cc9d
Step 28/36 : WORKDIR /app
---> Running in 8dac839a656a
Removing intermediate container 8dac839a656a
---> 9f5e3c72faed
Step 29/36 : RUN mkdir ./artifacts
---> Running in 393e2a1c6687
Removing intermediate container 393e2a1c6687
---> 1c7fb05ebbe1
Step 30/36 : COPY --from=builder /app/basicstation/build-rpi-${VARIANT}/bin ./artifacts/v2
COPY failed: stat app/basicstation/build-rpi-/bin: file does not exist
Hi @ketilmo May I know how are you building the image? I have tried to reproduce the error without success, I can get the image built on a Raspberry Pi 4 without problem.
The patch linked from the basicstation repo was applied a long time ago. As you can see here the image is using the aarch64-linux-gnu to build the rpi model (V2) on an ARM64 machine:
Thanks for your prompt reply, @xoseperez. I appreciate your help.
Yes, it's strange that the build fails between the two mentioned commits. I've been unable to pinpoint any specific differences that would cause this.
I'm building the images using the balena push
command.
The good news is that your prebuilt containers work flawlessly, so I have switched to them for now.
Balena uses a different Dockerfile and it was not passing the right architecture to the builder. Pushed a fix to the repo. You can try it now.
Thanks for your support, @xoseperez!
The process goes further now, but fails at this stage:
Setting up libjq1:arm64 (1.5+dfsg-2+b1) ...
Setting up jq (1.5+dfsg-2+b1) ...
Setting up gpiod (1.2-3) ...
Processing triggers for libc-bin (2.28-10+deb10u2) ...
Removing intermediate container 3a0f1a9085a4
---> 3f974859e6d3
Step 28/36 : WORKDIR /app
---> Running in bb05c72cf3b7
Removing intermediate container bb05c72cf3b7
---> 9fa20ed8985a
Step 29/36 : RUN mkdir ./artifacts
---> Running in 072ddbc83431
Removing intermediate container 072ddbc83431
---> 4155a6ae9c5c
Step 30/36 : COPY --from=builder /app/basicstation/build-rpi-${
COPY failed: stat app/basicstation/build-rpi-/bin: file does not exist
Added the required build variables at the top of the balena Dockerfile.template
. Mind I had to remove the docker-compose.yml
file in order to force Balena to build the image from the Dockerfile.
The solution is not pretty, I don't like it, but it's the best I have found so far. I don't know how to provide build settings from the balena.yml
file or if it's even possible.
Thank you so much, @xoseperez! It worked perfectly on all the target versions listed in the ticket above. I did not have to delete anything when doing the balena push
. Everything worked straight out of the box. Thanks again!
Great!
Hi,
Thanks for creating a great setup. I have been running basicstation-docker with a balena for a while. From commit 4ce007a6fed6fa7781af92b044bad1e1b5e78aae and onwards, the build process has started failing on my Raspberry Pi 4 with 8 GB RAM. From the logs:
For commit 1f62150768b9973af7e01073f1dc07d35994abd8, everything works fine.
I've done a little bit of research and see that the same errors were mentioned in the main basicstation repo a while ago: https://github.com/lorabasics/basicstation/issues/171
Any assistance would be highly appreciated.
Kind regards, Ketil