[gyeah:root@openbalena ~] (openbalena) # balena app create blink --debug
[debug] new argv=[/usr/local/bin/balena,/snapshot/versioned-source/bin/balena,app:create,blink] length=4
BalenaRequestError: Request error: Inaccessible host: `resin-production-img-cloudformation.s3.amazonaws.com'. This service may not be available in the `us-east-1' region.
BalenaRequestError: Request error: Inaccessible host: `resin-production-img-cloudformation.s3.amazonaws.com'. This service may not be available in the `us-east-1' region.
at Object.<anonymous> (/snapshot/versioned-source/node_modules/balena-request/build/request.js:190:27)
at Generator.next (<anonymous>)
at fulfilled (/snapshot/versioned-source/node_modules/tslib/tslib.js:0:0)
at process._tickCallback (internal/process/next_tick.js:68:7)
This request is essential for openbalena to be able to create my application or I can disable it somehow ?
Hi @gyeah11, you shouldn’t need to reach our servers if you are running your own openBalena instance. My guess is that your CLI is still pointing to balenaCloud and not your openBalena server. Have you gone through the steps outlined here for the CLI? openBalena - Home
I believe the issue is the cli tried to contact our servers if you do not provide the --type option when running the command. The cli retrieves a list of supported device types to present an interactive menu.
FYI, apps subcommand have been renamed to fleets.
I would recommend updating the cli to the latest version. and try running the command with balena fleet create blink --type <fleet device type> e.g balena fleet create blink --type raspberry-pi. Can you please try it and let us know?
Thanks @rahul-thakoor
I will update to latest balena-cli and i will try it .
With my version i tried --type upboard ( the type of board that i use ) and it still connects to the s3 bucket to get the device types.
I gather that the balena fleet create command uses the balena SDK’s models.application.create() method, and that SDK method retrieves the device manifest from AWS S3 (regardless of the --type flag being used on the command line) as coded in the following lines:
Where the S3 bucket URL / hostname comes from environment variable IMAGE_STORAGE_BUCKET which, as I understand, open-balena hardcodes as s3.amazonaws.com:
Hence accessing the internet. So, if I got it right, ultimately the issue is that openBalena shares the s3.amazonaws.com resource with balenaCloud for the device types endpoint. I have created the following GitHub issues: