Our team has noticed that all of a sudden, our ‘balena push’ commands are failing. This worked on Monday evening (June 21st), but now fails consistently any time after Tuesday 22nd. This is the error we are seeing, seems to be related to debian package keys. Error is reproducible on different OSes and with different versions of the balena-cli tools.
Full output of build here
╭────────────────────────────────────────────────────────────────────╮
│ │
│ Update available 12.44.3 → 12.44.20 │
│ │
│ balena-cli/INSTALL.md at master · balena-io/balena-cli · GitHub │
│ │
╰────────────────────────────────────────────────────────────────────╯
[Info] Starting build for pennytestbeta, user gh_ko7eraven
[Info] Dashboard link: balena dashboard
[Info] Building on arm05
[Info] Pulling previous images for caching purposes…
[Success] Successfully pulled cache images
[main] Step 1/65 : FROM balenalib/armv7hf-debian:buster-build
[main] —> 6ae5bab0e1a8
[main] Step 2/65 : LABEL io.balena.device-type=“fincm3”
[main] Using cache
[main] —> 0cffa9144882
[main] Step 3/65 : WORKDIR /usr/src/app
[main] Using cache
[main] —> d605517a2eae
[main] Step 4/65 : RUN echo “deb http://archive.raspbian.org/raspbian buster main contrib non-free rpi firmware” >> /etc/apt/sources.list && apt-key adv --batch --keyserver ha.pool.sks-keyservers.net --recv-key 0x9165938D90FDDD2E && echo “deb http://archive.raspberrypi.org/debian buster main ui” >> /etc/apt/sources.list.d/raspi.list && apt-key adv --batch --keyserver ha.pool.sks-keyservers.net --recv-key 0x82B129927FA3303E
[main] —> Running in d70e86e46efd
[main] Here are a few details about this Docker image (For more information please visit Balena base images - Balena Documentation):
[main] Architecture: ARM v7
[main] OS: Debian Buster
[main] Variant: build variant
[main] Default variable(s): UDEV=off
[main] Extra features:
[main] - Easy way to install packages with install_packages <package-name>
command
[main] - Run anywhere with cross-build feature (for ARM only)
[main] - Keep the container idling with balena-idle
command
[main] - Show base image details with balena-info
command
[main] Warning: apt-key output should not be parsed (stdout is not a terminal)
[main]
[main] Executing: /tmp/apt-key-gpghome.qtauNRhEHZ/gpg.1.sh --batch --keyserver ha.pool.sks-keyservers.net --recv-key 0x9165938D90FDDD2E
[main] gpg: keyserver receive failed: No name
[main]
[main] Removing intermediate container d70e86e46efd
[main] The command ‘/bin/sh -c echo “deb http://archive.raspbian.org/raspbian buster main contrib non-free rpi firmware” >> /etc/apt/sources.list && apt-key adv --batch --keyserver ha.pool.sks-keyservers.net --recv-key 0x9165938D90FDDD2E && echo “deb http://archive.raspberrypi.org/debian buster main ui” >> /etc/apt/sources.list.d/raspi.list && apt-key adv --batch --keyserver ha.pool.sks-keyservers.net --recv-key 0x82B129927FA3303E’ returned a non-zero code: 2
[Info] Uploading images
[Success] Successfully uploaded images
[Error] Some services failed to build:
[Error] Service: main
[Error] Error: The command ‘/bin/sh -c echo “deb http://archive.raspbian.org/raspbian buster main contrib non-free rpi firmware” >> /etc/apt/sources.list && apt-key adv --batch --keyserver ha.pool.sks-keyservers.net --recv-key 0x9165938D90FDDD2E && echo “deb http://archive.raspberrypi.org/debian buster main ui” >> /etc/apt/sources.list.d/raspi.list && apt-key adv --batch --keyserver ha.pool.sks-keyservers.net --recv-key 0x82B129927FA3303E’ returned a non-zero code: 2
[Info] Built on arm05
[Error] Not deploying release.
Remote build failed