can't run multiple instances of netbird ui on different sockets #1864

Open
opened 2025-11-20 06:08:11 -05:00 by saavagebueno · 6 comments
Owner

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

Describe the problem

I have multiple netbird tunnels which works using systemd-resolv, but I can't start netbird UIs for each tunnel

To Reproduce

create two or netbird setups, start netbird-ui for each tunnel:

❯ /nix/store/jcb5a2n10pky18y4fp9r981qls8qx7fq-netbird-0.43.1/bin/netbird-ui  --daemon-addr=unix:///var/run/netbird-homelab/sock
INFO[0000] subscribed to daemon events

# ---------- in other shell ----------

❯ /nix/store/jcb5a2n10pky18y4fp9r981qls8qx7fq-netbird-0.43.1/bin/netbird-ui  --daemon-addr=unix:///var/run/netbird/sock
WARN[0000] another process is running

Expected behavior

Since tunnel work I expect one UI pr tunnel to work as well.

Are you using NetBird Cloud?

Yes

NetBird version

0.43.1

Is any other VPN software installed?

No

Debug output

To help us resolve the problem, please attach the following debug output

❯ netbird status -dA
Peers detail:
 fuzie-pc-1.netbird.cloud:
  NetBird IP: 100.95.150.185/32
  Public key: I0wy9eR8utgBGpJSvY6ocBaKdF0FmhZc2h8JJ6bjnQw=
  Status: Disconnected
  -- detail --
  Connection type:
  ICE candidate (Local/Remote): -/-
  ICE candidate endpoints (Local/Remote): -/-
  Relay server address:
  Last connection update: 9 minutes, 13 seconds ago
  Last WireGuard handshake: -
  Transfer status (received/sent) 0 B/0 B
  Quantum resistance: false
  Networks: -
  Latency: 0s

 cph2449eea-1.netbird.cloud:
  NetBird IP: 100.95.42.41/32
  Public key: 0pAXZFyyyMZ7NBLFoXBExfckviJWFYv6EpGr5Ev4ET8=
  Status: Disconnected
  -- detail --
  Connection type:
  ICE candidate (Local/Remote): -/-
  ICE candidate endpoints (Local/Remote): -/-
  Relay server address:
  Last connection update: 9 minutes, 13 seconds ago
  Last WireGuard handshake: -
  Transfer status (received/sent) 0 B/0 B
  Quantum resistance: false
  Networks: -
  Latency: 0s

 beszel-gateway.netbird.cloud:
  NetBird IP: 100.95.87.130
  Public key: wjuVvmvbnzYhxjR+LTgJ/quZJEW2cOFLYATMHHhQWzw=
  Status: Connected
  -- detail --
  Connection type: Relayed
  ICE candidate (Local/Remote): -/-
  ICE candidate endpoints (Local/Remote): -/-
  Relay server address: rels://streamline-fi-hel1-1.relay.netbird.io:443
  Last connection update: 9 minutes, 12 seconds ago
  Last WireGuard handshake: 1 minute, 17 seconds ago
  Transfer status (received/sent) 1.1 KiB/816 B
  Quantum resistance: false
  Networks: -
  Latency: 0s

 raspberrypi.netbird.cloud:
  NetBird IP: 100.95.228.181
  Public key: GTHLj50K31A1E9XOs1+Sca3ED/S/cqdul7N9MPK49xc=
  Status: Connected
  -- detail --
  Connection type: Relayed
  ICE candidate (Local/Remote): -/-
  ICE candidate endpoints (Local/Remote): -/-
  Relay server address: rels://streamline-fi-hel1-0.relay.netbird.io:443
  Last connection update: 9 minutes, 12 seconds ago
  Last WireGuard handshake: 1 minute, 43 seconds ago
  Transfer status (received/sent) 126.8 KiB/39.9 KiB
  Quantum resistance: false
  Networks: 192.168.8.1/32
  Latency: 0s

