since v0.52.1 client no longer can connect #2131

Closed
opened 2025-11-20 07:04:21 -05:00 by saavagebueno · 10 comments
Owner

Originally created by @lfarkas on GitHub (Jul 30, 2025).

since v0.52.1 client no longer can connect on homeassistant addon this is the log:

2025-07-30T09:20:07+02:00 ERRO management/client/grpc.go:349: failed to login to Management Service: rpc error: code = PermissionDenied desc = no peer auth method provided, please use a setup key or interactive SSO login
2025-07-30T09:20:07+02:00 ERRO management/client/grpc.go:349: failed to login to Management Service: rpc error: code = PermissionDenied desc = no peer auth method provided, please use a setup key or interactive SSO login
2025-07-30T09:20:07+02:00 ERRO management/client/grpc.go:349: failed to login to Management Service: rpc error: code = NotFound desc = couldn't add peer: setup key is invalid
2025-07-30T09:20:07+02:00 ERRO client/internal/login.go:152: failed registering peer rpc error: code = NotFound desc = couldn't add peer: setup key is invalid
2025-07-30T09:20:07+02:00 WARN client/cmd/root.go:244: retrying Login to the Management service in 585.06487ms due to error rpc error: code = NotFound desc = couldn't add peer: setup key is invalid
2025-07-30T09:20:08+02:00 ERRO management/client/grpc.go:349: failed to login to Management Service: rpc error: code = PermissionDenied desc = no peer auth method provided, please use a setup key or interactive SSO login
2025-07-30T09:20:08+02:00 ERRO management/client/grpc.go:349: failed to login to Management Service: rpc error: code = NotFound desc = couldn't add peer: setup key is invalid
2025-07-30T09:20:08+02:00 ERRO client/internal/login.go:152: failed registering peer rpc error: code = NotFound desc = couldn't add peer: setup key is invalid
2025-07-30T09:20:08+02:00 WARN client/cmd/root.go:244: retrying Login to the Management service in 1.59885423s due to error rpc error: code = NotFound desc = couldn't add peer: setup key is invalid
2025-07-30T09:20:09+02:00 ERRO management/client/grpc.go:349: failed to login to Management Service: rpc error: code = PermissionDenied desc = no peer auth method provided, please use a setup key or interactive SSO login
2025-07-30T09:20:09+02:00 ERRO management/client/grpc.go:349: failed to login to Management Service: rpc error: code = NotFound desc = couldn't add peer: setup key is invalid
2025-07-30T09:20:09+02:00 ERRO client/internal/login.go:152: failed registering peer rpc error: code = NotFound desc = couldn't add peer: setup key is invalid
2025-07-30T09:20:09+02:00 WARN client/cmd/root.go:244: retrying Login to the Management service in 1.47547444s due to error rpc error: code = NotFound desc = couldn't add peer: setup key is invalid
2025-07-30T09:20:11+02:00 ERRO management/client/grpc.go:349: failed to login to Management Service: rpc error: code = PermissionDenied desc = no peer auth method provided, please use a setup key or interactive SSO login
2025-07-30T09:20:11+02:00 ERRO management/client/grpc.go:349: failed to login to Management Service: rpc error: code = NotFound desc = couldn't add peer: setup key is invalid
2025-07-30T09:20:11+02:00 ERRO client/internal/login.go:152: failed registering peer rpc error: code = NotFound desc = couldn't add peer: setup key is invalid
2025-07-30T09:20:11+02:00 WARN client/cmd/root.go:244: retrying Login to the Management service in 3.928901491s due to error rpc error: code = NotFound desc = couldn't add peer: setup key is invalid
2025-07-30T09:20:15+02:00 ERRO management/client/grpc.go:349: failed to login to Management Service: rpc error: code = PermissionDenied desc = no peer auth method provided, please use a setup key or interactive SSO login
2025-07-30T09:20:15+02:00 ERRO management/client/grpc.go:349: failed to login to Management Service: rpc error: code = NotFound desc = couldn't add peer: setup key is invalid
2025-07-30T09:20:15+02:00 ERRO client/internal/login.go:152: failed registering peer rpc error: code = NotFound desc = couldn't add peer: setup key is invalid
2025-07-30T09:20:15+02:00 WARN client/cmd/root.go:244: retrying Login to the Management service in 4.35540184s due to error rpc error: code = NotFound desc = couldn't add peer: setup key is invalid
2025-07-30T09:20:20+02:00 ERRO management/client/grpc.go:349: failed to login to Management Service: rpc error: code = PermissionDenied desc = no peer auth method provided, please use a setup key or interactive SSO login
2025-07-30T09:20:20+02:00 ERRO management/client/grpc.go:349: failed to login to Management Service: rpc error: code = NotFound desc = couldn't add peer: setup key is invalid
2025-07-30T09:20:20+02:00 ERRO client/internal/login.go:152: failed registering peer rpc error: code = NotFound desc = couldn't add peer: setup key is invalid
2025-07-30T09:20:20+02:00 WARN client/cmd/root.go:244: retrying Login to the Management service in 9.195123712s due to error rpc error: code = NotFound desc = couldn't add peer: setup key is invalid
2025-07-30T09:20:29+02:00 ERRO management/client/grpc.go:349: failed to login to Management Service: rpc error: code = PermissionDenied desc = no peer auth method provided, please use a setup key or interactive SSO login
2025-07-30T09:20:29+02:00 ERRO management/client/grpc.go:349: failed to login to Management Service: rpc error: code = NotFound desc = couldn't add peer: setup key is invalid
2025-07-30T09:20:29+02:00 ERRO client/internal/login.go:152: failed registering peer rpc error: code = NotFound desc = couldn't add peer: setup key is invalid
Error: foreground login failed: backoff cycle failed: rpc error: code = NotFound desc = couldn't add peer: setup key is invalid
Originally created by @lfarkas on GitHub (Jul 30, 2025). since v0.52.1 client no longer can connect on homeassistant addon this is the log: ``` 2025-07-30T09:20:07+02:00 ERRO management/client/grpc.go:349: failed to login to Management Service: rpc error: code = PermissionDenied desc = no peer auth method provided, please use a setup key or interactive SSO login 2025-07-30T09:20:07+02:00 ERRO management/client/grpc.go:349: failed to login to Management Service: rpc error: code = PermissionDenied desc = no peer auth method provided, please use a setup key or interactive SSO login 2025-07-30T09:20:07+02:00 ERRO management/client/grpc.go:349: failed to login to Management Service: rpc error: code = NotFound desc = couldn't add peer: setup key is invalid 2025-07-30T09:20:07+02:00 ERRO client/internal/login.go:152: failed registering peer rpc error: code = NotFound desc = couldn't add peer: setup key is invalid 2025-07-30T09:20:07+02:00 WARN client/cmd/root.go:244: retrying Login to the Management service in 585.06487ms due to error rpc error: code = NotFound desc = couldn't add peer: setup key is invalid 2025-07-30T09:20:08+02:00 ERRO management/client/grpc.go:349: failed to login to Management Service: rpc error: code = PermissionDenied desc = no peer auth method provided, please use a setup key or interactive SSO login 2025-07-30T09:20:08+02:00 ERRO management/client/grpc.go:349: failed to login to Management Service: rpc error: code = NotFound desc = couldn't add peer: setup key is invalid 2025-07-30T09:20:08+02:00 ERRO client/internal/login.go:152: failed registering peer rpc error: code = NotFound desc = couldn't add peer: setup key is invalid 2025-07-30T09:20:08+02:00 WARN client/cmd/root.go:244: retrying Login to the Management service in 1.59885423s due to error rpc error: code = NotFound desc = couldn't add peer: setup key is invalid 2025-07-30T09:20:09+02:00 ERRO management/client/grpc.go:349: failed to login to Management Service: rpc error: code = PermissionDenied desc = no peer auth method provided, please use a setup key or interactive SSO login 2025-07-30T09:20:09+02:00 ERRO management/client/grpc.go:349: failed to login to Management Service: rpc error: code = NotFound desc = couldn't add peer: setup key is invalid 2025-07-30T09:20:09+02:00 ERRO client/internal/login.go:152: failed registering peer rpc error: code = NotFound desc = couldn't add peer: setup key is invalid 2025-07-30T09:20:09+02:00 WARN client/cmd/root.go:244: retrying Login to the Management service in 1.47547444s due to error rpc error: code = NotFound desc = couldn't add peer: setup key is invalid 2025-07-30T09:20:11+02:00 ERRO management/client/grpc.go:349: failed to login to Management Service: rpc error: code = PermissionDenied desc = no peer auth method provided, please use a setup key or interactive SSO login 2025-07-30T09:20:11+02:00 ERRO management/client/grpc.go:349: failed to login to Management Service: rpc error: code = NotFound desc = couldn't add peer: setup key is invalid 2025-07-30T09:20:11+02:00 ERRO client/internal/login.go:152: failed registering peer rpc error: code = NotFound desc = couldn't add peer: setup key is invalid 2025-07-30T09:20:11+02:00 WARN client/cmd/root.go:244: retrying Login to the Management service in 3.928901491s due to error rpc error: code = NotFound desc = couldn't add peer: setup key is invalid 2025-07-30T09:20:15+02:00 ERRO management/client/grpc.go:349: failed to login to Management Service: rpc error: code = PermissionDenied desc = no peer auth method provided, please use a setup key or interactive SSO login 2025-07-30T09:20:15+02:00 ERRO management/client/grpc.go:349: failed to login to Management Service: rpc error: code = NotFound desc = couldn't add peer: setup key is invalid 2025-07-30T09:20:15+02:00 ERRO client/internal/login.go:152: failed registering peer rpc error: code = NotFound desc = couldn't add peer: setup key is invalid 2025-07-30T09:20:15+02:00 WARN client/cmd/root.go:244: retrying Login to the Management service in 4.35540184s due to error rpc error: code = NotFound desc = couldn't add peer: setup key is invalid 2025-07-30T09:20:20+02:00 ERRO management/client/grpc.go:349: failed to login to Management Service: rpc error: code = PermissionDenied desc = no peer auth method provided, please use a setup key or interactive SSO login 2025-07-30T09:20:20+02:00 ERRO management/client/grpc.go:349: failed to login to Management Service: rpc error: code = NotFound desc = couldn't add peer: setup key is invalid 2025-07-30T09:20:20+02:00 ERRO client/internal/login.go:152: failed registering peer rpc error: code = NotFound desc = couldn't add peer: setup key is invalid 2025-07-30T09:20:20+02:00 WARN client/cmd/root.go:244: retrying Login to the Management service in 9.195123712s due to error rpc error: code = NotFound desc = couldn't add peer: setup key is invalid 2025-07-30T09:20:29+02:00 ERRO management/client/grpc.go:349: failed to login to Management Service: rpc error: code = PermissionDenied desc = no peer auth method provided, please use a setup key or interactive SSO login 2025-07-30T09:20:29+02:00 ERRO management/client/grpc.go:349: failed to login to Management Service: rpc error: code = NotFound desc = couldn't add peer: setup key is invalid 2025-07-30T09:20:29+02:00 ERRO client/internal/login.go:152: failed registering peer rpc error: code = NotFound desc = couldn't add peer: setup key is invalid Error: foreground login failed: backoff cycle failed: rpc error: code = NotFound desc = couldn't add peer: setup key is invalid ```
saavagebueno added the bugclientdistributionhome-assistant labels 2025-11-20 07:04:21 -05:00
Author
Owner

