From 51d747597895e844209a820a5bbf42e7fcabf542 Mon Sep 17 00:00:00 2001 From: Krzysztof Nazarewski Date: Fri, 4 Jul 2025 19:42:53 +0200 Subject: [PATCH 1/3] troubleshooting-client.mdx: update `Client login failures` section --- src/pages/how-to/troubleshooting-client.mdx | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/pages/how-to/troubleshooting-client.mdx b/src/pages/how-to/troubleshooting-client.mdx index f63f9928..3d2caf70 100644 --- a/src/pages/how-to/troubleshooting-client.mdx +++ b/src/pages/how-to/troubleshooting-client.mdx @@ -340,14 +340,22 @@ You might get errors like below when trying to use Setup Key/different SSO user 2025-04-08T15:03:04+01:00 WARN client/server/server.go:267: failed login: rpc error: code = PermissionDenied desc = invalid user ``` + + Starting with the release `0.39.1+` the `invalid user` message is more descriptive: + `peer is already registered by a different User or a Setup Key` + + + The most notable examples of encountering the issue are: -- shared machines, +- a shared machine and/or machine previously logged in by somebody else, - a machine that was previously logged in using Setup Key, but now attempts SSO login, -- a machine\'s Peer got removed from the Dashboard without clearing the file, +- the user makes a mistake and selects - the user uses different browser/profile or selects the wrong account during SSO login at the start of the workday, -To resolve the issue, you will need to remove the file manually to use the machine as a different user/Setup Key while the NetBird client daemon is stopped: +If you know the exact previous Peer which was logged in, you can just delete it from Dashboard without doing anything else and attempt login again. + +Otherwise, to resolve the issue, you will need to remove the file manually to use the machine as a different user/Setup Key while the NetBird client daemon is stopped: 1. `netbird service stop` 2. `sudo rm /etc/netbird/config.json` (*nix) or `rm C:\ProgramData\netbird\config.json` (Windows) From 32e188fd5a7c9b60c266119b37cf047253597d3c Mon Sep 17 00:00:00 2001 From: "Krzysztof Nazarewski (kdn)" Date: Fri, 4 Jul 2025 21:33:36 +0200 Subject: [PATCH 2/3] Update troubleshooting-client.mdx --- src/pages/how-to/troubleshooting-client.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/how-to/troubleshooting-client.mdx b/src/pages/how-to/troubleshooting-client.mdx index 3d2caf70..38e68c79 100644 --- a/src/pages/how-to/troubleshooting-client.mdx +++ b/src/pages/how-to/troubleshooting-client.mdx @@ -341,7 +341,7 @@ You might get errors like below when trying to use Setup Key/different SSO user ``` - Starting with the release `0.39.1+` the `invalid user` message is more descriptive: + Starting with the release `0.50.0+` the `invalid user` message is more descriptive: `peer is already registered by a different User or a Setup Key` From 4daa901063fc96df603ad8a7e9fb8588844e1728 Mon Sep 17 00:00:00 2001 From: "Krzysztof Nazarewski (kdn)" Date: Fri, 4 Jul 2025 21:34:02 +0200 Subject: [PATCH 3/3] Update troubleshooting-client.mdx --- src/pages/how-to/troubleshooting-client.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/how-to/troubleshooting-client.mdx b/src/pages/how-to/troubleshooting-client.mdx index 38e68c79..d92304d9 100644 --- a/src/pages/how-to/troubleshooting-client.mdx +++ b/src/pages/how-to/troubleshooting-client.mdx @@ -341,7 +341,7 @@ You might get errors like below when trying to use Setup Key/different SSO user ``` - Starting with the release `0.50.0+` the `invalid user` message is more descriptive: + Starting with the release `0.50.0` the `invalid user` message is more descriptive: `peer is already registered by a different User or a Setup Key`