How to completely clear client config on Mac? #2242

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

Originally created by @drewhemm on GitHub (Sep 2, 2025).

Describe the problem

We have a Mac user who installed the Netbird client and initially used a setup key to connect to our self-hosted instance. We have now created a SSO user for them, but we seem unable to remove all traces of the previous configuration from the Mac. We have tried deleting /etc/netbird/config.json and /var/lib/netbird/*, uninstalled and reinstalled the client, but it still remembers things like previous profile names. What are we missing?

To Reproduce

Steps to reproduce the behavior:

  1. Install Netbird client
  2. Add and/or configure a profile
  3. Remove config files
  4. Uninstall and reinstall client
  5. You will still see the profiles from the previous install

Expected behavior

I expect a removal of config files and a reinstall of the app to produce a completely clean slate.

In this specific instance, the client is unable to connect, quite possibly because it still remembers details from the previous authentication method.

Are you using NetBird Cloud?

Self-hosted NetBird control plane.

NetBird version

v0.55.1

Is any other VPN software installed?

No

Debug output

To help us resolve the problem, please attach the following anonymized status output

netbird status -dA

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

netbird debug for 1m -AS -U

Uploaded files are automatically deleted after 30 days.

Alternatively, create the file only and attach it here manually:

netbird debug for 1m -AS

Debug output to follow.

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

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 @drewhemm on GitHub (Sep 2, 2025). **Describe the problem** We have a Mac user who installed the Netbird client and initially used a setup key to connect to our self-hosted instance. We have now created a SSO user for them, but we seem unable to remove all traces of the previous configuration from the Mac. We have tried deleting `/etc/netbird/config.json` and `/var/lib/netbird/*`, uninstalled and reinstalled the client, but it still remembers things like previous profile names. What are we missing? **To Reproduce** Steps to reproduce the behavior: 1. Install Netbird client 2. Add and/or configure a profile 3. Remove config files 4. Uninstall and reinstall client 5. You will still see the profiles from the previous install **Expected behavior** I expect a removal of config files and a reinstall of the app to produce a completely clean slate. In this specific instance, the client is unable to connect, quite possibly because it still remembers details from the previous authentication method. **Are you using NetBird Cloud?** Self-hosted NetBird control plane. **NetBird version** v0.55.1 **Is any other VPN software installed?** No **Debug output** To help us resolve the problem, please attach the following anonymized status output netbird status -dA Create and upload a debug bundle, and share the returned file key: netbird debug for 1m -AS -U *Uploaded files are automatically deleted after 30 days.* Alternatively, create the file only and attach it here manually: netbird debug for 1m -AS Debug output to follow. **Screenshots** If applicable, add screenshots to help explain your problem. **Additional context** Add any other context about the problem here. **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 - [ ] Disabled other VPN software - [ ] Checked firewall settings
saavagebueno added the triage-needed label 2025-11-20 07:06:25 -05:00
Author
Owner

@SamZekeria commented on GitHub (Sep 2, 2025):

Here is the netbird status -dA output:

2025-09-02T21:18:11+03:00 INFO ./caller_not_available:0: 2025/09/02 21:18:11 WARNING: [core] [Channel #1 SubChannel #2]grpc: addrConn.createTransport failed to connect to {Addr: "/var/run/netbird.sock", ServerName: "localhost", Attributes: {"<%!p(networktype.keyType=grpc.internal.transport.networktype)>": "unix" }, }. Err: connection error: desc = "transport: Error while dialing: dial unix /var/run/netbird.sock: connect: no such file or directory"
2025-09-02T21:18:12+03:00 INFO ./caller_not_available:0: 2025/09/02 21:18:12 WARNING: [core] [Channel #1 SubChannel #2]grpc: addrConn.createTransport failed to connect to {Addr: "/var/run/netbird.sock", ServerName: "localhost", Attributes: {"<%!p(networktype.keyType=grpc.internal.transport.networktype)>": "unix" }, }. Err: connection error: desc = "transport: Error while dialing: dial unix /var/run/netbird.sock: connect: no such file or directory"
2025-09-02T21:18:13+03:00 INFO ./caller_not_available:0: 2025/09/02 21:18:13 WARNING: [core] [Channel #1 SubChannel #2]grpc: addrConn.createTransport failed to connect to {Addr: "/var/run/netbird.sock", ServerName: "localhost", Attributes: {"<%!p(networktype.keyType=grpc.internal.transport.networktype)>": "unix" }, }. Err: connection error: desc = "transport: Error while dialing: dial unix /var/run/netbird.sock: connect: no such file or directory"
Error: failed to connect to daemon error: context deadline exceeded
If the daemon is not running please run:
netbird service install
netbird service start

@SamZekeria commented on GitHub (Sep 2, 2025): Here is the `netbird status -dA` output: 2025-09-02T21:18:11+03:00 INFO ./caller_not_available:0: 2025/09/02 21:18:11 WARNING: [core] [Channel #1 SubChannel #2]grpc: addrConn.createTransport failed to connect to {Addr: "/var/run/netbird.sock", ServerName: "localhost", Attributes: {"<%!p(networktype.keyType=grpc.internal.transport.networktype)>": "unix" }, }. Err: connection error: desc = "transport: Error while dialing: dial unix /var/run/netbird.sock: connect: no such file or directory" 2025-09-02T21:18:12+03:00 INFO ./caller_not_available:0: 2025/09/02 21:18:12 WARNING: [core] [Channel #1 SubChannel #2]grpc: addrConn.createTransport failed to connect to {Addr: "/var/run/netbird.sock", ServerName: "localhost", Attributes: {"<%!p(networktype.keyType=grpc.internal.transport.networktype)>": "unix" }, }. Err: connection error: desc = "transport: Error while dialing: dial unix /var/run/netbird.sock: connect: no such file or directory" 2025-09-02T21:18:13+03:00 INFO ./caller_not_available:0: 2025/09/02 21:18:13 WARNING: [core] [Channel #1 SubChannel #2]grpc: addrConn.createTransport failed to connect to {Addr: "/var/run/netbird.sock", ServerName: "localhost", Attributes: {"<%!p(networktype.keyType=grpc.internal.transport.networktype)>": "unix" }, }. Err: connection error: desc = "transport: Error while dialing: dial unix /var/run/netbird.sock: connect: no such file or directory" Error: failed to connect to daemon error: context deadline exceeded If the daemon is not running please run: netbird service install netbird service start
Author
Owner

@nazarewk commented on GitHub (Sep 2, 2025):

@drewhemm Are you sure you have stopped the client service with netbird service stop and closed/killed all the NetBird UI apps that might be running before deleting the configuration? I did similar "clean slate" setups a few times this week without any issues.

@nazarewk commented on GitHub (Sep 2, 2025): @drewhemm Are you sure you have stopped the client service with `netbird service stop` and closed/killed all the NetBird UI apps that might be running before deleting the configuration? I did similar "clean slate" setups a few times this week without any issues.
Author
Owner

@clarkmcc commented on GitHub (Oct 8, 2025):

Noticed this as well on Linux. Is there a reason that apt-get remove -y netbird doesn't clear everything out? I found on Linux that even after uninstallation and re-installation, the agent would remember the previously used management URL so I couldn't change it.

@clarkmcc commented on GitHub (Oct 8, 2025): Noticed this as well on Linux. Is there a reason that `apt-get remove -y netbird` doesn't clear everything out? I found on Linux that even after uninstallation and re-installation, the agent would remember the previously used management URL so I couldn't change it.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#2242