Events:
  [WARNING] DNS (263ec329-813c-4e43-87b9-e415264657eb)
    Message: All upstream servers failed (probe failed)
    Time: 3 days, 2 hours ago
    Metadata: upstreams: 100.95.228.181:53
  [WARNING] DNS (bf49ee0e-13c6-4a1d-bb86-14fbec81f552)
    Message: All upstream servers failed (probe failed)
    Time: 3 days, 2 hours ago
    Metadata: upstreams: 100.95.228.181:53
  [INFO] SYSTEM (05df0ff6-8005-4d5b-9237-3b15f382edb8)
    Message: Network map updated
    Time: 3 days, 2 hours ago
  [WARNING] DNS (9be57b95-8a6c-4607-b95d-db0c2177ff62)
    Message: All upstream servers failed (probe failed)
    Time: 2 days, 20 hours ago
    Metadata: upstreams: 100.95.228.181:53
  [WARNING] DNS (727d0a61-9d74-4b2a-9f1e-96cf8c38513b)
    Message: All upstream servers failed (probe failed)
    Time: 2 days, 20 hours ago
    Metadata: upstreams: 100.95.228.181:53
  [INFO] SYSTEM (377e4333-1eb2-4175-9861-b4e9383aa934)
    Message: Network map updated
    Time: 2 days, 20 hours ago
  [WARNING] DNS (c143ada6-e136-427e-a681-c09470f0ca57)
    Message: All upstream servers failed (fail count exceeded)
    Time: 16 minutes, 9 seconds ago
    Metadata: upstreams: 1.1.1.1:53, 1.0.0.1:53
  [WARNING] DNS (07399363-32fa-466f-a08c-7a84dfab538b)
    Message: All upstream servers failed (probe failed)
    Time: 9 minutes, 13 seconds ago
    Metadata: upstreams: 100.95.228.181:53
  [WARNING] DNS (2e43083f-f236-4375-9813-e81f9dc6a2ed)
    Message: All upstream servers failed (probe failed)
    Time: 9 minutes, 13 seconds ago
    Metadata: upstreams: 100.95.228.181:53
  [INFO] SYSTEM (ccd39f35-1ff4-4b5d-96ef-72ae744a93c5)
    Message: Network map updated
    Time: 9 minutes, 13 seconds ago
