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

Windows Client Error: rpc error: code = PermissionDenied desc = invalid user #3158

Open
samf-acacia opened this issue Jan 7, 2025 · 11 comments

Comments

@samf-acacia
Copy link

Describe the problem

A subset of Windows 11 users in our environment are having trouble connecting to our self-hosted Netbird instance. We also run Ubuntu Desktop clients, but this issue doesn't affect those devices. We run Microsoft Entra-ID for SAML/SSO authentication to connect.

When a user (who is having the issue) attempts to connect to the Netbird from Windows, they are forwarded to the Entra login page and manage to successfully authenticate, and are presented with the "Login Successful" page from Netbird. After about 15-20 seconds Netbird time out and they get the error:

rpc error: code = PermissionDenied desc = invalid user

Tried to search past issues, but couldn't find anything related to this specific issue.

The user does show up in the Management portal (successful login??) of our instance, tried removing and reconnecting, but that didn't work.

To Reproduce

Steps to reproduce the behavior:

  1. Go to Netbird VPN client and attempt to connect
  2. Log in using Entra ID credentials
  3. Wait 15-20 seconds for the client to time out
  4. See error rpc error: code = PermissionDenied desc = invalid user

Expected behavior

A successful connection to our Netbird instance since it shows Login Successful.

Are you using NetBird Cloud?

Self hosting Netbird

NetBird version

v0.35.2 on Server and Clients

Do you face any (non-mobile) client issues?

This is specifically a Windows 11 client issue

Screenshots

image

@d-givens
Copy link

d-givens commented Jan 10, 2025

Having the exact same problem with one user. Entra ID. Self-hosted. Same issues. But only one user. 20 other users are fine.

@farezramilo
Copy link

I had the same issue in the free tier, but it seemed like the issue was caused by the user's machine itself. The user's machine was included in another free tier group, having that machine removed everywhere else except my group fixed the issue. Maybe if a machine is included in a free tier it can't be included elsewhere?

@d-givens
Copy link

I had the same issue in the free tier, but it seemed like the issue was caused by the user's machine itself. The user's machine was included in another free tier group, having that machine removed everywhere else except my group fixed the issue. Maybe if a machine is included in a free tier it can't be included elsewhere?

We're both self-hosted instead of free tier.

@K0-RR
Copy link

K0-RR commented Jan 11, 2025

I'm having the same issue on Ubuntu 22.04 (free tier) so it's not Windows-related.

@samf-acacia
Copy link
Author

@d-givens The exact same problem.............

Except 3 users in about 20 users see this problem.

@bsmithuk
Copy link

Same bandwagon but on Fedora 41.

@sergeycherepanov
Copy link

sergeycherepanov commented Jan 13, 2025

macos - same issue, the issue appears in case when the same peer already exists by another user. In my case I was authenticated as admin previously.

@samf-acacia
Copy link
Author

macos - same issue, the issue appears in case when the same peer already exists by another user. In my case I was authenticated as admin previously.

Yeah we tried this but were still getting the same error :(

@bsmithuk
Copy link

Fix for me was absolutely nuking the install and rm any directories connected to netbird and disconnecting tailscale. Fixed it for me.

@d-givens
Copy link

Fix for me was absolutely nuking the install and rm any directories connected to netbird and disconnecting tailscale. Fixed it for me.

This is on the client side that you're removing the install?

@bsmithuk
Copy link

bsmithuk commented Jan 17, 2025 via email

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

No branches or pull requests

6 participants