Switching between profiles requeres clearing cookies #2245

Open
opened 2025-11-20 07:06:26 -05:00 by saavagebueno · 0 comments
Owner

Originally created by @jakob1379 on GitHub (Sep 5, 2025).

Describe the problem

I have two profiles. Switching from one to another with

❯ netbird up --profile theSecond
Warning: Config flag is deprecated on up command, it should be set as a service argument with $NB_CONFIG environment or with "-config" flag; netbird service reconfigure --service-env="NB_CONFIG=<file_path>" or netbird service run --config=<file_path>
Please do the SSO login in your browser.
If your browser didn't open automatically, use this URL to log in:

https://login.netbird.io/authorize?audience=https%3A%2F%2Fapp.wiretrustee.com%2F&client_id=x3KvnKHEDY2j3b0n0wLq4eu8SiPDKq6o&code_challenge=t_zwamfUDtyO8ZONXeobAetk8YO6AE7OYwY8JLcBir0&code_challenge_method=S256&redirect_uri=http%3A%2F%2Flocalhost%3A53000%2F&response_type=code&scope=openid+profile+email+offline_access+api+email_verified&state=c28d402463ac13a1ab871ae806330d209d2aae019e9bc675

Error: daemon up failed: sso login failed: waiting sso login failed with: rpc error: code = PermissionDenied desc = peer is already registered by a different User or a Setup Key

To Reproduce

Steps to reproduce the behavior:

  1. netbird up --profile theFirst
  2. authenticate
  3. netbird up --profile theSecond
  4. See error

Expected behavior

It wors if the auth windows opens in a separate tab container or if i clear the cookies so the previous session is logged out.

Are you using NetBird Cloud?

yes

NetBird version

0.55.1 (newest is not available on nix-unstable yet :( )

Is any other VPN software installed?

no

Debug output

❯ netbird status -dA
Daemon status: LoginFailed

Run UP command to log in with SSO (interactive login):

 netbird up

If you are running a self-hosted version and no SSO provider has been configured in your Management Server,
you can use a setup-key:

 netbird up --management-url <YOUR_MANAGEMENT_URL> --setup-key <YOUR_SETUP_KEY>

More info: https://docs.netbird.io/how-to/register-machines-using-setup-keys

Create and upload a debug bundle, and share the returned file key:

f79e391890ab27fb37c88b3b4be7011e22aa2e5ca6f38ffa9c4481884941f726/3cf78de2-925f-4ddf-9305-69257b7da1bb

Have you tried these troubleshooting steps?

  • Reviewed client troubleshooting (if applicable)
  • Checked for newer NetBird versions
  • Searched for similar issues on GitHub (including closed ones)
  • Restarted the NetBird client
  • Disabled other VPN software
  • Checked firewall settings
Originally created by @jakob1379 on GitHub (Sep 5, 2025). **Describe the problem** I have two profiles. Switching from one to another with ``` ❯ netbird up --profile theSecond Warning: Config flag is deprecated on up command, it should be set as a service argument with $NB_CONFIG environment or with "-config" flag; netbird service reconfigure --service-env="NB_CONFIG=<file_path>" or netbird service run --config=<file_path> Please do the SSO login in your browser. If your browser didn't open automatically, use this URL to log in: https://login.netbird.io/authorize?audience=https%3A%2F%2Fapp.wiretrustee.com%2F&client_id=x3KvnKHEDY2j3b0n0wLq4eu8SiPDKq6o&code_challenge=t_zwamfUDtyO8ZONXeobAetk8YO6AE7OYwY8JLcBir0&code_challenge_method=S256&redirect_uri=http%3A%2F%2Flocalhost%3A53000%2F&response_type=code&scope=openid+profile+email+offline_access+api+email_verified&state=c28d402463ac13a1ab871ae806330d209d2aae019e9bc675 Error: daemon up failed: sso login failed: waiting sso login failed with: rpc error: code = PermissionDenied desc = peer is already registered by a different User or a Setup Key ``` **To Reproduce** Steps to reproduce the behavior: 1. `netbird up --profile theFirst` 2. authenticate 3. `netbird up --profile theSecond` 4. See error **Expected behavior** It wors if the auth windows opens in a separate tab container or if i clear the cookies so the previous session is logged out. **Are you using NetBird Cloud?** yes **NetBird version** 0.55.1 (newest is not available on nix-unstable yet :( ) **Is any other VPN software installed?** no **Debug output** ```bash ❯ netbird status -dA Daemon status: LoginFailed Run UP command to log in with SSO (interactive login): netbird up If you are running a self-hosted version and no SSO provider has been configured in your Management Server, you can use a setup-key: netbird up --management-url <YOUR_MANAGEMENT_URL> --setup-key <YOUR_SETUP_KEY> More info: https://docs.netbird.io/how-to/register-machines-using-setup-keys ``` Create and upload a debug bundle, and share the returned file key: `f79e391890ab27fb37c88b3b4be7011e22aa2e5ca6f38ffa9c4481884941f726/3cf78de2-925f-4ddf-9305-69257b7da1bb` **Have you tried these troubleshooting steps?** - [x] Reviewed [client troubleshooting](https://docs.netbird.io/how-to/troubleshooting-client) (if applicable) - [x] Checked for newer NetBird versions - [x] Searched for similar issues on GitHub (including closed ones) - [x] Restarted the NetBird client - [x] Disabled other VPN software - [x] Checked firewall settings
saavagebueno added the clienttriage-needed labels 2025-11-20 07:06:26 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#2245