Skip to content
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

Unable to login using ttn-lw-cli login command #1538

Closed
emilppeter opened this issue Nov 1, 2019 · 6 comments
Closed

Unable to login using ttn-lw-cli login command #1538

emilppeter opened this issue Nov 1, 2019 · 6 comments
Labels
works as intended This is working as intended

Comments

@emilppeter
Copy link

Hi ,
I am trying to start up things network stack using the github repository on my ubuntu environment following the instructions on this link https://github.com/TheThingsNetwork/lorawan-stack/blob/master/DEVELOPMENT.md. So after building ttn-lw-cli, when I try to do a “go run ./cmd/ttn-lw-cli login” I get the following error:
ERROR Please login with the login command
INFO Opening your browser on https://localhost:8885/oauth/authorize?client_id=cli&redirect_uri=local-callback&response_type=code
INFO After logging in and authorizing the CLI, we’ll get an access token for future commands.
INFO Waiting for your authorization…
The webpage pops up but it doesn’t load. Could you please help me out on it? Please let me know what I am doing wrong. Thanks in advance.
Emil Peter

@rvolosatovs
Copy link
Contributor

Have you successfully built the frontend before trying to login?

mage js:build

@rvolosatovs rvolosatovs added the documentation This involves writing user documentation label Nov 4, 2019
@emilppeter
Copy link
Author

Thanks for replying. Yes I have successfully rebuilt the frontend.

@johanstokking
Copy link
Member

Does it work now?

The order is mage js:build, then go run ./cmd/ttn-lw-stack start, then go run ./cmd/ttn-lw-cli login in a different terminal.

@emilppeter
Copy link
Author

Thanks @johanstokking . It worked!!

@johanstokking johanstokking added works as intended This is working as intended and removed documentation This involves writing user documentation labels Nov 6, 2019
@emilppeter
Copy link
Author

I am sorry. After logging in and proceeding further, when I try to execute the following command as described in getting started document: go run ./cmd/ttn-lw-cli gateways list-frequency-plans,I get the following error:
WARN grpc: addrConn.createTransport failed to connect to {localhost:8884 0 }. Err :connection error: desc = "transport: authentication handshake failed: x509: certificate signed by unknown authority". Reconnecting...
Please help me out on this.Thanks in advance.

@emilppeter emilppeter reopened this Nov 6, 2019
@johanstokking
Copy link
Member

@emilppeter this is a separate issue. Please open a new issue.

To fix this, please set TTN_LW_CA=cert.pem in env or pass --ca cert.pem (or at least what you have configured as self-signed cert)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
works as intended This is working as intended
Projects
None yet
Development

No branches or pull requests

3 participants