Problem deploying myApp with tutorial

Hi everybody,

I’m finally getting around to deploying an open-balena instance. I am using the tutorial here

All seems to be going ok so far, I installed the server, ran it up, logged in from a local machine running balena-cli, setup an image for an RPi3 device which then connected ok.

Next I’m trying to deploy the example application with

balena deploy myApp --logs --source . --emulated

But I get a signing error

Build]   main Successfully built 1988c6875bc7
[Build]   main Successfully tagged sense-snake_main:latest
[Info]    Creating release...
[Info]    Pushing images to registry...
Retrying "registry.spriteguard.com/v2/56713a2d13f420ecb7f0109811e19079:latest" after 2.00s (1 of 3) due to: Error: Get https://registry.spriteguard.com/v2/: x509: certificate signed by unknown authority
Retrying "registry.spriteguard.com/v2/56713a2d13f420ecb7f0109811e19079:latest" after 2.80s (2 of 3) due to: Error: Get https://registry.spriteguard.com/v2/: x509: certificate signed by unknown authority
Retrying "registry.spriteguard.com/v2/56713a2d13f420ecb7f0109811e19079:latest" after 3.92s (3 of 3) due to: Error: Get https://registry.spriteguard.com/v2/: x509: certificate signed by unknown authority
[Info]    Saving release...
[Error]   Deploy failed
Get https://registry.spriteguard.com/v2/: x509: certificate signed by unknown authority

Can you help?

Thanks!

Alex

NB. My NODE_EXTRA_CA_CERTS envvar is set to my ca.crt correctly…

OK Google is my friend. I think I have sussed this. I need to do something similar to the advice given for MacOS (I am currently on an Ubuntu 16.04 LTS VM)

  • Go to /usr/local/share/ca-certificates/
  • Create a new folder, i.e. “sudo mkdir school”
  • Copy the .crt file into the school folder
  • Make sure the permissions are OK (755 for the folder, 644 for the file)
  • Run “sudo update-ca-certificates”

This fixed the issue for me!

1 Like

Hi Alex,
Thanks for sharing !
Regards
Thomas