Balena push fails

I have not done this in a couple years, but I’m having issues trying to push a new build to a new fleet. I have the latest Balena-cli 13.2.0 on Debian Bullseye. This is what I get when I try to push, I’m lost at this point! Any idea where to start looking?

balena push xxxxxxxxxxx/balena-dash

[Info] Starting build for balena-dash, user xxxxxxxxxxx
[Info] Dashboard link: https://dashboard.balena-cloud.com/apps/1909930/devices
[Info] Building on x64_01
[Info] Pulling previous images for caching purposes...
[Success] Successfully pulled cache images
[scheduler] Step 1/5 : FROM balenalib/genericx86-64-ext
[wifi-connect] Step 1/1 : FROM balenablocks/wifi-connect:amd64
[kiosk] Step 1/11 : FROM balenalib/genericx86-64-ext-golang:1.15 as builder
[scheduler] ---> ebdc14acb48a
[scheduler] Step 2/5 : RUN install_packages vbetool cron
[scheduler] Using cache
[scheduler] ---> 56d287b3a831
[scheduler] Step 3/5 : COPY scripts/amd64 /usr/src/
[scheduler] Using cache
[scheduler] ---> 93c15c00c371
[scheduler] Step 4/5 : RUN chmod +x /usr/src/*.sh
[scheduler] Using cache
[scheduler] ---> 26c3627cf4b0
[scheduler] Step 5/5 : CMD ["/usr/src/start.sh"]
[scheduler] Using cache
[scheduler] ---> b12e0431785f
[scheduler] Successfully built b12e0431785f
[wifi-connect] ---> 3a2475a841d6
[wifi-connect] Successfully built 3a2475a841d6
[kiosk] ---> 65c83c9a17af
[kiosk] Step 2/11 : RUN go get -d -v github.com/mozz100/tohora/...
[kiosk] Using cache
[kiosk] ---> 869dde3871c4
[kiosk] Step 3/11 : WORKDIR /go/src/github.com/mozz100/tohora
[kiosk] Using cache
[kiosk] ---> d84708d58853
[kiosk] Step 4/11 : RUN go build
[kiosk] Using cache
[kiosk] ---> 197f5f18a3ae
[kiosk] Step 5/11 : FROM balenablocks/browser:V1
[kiosk] ---> 10e0f7597713
[kiosk] Step 6/11 : RUN install_packages cec-utils
[kiosk] ---> Running in f97dca60042a
[kiosk] E: Repository 'http://security.debian.org/debian-security buster/updates InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
[kiosk] E: Repository 'http://deb.debian.org/debian buster InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
[kiosk] E: Repository 'http://deb.debian.org/debian buster-updates InRelease' changed its 'Suite' value from 'stable-updates' to 'oldstable-updates'
[kiosk]
[kiosk] apt failed, retrying
[kiosk] E: Repository 'http://security.debian.org/debian-security buster/updates InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
[kiosk] E: Repository 'http://deb.debian.org/debian buster InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
[kiosk] E: Repository 'http://deb.debian.org/debian buster-updates InRelease' changed its 'Suite' value from 'stable-updates' to 'oldstable-updates'
[kiosk]
[kiosk] apt failed, retrying
[kiosk] E: Repository 'http://deb.debian.org/debian buster InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
[kiosk] E: Repository 'http://security.debian.org/debian-security buster/updates InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
[kiosk] E: Repository 'http://deb.debian.org/debian buster-updates InRelease' changed its 'Suite' value from 'stable-updates' to 'oldstable-updates'
[kiosk]
[kiosk] Removing intermediate container f97dca60042a
[kiosk] The command '/bin/sh -c install_packages cec-utils' returned a non-zero code: 100
[Info] Uploading images
[Success] Successfully uploaded images
[Error] Some services failed to build:
[Error] Service: kiosk
[Error] Error: The command '/bin/sh -c install_packages cec-utils' returned a non-zero code: 100
[Info] Built on x64_01
[Error] Not deploying release.
Remote build failed

Hi,

The problem here is that V1 of the browser block is quite old and one of the images it uses still thinks the Debian release Buster is stable when it’s actually oldstable.

You could drop the V1 tag in your line FROM balenablocks/browser:V1, so it grabs the latest version; or pin it to one of the newer releases.

If you really want to keep using V1, there is a solution.
You effectively need to modify the install_packages command to allow this change.

Instead of

RUN install_packages cec-utils

It would become

RUN apt-get update --allow-releaseinfo-change
RUN apt-get install cec-utils
RUN apt-get clean

I’ve split up the update, install and clean commands, so you can more easily add things to install without having to update every time.

3 Likes

Thank you @TJvV for your amazing support :slight_smile:

Feel free to PR on the issue opened on the repo @acr with this solution if it works.

Not sure what are you trying to build but did you try the newest balenaBlock using WPE WebKit? GitHub - Igalia/balena-browser-wpe: A drop-in web browser block for Balena based on WebKit WPE maybe it helps!

Feel free to try it and let us know if that works!

Thanks for the response. I’m surprised this was not caught months ago??? I trying to build a totally stock balenalabs / balena-dash

I will give this a try

Ok! keep us updated please!

I tried the just dropping the :V1 and that did the trick!

FROM balenablocks/browser:V1
vs
FROM balenablocks/browser

Once I have a chance to deploy this build and test I will give an update. I’d be happy to do a PR, but I’d need some guidance since I’ve never done one.

1 Like