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

403 Error after logging in for the first time #1

Open
nucleardreamer opened this issue Jun 29, 2021 · 5 comments
Open

403 Error after logging in for the first time #1

nucleardreamer opened this issue Jun 29, 2021 · 5 comments
Assignees
Labels
bug Something isn't working question Further information is requested

Comments

@nucleardreamer
Copy link

After deploying to balena (with the basicstation also deployed), logging in with default admin/changeme on the main page gives back a 403 Forbidden: Token exchange refused, no option to do anything unless I blow away the cookies to get back to the login screen.

Also, trying to Create an account is erroring on the url https://null/api/v3/auth_info, but I'm pretty sure this is unrelated.

@nucleardreamer
Copy link
Author

I resolved this by adding my devices IP address as the TS_DOMAIN variable

@xoseperez
Copy link
Owner

xoseperez commented Jul 1, 2021

Hi
The code sets the default TS_DOMAIN to the first IP address in the LAN:

https://github.com/xoseperez/balena-tts-lns/blob/56e527cb27b5bc67e491dfe715c0e6910f493550/lorawan-stack/entrypoint.sh#L42

Maybe it got it wrong or you used a different IP (accessing via WiFi instead of ethernet, for instance)?

@xoseperez xoseperez self-assigned this Jul 1, 2021
@xoseperez xoseperez added question Further information is requested bug Something isn't working labels Jul 1, 2021
@mpous
Copy link
Collaborator

mpous commented Jul 1, 2021

@xoseperez looks like TTS_DOMAIN is null instead of having the IP_LAN value.

@xoseperez
Copy link
Owner

I have not been able to reproduce the issue consistently. Only once I've seen the same behaviour and it got solved after restarting the stack service. Maybe a race condition on getting an IP?

@mpous
Copy link
Collaborator

mpous commented Jul 8, 2021

This behaviour happens when you click Deploy with balena as the TTS_DOMAIN variable is only defined as null at the balena.yml contract.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants