netbird: Error: Request failed with status code 401. Please refresh the page if the issue continues. invalid jwt
Describe the problem
After upgrading from v0.14.4 to v0.21.3 I am unable to access the dashboard and get this error:
I suspect this is related to the new IdP changes but I am not sure what.
To Reproduce Steps to reproduce the behavior:
- Pull latest
https://github.com/netbirdio/netbird.git - Copy
infrastructure_files/setup.env.templatetoinfrastructure_files/setup.env(overwrite existing file from old version) - Fill in correct values noting these changes:
- Generate a client secret for the
netbird-clientin Keycloak andNETBIRD_AUTH_CLIENT_SECRET - Create a new client
netbird-backendand follow the steps here: https://docs.netbird.io/selfhosted/identity-providers#step-8-create-a-net-bird-backend-client
- Generate a client secret for the
- Re-run
./configure.sh - Run
docker compose pull && docker compose down && docker compose up -d
Expected behavior
Things work as they used to
Additional context
I tried setting NETBIRD_MGMT_IDP="none" and the dashboard loads but no clients can connect with this error:
netbird up --management-url https://netbird.XXX:33073 --admin-url https://netbird.XXX:443
Error: login failed: rpc error: code = NotFound desc = no SSO provider returned from management. If you are using hosting Netbird see documentation at https://github.com/netbirdio/netbird/tree/main/management for details
About this issue
- Original URL
- State: open
- Created a year ago
- Comments: 16
Hello @NatureLR, the issue has been fixed in the latest version, you can run
docker compose pullfollowed bydocker compose up -d --force-recreate managementto upgrade.The IDP manager is mainly mapping user IDs from netbird management system to emails from your IDP
It needs permissions to update your IDP user’s attributes, like it adds the netbird account ID to a user.