Request failed with status code 401 Error: Token invalid

Describe the problem

I set up Netbird Self-Hosted on a vServer followed the Self-hosting quickstart guide (5 min) Already set up a user and logged in into Zitadel and Netbird with this user.

Made a manually backup like shown here: https://docs.netbird.io/selfhosted/selfhosted-quickstart#backup

After that I cant start Netbird any more.
I just get a black page with the netbird-loading-image and a message at the top
popping up all the time:

Request failed with status code 401

Error: Token invalid
Management-Log


2025-07-15T16:21:16Z ERRO [context: HTTP, requestID: XXXXXXXXd-XXXX-XXXX-XXXX-XXXXXXXXXXXX] management/server/http/util/util.go:85: got a handler error: token invalid
2025-07-15T16:21:16Z ERRO [context: HTTP, requestID: XXXXXXXXd-XXXX-XXXX-XXXX-XXXXXXXXXXXX] management/server/telemetry/http_api_metrics.go:189: HTTP response XXXXXXXXd-XXXX-XXXX-XXXX-XXXXXXXXXXXX: GET /api/users status 401
2025-07-15T16:21:17Z ERRO [context: HTTP, requestID: XXXXXXXXd-XXXX-XXXX-XXXX-XXXXXXXXXXXX] management/server/http/middleware/auth_middleware.go:69: Error when validating JWT: unable to get zitadel token, statusCode 400, zitadel: error: invalid_client error_description: client not found

To Reproduce

Steps to reproduce the behavior:

  1. Install Netbird
  2. Create user
  3. Log into Netbird
  4. Backup Netbird
  5. Log into Netbird
  6. See Error

Expected behavior

Log in Netbird like before manually taking a backup

Are you using NetBird Cloud?

Self-host NetBird’s control plane.

I am assuming you shut off the management interface before backing up, right? If not, try to restart everything by doing docker compose up -d --force-recreate in the installation folder. (Wherever you ran the script)

I did it like in the docs with

docker compose stop management
docker compose cp -a management:/var/lib/netbird/ backup/
docker compose start management

Copy and paste it to the terminal. Is it possible that the cp started before the management container was down?

Already tried to force a recreate with no luck.

Set it up new from the scratch, because it was a fresh setup.
Now it works again and I will set up my clients, groups and rules.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.