Looks for /var/run/netbird.sock whereas unit file specifies --daemon-addr unix:///var/run/netbird/%i.sock #2148

Open
opened 2025-11-20 07:04:46 -05:00 by saavagebueno · 2 comments
Owner

Originally created by @HaleTom on GitHub (Aug 1, 2025).

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). **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 2025-11-20 07:04:46 -05:00
Author
Owner

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

Same error with latest docker image

Image
@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
@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 ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#2148