balena-sense not building

It seems that release #2e391927f4c6ff536326040bae445e5d is failing and thus the application cannot be deployed.

I get the following output when checking the build status:

[Error] Some services failed to build:
[Error] Service: influxdb
[Error] Error: The command ‘/bin/sh -c apk add influxdb’ returned a non-zero code: 1
[Info] Built on arm01
[Error] Not deploying release.

Here’s the build output:

[telegraf]   ---> Running in 54a6701ff29a
[influxdb]  Here are a few details about this Docker image (For more information please visit https://www.balena.io/docs/reference/base-images/base-images/): 
[influxdb]  Architecture: ARM v6 
[influxdb]  OS: Alpine Linux 3.12 
[influxdb]  Variant: run variant 
[influxdb]  Default variable(s): UDEV=off 
[influxdb]  Extra features: 
[influxdb]  - Easy way to install packages with `install_packages <package-name>` command 
[influxdb]  - Run anywhere with cross-build feature  (for ARM only) 
[influxdb]  - Keep the container idling with `balena-idle` command 
[influxdb]  - Show base image details with `balena-info` command
[influxdb]  fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/armhf/APKINDEX.tar.gz
[influxdb]  fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/community/armhf/APKINDEX.tar.gz
[influxdb]  ERROR: unsatisfiable constraints:
[influxdb]  
[influxdb]    influxdb (missing):
[influxdb]      required by: world[influxdb]
[grafana]    ---> 829994ba4fea
[grafana]   Step 4/9 : COPY ./*.sh /usr/src/app/
[sensor]     ---> a2bfbff01cfa
[sensor]    Step 16/17 : RUN chmod +x /usr/src/app/entry.sh
[sensor]     ---> Running in a4898e16321d
[telegraf]  Here are a few details about this Docker image (For more information please visit https://www.balena.io/docs/reference/base-images/base-images/): 
[telegraf]  Architecture: ARM v6 
[telegraf]  OS: Debian Buster 
[telegraf]  Variant: run variant 
[telegraf]  Default variable(s): UDEV=off 
[telegraf]  Extra features: 
[telegraf]  - Easy way to install packages with `install_packages <package-name>` command 
[telegraf]  - Run anywhere with cross-build feature  (for ARM only) 
[telegraf]  - Keep the container idling with `balena-idle` command 
[telegraf]  - Show base image details with `balena-info` command
[influxdb]  Removing intermediate container 6d27b72fff9d
[influxdb]  The command '/bin/sh -c apk add influxdb' returned a non-zero code: 1
[grafana]    ---> bd9f6345ffc7```

Changing the first line of the Dockerfile for influxdb from
FROM balenalib/%%BALENA_MACHINE_NAME%%-alpine
to
FROM balenalib/%%BALENA_MACHINE_NAME%%-alpine:3.11
solved the problem for me.

Hey @lufo welcome to the forums and thanks for posting your solution. It looks like the armhf package for influxdb isn’t available on Alpine 3.12 (the default), so in the case you’re using a Raspberry Pi Zero it’s not going to build. I’ve created an issue for that here: https://github.com/balenalabs/balena-sense/issues/82

Thank you, I´m curious to hear what the problem was.
I also lauched an alpine 3.12 container and tried manually installing influxdb, but it couldn´t be found somehow.

@lufo the problem is that the package doesn’t exist for that architecture on that version of Alpine, you can see that here: https://pkgs.alpinelinux.org/packages?name=influxdb&branch=v3.12