Hi,
I have made some modifications to Balena OS to support my own board (similar to fincm3) a while back and am now in the process of automating the build / deployment, so my colleagues can also work with it.
I am noticing some issues when trying to bootstrap a new device though.
I have updated/rebased my changes to a newer Balena version and not sure if this is what broke it.
My current build is based on BalenaOS v2.72.0+rev1
and I use balena-cli 12.44.15
.
As far as I’m aware, I used the same steps to get my previous builds (based on v2.58+rev3
and v2020.07
) up and running, these may have been done with an older balena-cli
version.
The steps I’m going through are:
- Build image with:
docker run --rm -it --privileged -v <repo-path>:/home/build aggurio/docker-balena ./balena-yocto-scripts/build/barys -d --machine mb1929 --rm-work
; - Configure image with:
balena os configure <image> --app <balena application> --type fincm3 --debug --version 2.72.0 --config-network ethernet
; - Flash image with:
3.a.dd if=<image> of=/dev/sdb bs=4M conv=fsync
or
3.b.balena os initialize <image> --type fincm3 --drive /dev/sdb
or
3.c. using Etcher.
Next when I boot up my device, it will first complain about the certs not being valid yet, but this gets resolved automatically by NTP kicking in after a while.
However, what completely stops my bootstrap (I think) is openvpn returning an AUTH_FAILED control message; there is no further information with this message. The device will just keep retrying it in a little bit and getting the same error again.
Looking at the config.json
, the failing device does have some deviceApiKey
and UUID
configured.
The userId
, mixpanelToken
and applicationId
are the same as on a working image.
I have tried grabbing an image from the Balena cloud dashboard (fincm3, v2.72.0, development) and flash that using Etcher.
This shows the same error at first, but will then actually move on, reboot and properly connect.
After showing a 503
from the API, it will be getting the proper application version and reboot again after which it’s ready to use.
I will check if a fresh build of an older version still works, but building this will take a while (as will rebasing to a newer Balena version).
In the meantime I will gladly take any suggestions on how to get this working (again).
Edit: added some logging: bootstrap.log (14.7 KB)
It will keep running in this loop.
Edit 2: This works fine with a fresh v2020.07 build.
Edit 3: full log of bootstrap attempt bootstrap_full.log (132.4 KB)
Edit 4: Rebasing my changes to v2.73.1+rev1
doesn’t help, following the same procedure with the actual v2.73.1+rev1
version does work.
I will see if I can narrow this down tomorrow by incrementally adding the changes.