OS: linux/amd64
Daemon version: 0.43.1
CLI version: 0.43.1
Management: Connected to https://api.netbird.io:443
Signal: Connected to https://signal.netbird.io:443
Relays:
  [stun:stun.netbird.io:5555] is Available
  [turns:turn.netbird.io:443?transport=tcp] is Available
  [rels://streamline-fi-hel1-0.relay.netbird.io:443] is Available
Nameservers:
  [100.95.228.181:53] for [anon-ocAim.domain, anon-U1uoh.domain] is Available
  [1.1.1.1:53, 1.0.0.1:53] for [.] is Available
FQDN: ku.netbird.cloud
NetBird IP: 100.95.242.82/16
Interface type: Kernel
Quantum resistance: false
Networks: -
Forwarding rules: 0
Peers count: 2/4 Connected

Additional context

Add any other context about the problem here.

Have you tried these troubleshooting steps?

  • Checked for newer NetBird versions
  • Searched for similar issues on GitHub (including closed ones)
  • Restarted the NetBird client
  • Checked firewall settings
Originally created by @jakob1379 on GitHub (May 5, 2025). **Describe the problem** I have multiple netbird tunnels which works using systemd-resolv, but I can't start netbird UIs for each tunnel **To Reproduce** create two or netbird setups, start netbird-ui for each tunnel: ```bash ❯ /nix/store/jcb5a2n10pky18y4fp9r981qls8qx7fq-netbird-0.43.1/bin/netbird-ui --daemon-addr=unix:///var/run/netbird-homelab/sock INFO[0000] subscribed to daemon events # ---------- in other shell ---------- ❯ /nix/store/jcb5a2n10pky18y4fp9r981qls8qx7fq-netbird-0.43.1/bin/netbird-ui --daemon-addr=unix:///var/run/netbird/sock WARN[0000] another process is running ``` **Expected behavior** Since tunnel work I expect one UI pr tunnel to work as well. **Are you using NetBird Cloud?** Yes **NetBird version** `0.43.1` **Is any other VPN software installed?** No **Debug output** To help us resolve the problem, please attach the following debug output ``` bash ❯ netbird status -dA Peers detail: fuzie-pc-1.netbird.cloud: NetBird IP: 100.95.150.185/32 Public key: I0wy9eR8utgBGpJSvY6ocBaKdF0FmhZc2h8JJ6bjnQw= Status: Disconnected -- detail -- Connection type: ICE candidate (Local/Remote): -/- ICE candidate endpoints (Local/Remote): -/- Relay server address: Last connection update: 9 minutes, 13 seconds ago Last WireGuard handshake: - Transfer status (received/sent) 0 B/0 B Quantum resistance: false Networks: - Latency: 0s cph2449eea-1.netbird.cloud: NetBird IP: 100.95.42.41/32 Public key: 0pAXZFyyyMZ7NBLFoXBExfckviJWFYv6EpGr5Ev4ET8= Status: Disconnected -- detail -- Connection type: ICE candidate (Local/Remote): -/- ICE candidate endpoints (Local/Remote): -/- Relay server address: Last connection update: 9 minutes, 13 seconds ago Last WireGuard handshake: - Transfer status (received/sent) 0 B/0 B Quantum resistance: false Networks: - Latency: 0s beszel-gateway.netbird.cloud: NetBird IP: 100.95.87.130 Public key: wjuVvmvbnzYhxjR+LTgJ/quZJEW2cOFLYATMHHhQWzw= Status: Connected -- detail -- Connection type: Relayed ICE candidate (Local/Remote): -/- ICE candidate endpoints (Local/Remote): -/- Relay server address: rels://streamline-fi-hel1-1.relay.netbird.io:443 Last connection update: 9 minutes, 12 seconds ago Last WireGuard handshake: 1 minute, 17 seconds ago Transfer status (received/sent) 1.1 KiB/816 B Quantum resistance: false Networks: - Latency: 0s raspberrypi.netbird.cloud: NetBird IP: 100.95.228.181 Public key: GTHLj50K31A1E9XOs1+Sca3ED/S/cqdul7N9MPK49xc= Status: Connected -- detail -- Connection type: Relayed ICE candidate (Local/Remote): -/- ICE candidate endpoints (Local/Remote): -/- Relay server address: rels://streamline-fi-hel1-0.relay.netbird.io:443 Last connection update: 9 minutes, 12 seconds ago Last WireGuard handshake: 1 minute, 43 seconds ago Transfer status (received/sent) 126.8 KiB/39.9 KiB Quantum resistance: false Networks: 192.168.8.1/32 Latency: 0s Events: [WARNING] DNS (263ec329-813c-4e43-87b9-e415264657eb) Message: All upstream servers failed (probe failed) Time: 3 days, 2 hours ago Metadata: upstreams: 100.95.228.181:53 [WARNING] DNS (bf49ee0e-13c6-4a1d-bb86-14fbec81f552) Message: All upstream servers failed (probe failed) Time: 3 days, 2 hours ago Metadata: upstreams: 100.95.228.181:53 [INFO] SYSTEM (05df0ff6-8005-4d5b-9237-3b15f382edb8) Message: Network map updated Time: 3 days, 2 hours ago [WARNING] DNS (9be57b95-8a6c-4607-b95d-db0c2177ff62) Message: All upstream servers failed (probe failed) Time: 2 days, 20 hours ago Metadata: upstreams: 100.95.228.181:53 [WARNING] DNS (727d0a61-9d74-4b2a-9f1e-96cf8c38513b) Message: All upstream servers failed (probe failed) Time: 2 days, 20 hours ago Metadata: upstreams: 100.95.228.181:53 [INFO] SYSTEM (377e4333-1eb2-4175-9861-b4e9383aa934) Message: Network map updated Time: 2 days, 20 hours ago [WARNING] DNS (c143ada6-e136-427e-a681-c09470f0ca57) Message: All upstream servers failed (fail count exceeded) Time: 16 minutes, 9 seconds ago Metadata: upstreams: 1.1.1.1:53, 1.0.0.1:53 [WARNING] DNS (07399363-32fa-466f-a08c-7a84dfab538b) Message: All upstream servers failed (probe failed) Time: 9 minutes, 13 seconds ago Metadata: upstreams: 100.95.228.181:53 [WARNING] DNS (2e43083f-f236-4375-9813-e81f9dc6a2ed) Message: All upstream servers failed (probe failed) Time: 9 minutes, 13 seconds ago Metadata: upstreams: 100.95.228.181:53 [INFO] SYSTEM (ccd39f35-1ff4-4b5d-96ef-72ae744a93c5) Message: Network map updated Time: 9 minutes, 13 seconds ago OS: linux/amd64 Daemon version: 0.43.1 CLI version: 0.43.1 Management: Connected to https://api.netbird.io:443 Signal: Connected to https://signal.netbird.io:443 Relays: [stun:stun.netbird.io:5555] is Available [turns:turn.netbird.io:443?transport=tcp] is Available [rels://streamline-fi-hel1-0.relay.netbird.io:443] is Available Nameservers: [100.95.228.181:53] for [anon-ocAim.domain, anon-U1uoh.domain] is Available [1.1.1.1:53, 1.0.0.1:53] for [.] is Available FQDN: ku.netbird.cloud NetBird IP: 100.95.242.82/16 Interface type: Kernel Quantum resistance: false Networks: - Forwarding rules: 0 Peers count: 2/4 Connected ``` **Additional context** Add any other context about the problem here. **Have you tried these troubleshooting steps?** - [x] Checked for newer NetBird versions - [x] Searched for similar issues on GitHub (including closed ones) - [x] Restarted the NetBird client - [x] Checked firewall settings
saavagebueno added the netbird-uiclient-ui labels 2025-11-20 06:08:11 -05:00
Author
Owner

@nazarewk commented on GitHub (May 6, 2025):

The netbird-ui process checks whether there is another process on the system using the same binary and exits if it finds one. You would need to rename the UI binary to make multiple instances work.

@nazarewk commented on GitHub (May 6, 2025): The `netbird-ui` process checks whether there is another process on the system using the same binary and exits if it finds one. You would need to rename the UI binary to make multiple instances work.
Author
Owner

@jakob1379 commented on GitHub (May 6, 2025):

I run this setup on nixos using the nix config for Netbird on unstable defining multiple clients, which uses the wrapper library. I thought this actually did this already, but apperently not.

@jakob1379 commented on GitHub (May 6, 2025): I run this setup on nixos using the nix config for Netbird on unstable defining multiple clients, which uses the wrapper library. I thought this actually did this already, but apperently not.
Author
Owner

@nazarewk commented on GitHub (May 7, 2025):

I thought this actually did this already, but apperently not.

This is a relatively new addition (10 months) compared to the NixOS module, which is not officially supported (I wrote it ~3 years ago, started upstreaming ~2 years ago, then barely touched it after that).

For NixOS specifically, it would be great if you could add an intermediate symlink at the wrapper and confirm whether it works.

I've checked the process name gets changed when using symlinks, you'll just need to make sure the basename is different for each instance:

kdn@brys ~/d/g/n/netbird-support (main)> cat -n args.py 
     1  #!/usr/bin/env python
     2  from pprint import pprint
     3  import sys
     4  
     5  pprint(list(enumerate(sys.argv)))
kdn@brys ~/d/g/n/netbird-support (main)> ln -s args.py args-renamed.py
kdn@brys ~/d/g/n/netbird-support (main)> ./args.py
[(0, './args.py')]
kdn@brys ~/d/g/n/netbird-support (main)> ./args-renamed.py
[(0, './args-renamed.py')]
@nazarewk commented on GitHub (May 7, 2025): > I thought this actually did this already, but apperently not. This is [a relatively new addition](https://github.com/netbirdio/netbird/blame/ac135ab11dd4001b40bb47db97fcedbdde259f88/client/ui/process/process.go#L19-L19) (10 months) compared to the NixOS module, which is not officially supported (I wrote it ~3 years ago, started upstreaming ~2 years ago, then barely touched it after that). For NixOS specifically, it would be great if you could add an intermediate symlink at [the wrapper](https://github.com/NixOS/nixpkgs/blob/3730d8a308f94996a9ba7c7138ede69c1b9ac4ae/nixos/modules/services/networking/netbird.nix#L286-L289) and confirm whether it works. I've checked the process name gets changed when using symlinks, you'll just need to make sure the basename is different for each instance: ``` kdn@brys ~/d/g/n/netbird-support (main)> cat -n args.py 1 #!/usr/bin/env python 2 from pprint import pprint 3 import sys 4 5 pprint(list(enumerate(sys.argv))) kdn@brys ~/d/g/n/netbird-support (main)> ln -s args.py args-renamed.py kdn@brys ~/d/g/n/netbird-support (main)> ./args.py [(0, './args.py')] kdn@brys ~/d/g/n/netbird-support (main)> ./args-renamed.py [(0, './args-renamed.py')] ```
Author
Owner

@jakob1379 commented on GitHub (Jun 3, 2025):

sorry about the delay, had a wedding where I had to perform as the groom...

nonetheless intermediate symlinks work, I am not yet that strong in nix, so I dare not suggest an edit as I am not sure the best approach to follow.

@jakob1379 commented on GitHub (Jun 3, 2025): sorry about the delay, had a wedding where I had to perform as the groom... nonetheless intermediate symlinks work, I am not yet that strong in nix, so I dare not suggest an edit as I am not sure the best approach to follow.
Author
Owner

@jakob1379 commented on GitHub (Aug 22, 2025):

With profiles now being a thing this is less of an issue, thought being able to have multiple networks connected would still be nice, besides the security concerns it brings

@jakob1379 commented on GitHub (Aug 22, 2025): With profiles now being a thing this is less of an issue, thought being able to have multiple networks connected would still be nice, besides the security concerns it brings
Author
Owner

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

You'd probably want to subscribe to https://github.com/netbirdio/netbird/issues/446

@nazarewk commented on GitHub (Sep 15, 2025): You'd probably want to subscribe to https://github.com/netbirdio/netbird/issues/446
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#1864