@maxus-git commented on GitHub (Jul 30, 2025):

Same here with the Homeassistant Add-On (https://github.com/netbirdio/addon-netbird).
I created a new reusable Setup Key and everytime I restart the HA container/Add-On, the usage of the setup key counts up and a new client is added.

Roll back to v0.51.2 doesn't change anything.

@maxus-git commented on GitHub (Jul 30, 2025): Same here with the Homeassistant Add-On (https://github.com/netbirdio/addon-netbird). I created a new reusable Setup Key and everytime I restart the HA container/Add-On, the usage of the setup key counts up and a new client is added. Roll back to `v0.51.2` doesn't change anything.
Author
Owner

@lfarkas commented on GitHub (Jul 30, 2025):

i revert the homeassistant addon version, so if you refresh homeassistant the it's revert to 0.51.2...but the problem in the latest version still alive

@lfarkas commented on GitHub (Jul 30, 2025): i revert the homeassistant addon version, so if you refresh homeassistant the it's revert to 0.51.2...but the problem in the latest version still alive
Author
Owner

@maxus-git commented on GitHub (Jul 30, 2025):

i revert the homeassistant addon version, so if you refresh homeassistant the it's revert to 0.51.2...but the problem in the latest version still alive

Sorry - I meant that I rolled back to 0.51.2 - mistyped.

@maxus-git commented on GitHub (Jul 30, 2025): > i revert the homeassistant addon version, so if you refresh homeassistant the it's revert to 0.51.2...but the problem in the latest version still alive Sorry - I meant that I rolled back to 0.51.2 - mistyped.
Author
Owner

@nazarewk commented on GitHub (Jul 30, 2025):

looks like there might be some automated migration issue and/or might warrant the addon configuration update, we have introduced https://github.com/netbirdio/netbird/issues/3273 in 0.52.0 that has changed how config.json is managed (it's not there anymore on behalf of multiple files for each profile in another location).

@nazarewk commented on GitHub (Jul 30, 2025): looks like there might be some automated migration issue and/or might warrant the addon configuration update, we have introduced https://github.com/netbirdio/netbird/issues/3273 in `0.52.0` that has changed how `config.json` is managed (it's not there anymore on behalf of multiple files for each profile in another location).
Author
Owner

@nazarewk commented on GitHub (Jul 30, 2025):

CC: @lfarkas seems like you're the maintainer for the addon

@nazarewk commented on GitHub (Jul 30, 2025): CC: @lfarkas seems like you're the maintainer for the addon
Author
Owner

@nazarewk commented on GitHub (Jul 30, 2025):

I think this is where the issue lies b63bb49f4a/netbird/rootfs/etc/s6-overlay/s6-rc.d/netbird/run (L27) , the --config flag / $NB_CONFIG is deprecated/ignored now.

@nazarewk commented on GitHub (Jul 30, 2025): I think this is where the issue lies https://github.com/netbirdio/addon-netbird/blob/b63bb49f4ac7b9cac1c6591c50995b31754d5e6d/netbird/rootfs/etc/s6-overlay/s6-rc.d/netbird/run#L27 , the `--config` flag / `$NB_CONFIG` is deprecated/ignored now.
Author
Owner

@lfarkas commented on GitHub (Jul 30, 2025):

I think this is where the issue lies b63bb49f4a/netbird/rootfs/etc/s6-overlay/s6-rc.d/netbird/run (L27) , the --config flag / $NB_CONFIG is deprecated/ignored now.

according to the docs:
https://docs.netbird.io/how-to/cli#environment-variables
both the --config and $NB_CONFIG exists.
and here too:
https://docs.netbird.io/how-to/cli#service-install
so where is the up-to-date docs?

@mlsmaycon ?

@lfarkas commented on GitHub (Jul 30, 2025): > I think this is where the issue lies https://github.com/netbirdio/addon-netbird/blob/b63bb49f4ac7b9cac1c6591c50995b31754d5e6d/netbird/rootfs/etc/s6-overlay/s6-rc.d/netbird/run#L27 , the `--config` flag / `$NB_CONFIG` is deprecated/ignored now. according to the docs: https://docs.netbird.io/how-to/cli#environment-variables both the --config and $NB_CONFIG exists. and here too: https://docs.netbird.io/how-to/cli#service-install so where is the up-to-date docs? @mlsmaycon ?
Author
Owner

@Blackclaws commented on GitHub (Jul 31, 2025):

I think this is what happened: https://docs.netbird.io/how-to/profiles

@Blackclaws commented on GitHub (Jul 31, 2025): I think this is what happened: https://docs.netbird.io/how-to/profiles
Author
Owner

@lfarkas commented on GitHub (Jul 31, 2025):

yes i saw that but the --config still documented and should have to work....

@lfarkas commented on GitHub (Jul 31, 2025): yes i saw that but the --config still documented and should have to work....
Author
Owner

@maxus-git commented on GitHub (Aug 19, 2025):

Updated the addon to 0.54.2 a few minutes ago...looks like it's working again.
Now no new client/peer is created anymore.

Edit:
Although there are some ERRORs and WARNINGS:

-----------------------------------------------------------
 Add-on: NetBird
 Connect your devices into a single secure private WireGuard®-based mesh network.
-----------------------------------------------------------
 Add-on version: v0.54.2
 You are running the latest version of this add-on.
 System: Home Assistant OS 16.1  (amd64 / qemux86-64)
 Home Assistant Core: 2025.8.2
 Home Assistant Supervisor: 2025.08.1
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
s6-rc: info: service base-addon-banner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service base-addon-log-level: starting
s6-rc: info: service fix-attrs successfully started
Log level is set to WARNING
s6-rc: info: service base-addon-log-level successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service netbird: starting
s6-rc: info: service netbird successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
2025-08-19T14:17:50+02:00 ERRO client/internal/routemanager/systemops/systemops_linux.go:124: Error setting up sysctl: 1 error occurred:
	* write sysctl net.ipv4.conf.all.src_valid_mark: open /proc/sys/net/ipv4/conf/all/src_valid_mark: read-only file system
2025-08-19T14:17:50+02:00 WARN client/firewall/nftables/router_linux.go:952: Will use nftables to manipulate the filter table because iptables is not available: exec: "iptables": executable file not found in $PATH
2025-08-19T14:17:50+02:00 WARN client/firewall/nftables/router_linux.go:859: Will use nftables to manipulate the filter table because iptables is not available: exec: "iptables": executable file not found in $PATH
2025-08-19T14:17:50+02:00 ERRO client/firewall/nftables/router_linux.go:108: failed to set up data plane mark: flush: conn.Receive: netlink receive: operation not supported
netlink receive: operation not supported
2025-08-19T14:23:52+02:00 ERRO client/iface/wgproxy/ebpf/wrapper.go:139: failed to read from turn conn (endpoint: :2): use of closed network connection
@maxus-git commented on GitHub (Aug 19, 2025): Updated the addon to `0.54.2` a few minutes ago...looks like **it's working again**. Now no new client/peer is created anymore. **Edit:** Although there are some ERRORs and WARNINGS: ``` ----------------------------------------------------------- Add-on: NetBird Connect your devices into a single secure private WireGuard®-based mesh network. ----------------------------------------------------------- Add-on version: v0.54.2 You are running the latest version of this add-on. System: Home Assistant OS 16.1 (amd64 / qemux86-64) Home Assistant Core: 2025.8.2 Home Assistant Supervisor: 2025.08.1 ----------------------------------------------------------- Please, share the above information when looking for help or support in, e.g., GitHub, forums or the Discord chat. ----------------------------------------------------------- s6-rc: info: service base-addon-banner successfully started s6-rc: info: service fix-attrs: starting s6-rc: info: service base-addon-log-level: starting s6-rc: info: service fix-attrs successfully started Log level is set to WARNING s6-rc: info: service base-addon-log-level successfully started s6-rc: info: service legacy-cont-init: starting s6-rc: info: service legacy-cont-init successfully started s6-rc: info: service netbird: starting s6-rc: info: service netbird successfully started s6-rc: info: service legacy-services: starting s6-rc: info: service legacy-services successfully started 2025-08-19T14:17:50+02:00 ERRO client/internal/routemanager/systemops/systemops_linux.go:124: Error setting up sysctl: 1 error occurred: * write sysctl net.ipv4.conf.all.src_valid_mark: open /proc/sys/net/ipv4/conf/all/src_valid_mark: read-only file system 2025-08-19T14:17:50+02:00 WARN client/firewall/nftables/router_linux.go:952: Will use nftables to manipulate the filter table because iptables is not available: exec: "iptables": executable file not found in $PATH 2025-08-19T14:17:50+02:00 WARN client/firewall/nftables/router_linux.go:859: Will use nftables to manipulate the filter table because iptables is not available: exec: "iptables": executable file not found in $PATH 2025-08-19T14:17:50+02:00 ERRO client/firewall/nftables/router_linux.go:108: failed to set up data plane mark: flush: conn.Receive: netlink receive: operation not supported netlink receive: operation not supported 2025-08-19T14:23:52+02:00 ERRO client/iface/wgproxy/ebpf/wrapper.go:139: failed to read from turn conn (endpoint: :2): use of closed network connection ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#2131