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

Request failed with status code 401. Please refresh the page if the issue continues. token invalid [AUTHENTIK] #1531

Open
barto95100 opened this issue Feb 5, 2024 · 4 comments
Labels

Comments

@barto95100
Copy link

when i test to login i received Request failed with status code 401. Please refresh the page if the issue continues.
token invalid

CleanShot 2024-02-05 at 19 03 24

I don't know why :( ... I loose all of my peer ....
but the connection netbird app work and access of peer work

@Fantu
Copy link
Contributor

Fantu commented Feb 6, 2024

I think that NETBIRD_MGMT_IDP_SIGNKEY_REFRESH=true to setup.env of your netbird self-hosted will avoid this

@barto95100
Copy link
Author

The problem is the same .... :(

@barto95100
Copy link
Author

I don't know what's happened but now i don't have the error message but nothing showed on dashboard....

for information I just change the authentik server ...

@Pshemas
Copy link

Pshemas commented Jul 27, 2024

Has anyone managed to solve it? Here's what I see in the logs:

2024-07-27T14:17:05Z DEBG management/server/account.go:1239: account cpk3ikv7g7ts73c049h0 not found in cache, reloading
2024-07-27T14:17:05Z DEBG management/server/idp/authentik.go:134: requesting new jwt token for authentik idp manager
2024-07-27T14:17:05Z ERRO [context: HTTP, requestID: d5349073-3a72-4293-bb39-0e4c7eb0844a] management/server/http/middleware/auth_middleware.go:89: Error when validating JWT claims: unable to get authentik token, statusCode 400
2024-07-27T14:17:05Z ERRO [requestID: d5349073-3a72-4293-bb39-0e4c7eb0844a, context: HTTP] management/server/http/util/util.go:81: got a handler error: token invalid
2024-07-27T14:17:05Z ERRO [requestID: d5349073-3a72-4293-bb39-0e4c7eb0844a, context: HTTP] management/server/telemetry/http_api_metrics.go:191: HTTP response d5349073-3a72-4293-bb39-0e4c7eb0844a: GET /api/users status 401
2024-07-27T14:17:05Z DEBG [context: HTTP, requestID: d5349073-3a72-4293-bb39-0e4c7eb0844a] management/server/telemetry/http_api_metrics.go:211: request GET /api/users took 304 ms and finished with status 401

And it's my current theme with Netbird - initially it works, then after a while I get this error. Tried updating geo db as suggested in one of the topics, added NETBIRD_MGMT_IDP_SIGNKEY_REFRESH=true etc - so far no luck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants