[GH-ISSUE #4269] Looks for /var/run/netbird.sock whereas unit file specifies --daemon-addr unix:///var/run/netbird/%i.sock #8379

Open
opened 2026-08-05 01:17:41 -04:00 by saavagebueno · 13 comments
Owner

Originally created by @HaleTom on GitHub (Aug 1, 2025).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/4269

Describe the problem

The default unit file specifies /var/run/netbird/%i.sock, but the client has a different default: /var/run/netbird.sock

I install the netbird-bin
To Reproduce

Steps to reproduce the behavior:

  1. Install Arch package netbird-bin
  2. Start the service
  3. netbird status
  4. See error:
% netbird status
2025-08-02T10:06:20+07:00 INFO ./caller_not_available:0: 2025/08/02 10:06:20 WARNING: [core] [Channel #1 SubChannel #2]grpc: addrConn.createTransport fai
led 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-08-02T10:06:21+07:00 INFO ./caller_not_available:0: 2025/08/02 10:06:21 WARNING: [core] [Channel #1 SubChannel #2]grpc: addrConn.createTransport fai
led 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-08-02T10:06:23+07:00 INFO ./caller_not_available:0: 2025/08/02 10:06:23 WARNING: [core] [Channel #1 SubChannel #2]grpc: addrConn.createTransport fai
led 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

Expected behavior

It looks for the socket that the unit file specifies, under /var/run/netbird/:

% systemctl cat netbird@main | grep ExecStart
ExecStart=/usr/bin/netbird service run --log-file /var/log/netbird/client-%i.log --daemon-addr unix:///var/run/netbird/%i.sock $FLAGS

Are you using NetBird Cloud?

No

NetBird version

0.52.2

Is any other VPN software installed?

tailscale, zerotier

Debug output

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

netbird status -dA

% netbird status -dA

2025-08-02T10:15:45+07:00 INFO ./caller_not_available:0: 2025/08/02 10:15:45 WARNING: [core] [Channel #1 SubChannel #2]grpc: addrConn.createTransport fai
led 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-08-02T10:15:46+07:00 INFO ./caller_not_available:0: 2025/08/02 10:15:46 WARNING: [core] [Channel #1 SubChannel #2]grpc: addrConn.createTransport fai
led 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-08-02T10:15:47+07:00 INFO ./caller_not_available:0: 2025/08/02 10:15:47 WARNING: [core] [Channel #1 SubChannel #2]grpc: addrConn.createTransport fai
led 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

Additional context

Additional info:

% systemctl status netbird@main | cat
● netbird@main.service - Netbird Client (main)
     Loaded: loaded (/usr/lib/systemd/system/netbird@.service; enabled; preset: disabled)
     Active: active (running) since Sat 2025-08-02 09:55:56 +07; 14min ago
 Invocation: 42a605139b82421999e644da6b494bb0
       Docs: https://netbird.io/docs
   Main PID: 319263 (netbird)
      Tasks: 13 (limit: 18644)
     Memory: 34.6M (peak: 41.7M)
        CPU: 2.668s
     CGroup: /system.slice/system-netbird.slice/netbird@main.service
             └─319263 /usr/bin/netbird service run --log-file /var/log/netbird/client-main.log --daemon-addr unix:///var/run/netbird/main.sock

Aug 02 09:55:56 svelte systemd[1]: Started Netbird Client (main).

Have you tried these troubleshooting steps?

  • [ x] Reviewed client troubleshooting (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
Originally created by @HaleTom on GitHub (Aug 1, 2025). Original GitHub issue: https://github.com/netbirdio/netbird/issues/4269 **Describe the problem** The [default unit file](https://github.com/netbirdio/netbird/blob/main/release_files/systemd/netbird%40.service) specifies `/var/run/netbird/%i.sock`, but the client has a different default: `/var/run/netbird.sock ` I install the netbird-bin **To Reproduce** Steps to reproduce the behavior: 1. Install Arch package `netbird-bin` 1. Start the service 2. `netbird status` 6. See error: ``` % netbird status 2025-08-02T10:06:20+07:00 INFO ./caller_not_available:0: 2025/08/02 10:06:20 WARNING: [core] [Channel #1 SubChannel #2]grpc: addrConn.createTransport fai led 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-08-02T10:06:21+07:00 INFO ./caller_not_available:0: 2025/08/02 10:06:21 WARNING: [core] [Channel #1 SubChannel #2]grpc: addrConn.createTransport fai led 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-08-02T10:06:23+07:00 INFO ./caller_not_available:0: 2025/08/02 10:06:23 WARNING: [core] [Channel #1 SubChannel #2]grpc: addrConn.createTransport fai led 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 ``` **Expected behavior** It looks for the socket that the unit file specifies, under `/var/run/netbird/`: ``` % systemctl cat netbird@main | grep ExecStart ExecStart=/usr/bin/netbird service run --log-file /var/log/netbird/client-%i.log --daemon-addr unix:///var/run/netbird/%i.sock $FLAGS ``` **Are you using NetBird Cloud?** No **NetBird version** 0.52.2 **Is any other VPN software installed?** tailscale, zerotier **Debug output** To help us resolve the problem, please attach the following anonymized status output netbird status -dA ``` % netbird status -dA 2025-08-02T10:15:45+07:00 INFO ./caller_not_available:0: 2025/08/02 10:15:45 WARNING: [core] [Channel #1 SubChannel #2]grpc: addrConn.createTransport fai led 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-08-02T10:15:46+07:00 INFO ./caller_not_available:0: 2025/08/02 10:15:46 WARNING: [core] [Channel #1 SubChannel #2]grpc: addrConn.createTransport fai led 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-08-02T10:15:47+07:00 INFO ./caller_not_available:0: 2025/08/02 10:15:47 WARNING: [core] [Channel #1 SubChannel #2]grpc: addrConn.createTransport fai led 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 ``` **Additional context** Additional info: ``` % systemctl status netbird@main | cat ● netbird@main.service - Netbird Client (main) Loaded: loaded (/usr/lib/systemd/system/netbird@.service; enabled; preset: disabled) Active: active (running) since Sat 2025-08-02 09:55:56 +07; 14min ago Invocation: 42a605139b82421999e644da6b494bb0 Docs: https://netbird.io/docs Main PID: 319263 (netbird) Tasks: 13 (limit: 18644) Memory: 34.6M (peak: 41.7M) CPU: 2.668s CGroup: /system.slice/system-netbird.slice/netbird@main.service └─319263 /usr/bin/netbird service run --log-file /var/log/netbird/client-main.log --daemon-addr unix:///var/run/netbird/main.sock Aug 02 09:55:56 svelte systemd[1]: Started Netbird Client (main). ``` **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 triage-needed label 2026-08-05 01:17:41 -04:00
Author
Owner

@Cristobal-M commented on GitHub (Aug 5, 2025):

Same error with latest docker image

Image
<!-- gh-comment-id:3154095919 --> @Cristobal-M commented on GitHub (Aug 5, 2025): Same error with latest docker image <img width="2066" height="263" alt="Image" src="https://github.com/user-attachments/assets/b2396dab-7fcd-4188-8ff2-7f8a1bfac531" />
Author
Owner

@then3rd commented on GitHub (Aug 8, 2025):

Can confirm, I'm seeing this too at least with netbird-bin on arch. Fixed with:

sed -i 's/\/%i//' /usr/lib/systemd/system/netbird@.service
systemctl daemon-reload
netbird up
<!-- gh-comment-id:3167174395 --> @then3rd commented on GitHub (Aug 8, 2025): Can confirm, I'm seeing this too at least with netbird-bin on arch. Fixed with: ```sh sed -i 's/\/%i//' /usr/lib/systemd/system/netbird@.service systemctl daemon-reload netbird up ```
Author
Owner

@devaux commented on GitHub (Nov 30, 2025):

Same here. In aur/netbird and aur/netbird-bin.
Changing the netbird@.service as described from @then3rd works as a temporary workaround.

<!-- gh-comment-id:3592343573 --> @devaux commented on GitHub (Nov 30, 2025): Same here. In aur/netbird and aur/netbird-bin. Changing the netbird@.service as described from @then3rd works as a temporary workaround.
Author
Owner

@devaux commented on GitHub (Nov 30, 2025):

Update: Looks like cleaning up all netbird-services and installing again fixed it for me automatically:

=> Cleanup

sudo pacman -Rns netbird netbird-ui 

sudo systemctl disable --now netbird.service 2>/dev/null || true
sudo systemctl disable --now netbird@.servic.service 2>/dev/null || true
sudo systemctl disable --now netbird@main.service 2>/dev/null || true
sudo systemctl disable --now netbird@service.service 2>/dev/null || true
sudo systemctl stop system-netbird.slice

sudo rm -f /usr/lib/systemd/system/system-netbird.slice
sudo rm -f /etc/systemd/system/netbird*.service
sudo rm -f /etc/systemd/system/multi-user.target.wants/netbird*
sudo rm -f /usr/lib/systemd/system/netbird*.service
sudo rm -f /usr/lib/systemd/user/netbird*.service
sudo rm -f /etc/systemd/system/system-netbird.slice

systemctl list-units --all | grep -i netbird

=> Should be empty

=> Reinstalling
yay -Sy netbird netbird-ui
=> Enable service
sudo systemctl enable --now netbird@main.service

<!-- gh-comment-id:3592366010 --> @devaux commented on GitHub (Nov 30, 2025): Update: Looks like cleaning up all netbird-services and installing again fixed it for me automatically: => Cleanup ``` sudo pacman -Rns netbird netbird-ui sudo systemctl disable --now netbird.service 2>/dev/null || true sudo systemctl disable --now netbird@.servic.service 2>/dev/null || true sudo systemctl disable --now netbird@main.service 2>/dev/null || true sudo systemctl disable --now netbird@service.service 2>/dev/null || true sudo systemctl stop system-netbird.slice sudo rm -f /usr/lib/systemd/system/system-netbird.slice sudo rm -f /etc/systemd/system/netbird*.service sudo rm -f /etc/systemd/system/multi-user.target.wants/netbird* sudo rm -f /usr/lib/systemd/system/netbird*.service sudo rm -f /usr/lib/systemd/user/netbird*.service sudo rm -f /etc/systemd/system/system-netbird.slice systemctl list-units --all | grep -i netbird ``` => Should be empty => Reinstalling `yay -Sy netbird netbird-ui ` => Enable service `sudo systemctl enable --now netbird@main.service`
Author
Owner

@itoffshore commented on GitHub (Dec 8, 2025):

The daemon & logs both seem to work ok with %i removed ONLY from --daemon-address (on Arch Linux)

<!-- gh-comment-id:3629380012 --> @itoffshore commented on GitHub (Dec 8, 2025): The daemon & logs both seem to work ok with `%i` [removed **ONLY** from](https://github.com/netbirdio/netbird/issues/4269#issuecomment-3167174395) `--daemon-address` (on Arch Linux)
Author
Owner

@itoffshore commented on GitHub (Jan 21, 2026):

This override also works (assuming you created a default instance of the %i service):

[~]$ cat /etc/systemd/system/netbird@default.service.d/override.conf 

[Service]
ExecStart=
ExecStart=/usr/bin/netbird service run --log-file /var/log/netbird/client-%i.log --daemon-addr unix:///var/run/netbird.sock $FLAGS
  • as root run:
systemctl daemon-reload
systemctl restart netbird@default
  • netbird status should show you're connected
<!-- gh-comment-id:3781967248 --> @itoffshore commented on GitHub (Jan 21, 2026): This override also works (assuming you created a `default` [instance](https://wiki.archlinux.org/title/Systemd#Basic_systemctl_usage) of the `%i` service): ``` [~]$ cat /etc/systemd/system/netbird@default.service.d/override.conf [Service] ExecStart= ExecStart=/usr/bin/netbird service run --log-file /var/log/netbird/client-%i.log --daemon-addr unix:///var/run/netbird.sock $FLAGS ``` * as root run: ``` systemctl daemon-reload systemctl restart netbird@default ``` * `netbird status` should show you're connected
Author
Owner

@xpufx commented on GitHub (Apr 23, 2026):

I couldn't get the aur package to work right. What finally worked was to install just the netbird package (no netbird-server) then


sudo netbird service install
sudo netbird service start

Then as regular user,

 netbird up -m https://netbird.mydomain.com

worked. I think the aur package is outdated or something. There's a note there saying the package moved to upstream(?) but I can't find official packages. (I am on CachyOS but it should be the same packages)

<!-- gh-comment-id:4304738703 --> @xpufx commented on GitHub (Apr 23, 2026): I couldn't get the aur package to work right. What finally worked was to install just the netbird package (no netbird-server) then ``` sudo netbird service install sudo netbird service start ``` Then as regular user, ``` netbird up -m https://netbird.mydomain.com ``` worked. I think the aur package is outdated or something. There's a note there saying the package moved to upstream(?) but I can't find official packages. (I am on CachyOS but it should be the same packages)
Author
Owner

@ikkqqstudio commented on GitHub (May 9, 2026):

Same issue in Aurora Linux (Based On Fedora Silverblue)

<!-- gh-comment-id:4413048628 --> @ikkqqstudio commented on GitHub (May 9, 2026): Same issue in Aurora Linux (Based On Fedora Silverblue)
Author
Owner

@kiaraly commented on GitHub (May 11, 2026):

What version are you running? It should be resolved as of ef82905526 (v0.66)

<!-- gh-comment-id:4420078796 --> @kiaraly commented on GitHub (May 11, 2026): What version are you running? It should be resolved as of https://github.com/netbirdio/netbird/commit/ef82905526a5944e9aac96e04b8b7ee67d27c9b9 (v0.66)
Author
Owner

@ikkqqstudio commented on GitHub (May 11, 2026):

What version are you running? It should be resolved as of ef82905 (v0.66)

rpm-ostree version

<!-- gh-comment-id:4420109143 --> @ikkqqstudio commented on GitHub (May 11, 2026): > What version are you running? It should be resolved as of [ef82905](https://github.com/netbirdio/netbird/commit/ef82905526a5944e9aac96e04b8b7ee67d27c9b9) (v0.66) rpm-ostree version
Author
Owner

@kiaraly commented on GitHub (May 17, 2026):

What version are you running? It should be resolved as of ef82905 (v0.66)

rpm-ostree version

You can get the version you're running by entering netbird version in a terminal. I'm using v0.71.1 and the issue is fixed.

<!-- gh-comment-id:4470977721 --> @kiaraly commented on GitHub (May 17, 2026): > > What version are you running? It should be resolved as of [ef82905](https://github.com/netbirdio/netbird/commit/ef82905526a5944e9aac96e04b8b7ee67d27c9b9) (v0.66) > > rpm-ostree version You can get the version you're running by entering `netbird version` in a terminal. I'm using `v0.71.1` and the issue is fixed.
Author
Owner

@ikkqqstudio commented on GitHub (May 18, 2026):

netbird version

I'm In 0.70.5 but rpm-ostree says there's currently no upgrade available

<!-- gh-comment-id:4476180253 --> @ikkqqstudio commented on GitHub (May 18, 2026): > netbird version I'm In 0.70.5 but rpm-ostree says there's currently no upgrade available
Author
Owner

@WarmWelcome commented on GitHub (Jul 28, 2026):

Experiencing this now as well on version 0.75.0

<!-- gh-comment-id:5112373783 --> @WarmWelcome commented on GitHub (Jul 28, 2026): Experiencing this now as well on version 0.75.0
Sign in to join this conversation.
No Label triage-needed
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#8379