broad-rain-53688
06/07/2022, 12:11 PMnetclient daemon. When daemon restarted then wireguard interface removed and created again. Network connectivity temporary is broken.
How to avoid removing wg interface? I don't want depends on temporary network connectivity loss between client and broker/netmaker-api.
[netclient] 2022-06-07 11:45:12 unable to connect to broker, retrying ...
Ping tcp://nm-mq.mydomain.com:8883(<ip>:8883) - Connected - time=69.146611ms
Ping tcp://nm-mq.mydomain.com:8883(<ip>:8883) - Connected - time=69.974128ms
Ping tcp://nm-mq.mydomain.com:8883(<ip>:8883) - Connected - time=72.613186ms
[netclient] 2022-06-07 11:45:16 could not connect to broker nm-mq.mydomain.com connect timeout
[netclient] 2022-06-07 11:45:16 connection issue detected.. attempt connection with new certs and broker information
[netclient] 2022-06-07 11:45:16 register at https://nm-api.mydomain.com/api/server/register
[netclient] 2022-06-07 11:45:17 certificates/key saved
[netclient] 2022-06-07 11:45:18 restarting netclient.service
[netclient] 2022-06-07 11:45:19 shutting down netclient daemon
[netclient] 2022-06-07 11:45:19 checkin routine closed
[netclient] 2022-06-07 11:45:19 shutdown complete
systemd[1]: Stopping Netclient Daemon...
systemd[1]: netclient.service: Succeeded.
systemd[1]: Stopped Netclient Daemon.
Interface check
# ip link show dev nm-main
130: nm-main: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1280 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/none
# ip link show dev nm-main
Device "nm-main" does not exist.
# ip link show dev nm-main
131: nm-main: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1280 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/nonejolly-london-20127
06/07/2022, 12:17 PMjolly-london-20127
06/07/2022, 12:21 PMbroad-rain-53688
06/07/2022, 12:46 PMbored-island-21407
06/07/2022, 12:50 PMbroad-rain-53688
06/08/2022, 4:16 PMsystemctl stop mosquitto
I think netclient daemon behavior is not correct. Daemon could restart interface only if:
1. all external services (netmaker api/broker) is reachable.
2. If configuration was changed