My setup is as follows:
Ubuntu 18.04 Linux VM with Balena CLI installed using the standalone installer file
balena-cli-v10.13.6-linux-x64-standalone.zipand updated the
Working behind a proxy, so I have set the proxy settings (which work fine for curl, wget, etc, so I know they’re right). They are set using environment variables
Based on some related answers from googling, I’ve also performed
npm configas follows where
$MY_PROXYis initialized to my corporate proxy, and have verified that the settings are right with
npm config list.
npm config set proxy $MY_PROXY npm config set https-proxy $MY_PROXY
- I have a Balena Cloud account and can log in via the web browser and see my devices.
balena login just doesn’t seem to work for me.
Web authorization method: With the web authorization approach, after I click the “Authorize” button in the browser, the browser just says “Something went wrong, You couldn’t login to the balena CLI for some reason”.
The terminal displays “Invalid token” followed by a lot of information (which I can post if it might help.)
Credentials method: I’ve tried both the menu-based approach where I entered the username and password at the prompt, as well as the `balena login --credentials --email xxx --password xxx" method. They both result in the following error:
UNABLE_TO_GET_ISSUER_CERT_LOCALLY: request to https://api.balena-cloud.com/login_ failed, reason: unable to get local issuer certificate FetchError: request to https://api.balena-cloud.com/login_ failed, reason: unable to get local issuer certificate
I can provide the rest of the large amount of output that goes with the error if that would help.
Any thoughts on what I’m doing wrong?