-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to get device type build data for... #1433
Comments
Would love to see the writeup from https://forums.balena.io/t/supported-devices-in-open-balena/357665/20 land in the open-balena docs somewhere... |
shaunco
added a commit
to mapped/open-balena-api
that referenced
this issue
Sep 19, 2023
Resolves: balena-io#1433 Change-type: minor
shaunco
added a commit
to mapped/open-balena-api
that referenced
this issue
Sep 20, 2023
Resolves: balena-io#1433 Change-type: minor
shaunco
added a commit
to mapped/open-balena-api
that referenced
this issue
Sep 20, 2023
Resolves: balena-io#1433 Change-type: minor
shaunco
added a commit
to mapped/open-balena-api
that referenced
this issue
Sep 21, 2023
Resolves: balena-io#1433 Change-type: minor
shaunco
added a commit
to mapped/open-balena-api
that referenced
this issue
Sep 27, 2023
Resolves: balena-io#1433 Change-type: minor
shaunco
added a commit
to mapped/open-balena-api
that referenced
this issue
Sep 28, 2023
Resolves: balena-io#1433 Change-type: minor
shaunco
added a commit
to mapped/open-balena-api
that referenced
this issue
Sep 29, 2023
Resolves: balena-io#1433 Change-type: minor
shaunco
added a commit
to mapped/open-balena-api
that referenced
this issue
Oct 3, 2023
Resolves: balena-io#1433 Change-type: minor
shaunco
added a commit
to mapped/open-balena-api
that referenced
this issue
Oct 5, 2023
Resolves: balena-io#1433 Change-type: minor
shaunco
added a commit
to mapped/open-balena-api
that referenced
this issue
Oct 6, 2023
Resolves: balena-io#1433 Change-type: minor
dcaputo-harmoni
pushed a commit
to dcaputo-harmoni/open-balena-api
that referenced
this issue
Dec 12, 2023
Resolves: balena-io#1433 Change-type: minor
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(moving balena-io/open-balena#176 to here)
Attempting to start an open-balena instance results in open-balena-api having hundreds of errors during startup that like:
As detailed in balena-io/balena-cli#2322 and balena-io/open-balena#129 by @pdcastro, open-balena points to balena-cloud's S3 bucket full of endpoint images.
At startup, open-belena-api grabs https://resin-production-img-cloudformation.s3.amazonaws.com/ to get a list of all available device types - this succeeds. open-balena-api then attempts to fetch
device-type.json
under each key. S3 returnsAccessDenied
for every one of those requests whenIMAGE_STORAGE_PREFIX
is set toimages
- which is the default at https://github.com/balena-io/open-balena/blob/ea07d43c5c7e98bb8b11c808b12428a46019c8d5/compose/services.yml#L34If I change
IMAGE_STORAGE_PREFIX
toesr-images
, then open-balena-api starts up without all the access denied errors ... but I'm not sure if that is giving me the right set of images or not.For anyone else following along,
esr-images
contains the "Extended Support Release" images as detailed here and is a very limited set of devices:... so,
esr-images
is not what I wanted, as it is missing the 3 device types I actually need 😅As for the errors, there seem to be certain device types where everything has permissions set to not allow public access for reading files, but still allows listing files. For example, the error above is trying to read https://resin-production-img-cloudformation.s3.amazonaws.com/images/imx8mmebcrs08a1/2.100.3/device-type.json which gives
access denied
(as does every other file inimages/imx8mmebcrs08a1/*
), this causescontractSync
to be able to enumerate the files but not fetch thedevice-type.json
and thus the open-balena-api log gets flooded with these errors on first sync.Seems like there are two possible fixes:
resin-production-img-cloudformation
permissions on these device types to either prohibit both LIST and GET, or permit GET.INCLUDE_IMAGES=iot-gate-imx8,generic-amd64,generic-aarch64
which could filter both thedevice type contracts
pulled from https://github.com/balena-io/contracts and thedevice type information
pulled from https://resin-production-img-cloudformation.s3.amazonaws.com/images/ ... as I would assume no open-balena instance actually needs every possible device type - and if they do, they can just not setINCLUDE_IMAGES
and it would fall back to the current behavior of grabbing everything.The text was updated successfully, but these errors were encountered: