lmagyar / homeassistant-addon-tailscale

Adds some functionality to the Tailscale Home Assistant Community Add-on https://github.com/hassio-addons/addon-tailscale
MIT License
56 stars 7 forks source link

ethtool (-K): flag 'rx-udp-gro-forwarding' for parameter '(null)' is not followed by 'on' or 'off' #128

Closed austinliuu closed 3 months ago

austinliuu commented 4 months ago

After updating, the addon will automatically stop after I click "Start". Here is the log output.

s6-rc: info: service web: stopping
s6-rc: info: service init-nginx successfully stopped
[23:16:27] INFO: Service Tailscale web exited with code 256 (by signal 15)
s6-rc: info: service web successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service base-addon-log-level: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service base-addon-log-level successfully stopped
s6-rc: info: service base-addon-banner: stopping
s6-rc: info: service base-addon-banner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service base-addon-banner: starting

-----------------------------------------------------------
 Add-on: Tailscale with features
 Zero config VPN for building secure networks
-----------------------------------------------------------
 Add-on version: 0.18.0.4
 You are running the latest version of this add-on.
 System: Home Assistant OS 12.1  (aarch64 / raspberrypi4-64)
 Home Assistant Core: 2024.4.1
 Home Assistant Supervisor: 2024.05.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
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 init-nginx: starting
s6-rc: info: service web: starting
s6-rc: info: service tailscaled: starting
s6-rc: info: service tailscaled successfully started
s6-rc: info: service post-tailscaled: starting
s6-rc: info: service web successfully started
[23:19:07] INFO: Starting Tailscale web...
[23:19:07] INFO: Starting Tailscale...
ethtool (-K): flag 'rx-udp-gro-forwarding' for parameter '(null)' is not followed by 'on' or 'off'
s6-rc: warning: unable to start service post-tailscaled: command exited 1
[23:19:07] NOTICE: Tailscale logs will be suppressed after 200 lines, set add-on's configuration option 'log_level' to 'debug' to see further logs
s6-rc: info: service init-nginx successfully started
s6-rc: info: service nginx: starting
s6-rc: info: service nginx successfully started
/run/s6/basedir/scripts/rc.init: warning: s6-rc failed to properly bring all the services up! Check your logs (in /run/uncaught-logs/current if you have in-container logging) for more information.
/run/s6/basedir/scripts/rc.init: fatal: stopping the container.
s6-rc: info: service nginx: stopping
s6-rc: info: service tailscaled: stopping
2024/05/17 23:19:08 You have disabled logging. Tailscale will not be able to provide support.
2024/05/17 23:19:08 logtail started
2024/05/17 23:19:08 Program starting: v1.66.3-tc231c3da2-g7febb3078, Go 1.22.3: []string{"/opt/tailscaled", "--state=/data/tailscaled.state", "--statedir=/data/state", "--no-logs-no-support", "--tun=userspace-networking"}
2024/05/17 23:19:08 LogID: 75dc5d76ff2853b597d9d872b70b9e898796339f0e7bf72c37822ebc708b2f66
2024/05/17 23:19:08 logpolicy: using system state directory "/var/lib/tailscale"
logpolicy.ConfigFromFile /var/lib/tailscale/tailscaled.log.conf: open /var/lib/tailscale/tailscaled.log.conf: no such file or directory
logpolicy.Config.Validate for /var/lib/tailscale/tailscaled.log.conf: config is nil
2024/05/17 23:19:08 dns: [resolved-ping=yes rc=unknown ret=direct]
2024/05/17 23:19:08 dns: using "direct" mode
2024/05/17 23:19:08 dns: using *dns.directManager
2024/05/17 23:19:08 wgengine.NewUserspaceEngine(tun "userspace-networking") ...
2024/05/17 23:19:08 dns: using dns.noopManager
2024/05/17 23:19:08 link state: interfaces.State{defaultRoute=end0 ifs={docker0:[172.30.232.1/23 llu6] end0:[192.168.1.251/24 2601:647:4b00:f4b::81c/128 2601:647:4b00:f4b:9ba1:245:8ef:37c1/64 llu6] hassio:[172.30.32.1/23 llu6] wlan0:[192.168.1.250/24 2601:647:4b00:f4b::9fc/128 2601:647:4b00:f4b:b43c:4607:c56b:9215/64 llu6]} v4=true v6=true}
2024/05/17 23:19:08 onPortUpdate(port=38316, network=udp6)
2024/05/17 23:19:08 onPortUpdate(port=57327, network=udp4)
2024/05/17 23:19:08 magicsock: disco key = d:22e30b82c47402f9
2024/05/17 23:19:08 Creating WireGuard device...
2024/05/17 23:19:08 Bringing WireGuard device up...
2024/05/17 23:19:08 Bringing router up...
2024/05/17 23:19:08 Clearing router settings...
2024/05/17 23:19:08 Starting network monitor...
2024/05/17 23:19:08 Engine created.
2024/05/17 23:19:08 pm: using backend prefs for "profile-eb05": Prefs{ra=true dns=true want=true webclient=true routes=[0.0.0.0/0 ::/0 192.168.1.0/24] snat=true statefulFiltering=true nf=on host="homeassistant" update=check Persist{lm=, o=, n=[qgZ/Q] u="austinliuu@github"}}
2024/05/17 23:19:08 envknob: TS_NO_LOGS_NO_SUPPORT="true"
2024/05/17 23:19:08 logpolicy: using system state directory "/var/lib/tailscale"
2024/05/17 23:19:08 got LocalBackend in 62ms
[23:19:08] INFO: Service NGINX exited with code 256 (by signal 15)
s6-rc: info: service nginx successfully stopped
s6-rc: info: service init-nginx: stopping
s6-rc: info: service web: stopping
s6-rc: info: service init-nginx successfully stopped
[23:19:08] INFO: Service tailscaled exited with code 256 (by signal 15)
s6-rc: info: service tailscaled successfully stopped
[23:19:08] INFO: Service Tailscale web exited with code 256 (by signal 15)
s6-rc: info: service web successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service base-addon-log-level: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service base-addon-log-level successfully stopped
s6-rc: info: service base-addon-banner: stopping
s6-rc: info: service base-addon-banner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped

Not sure if that is because of nginx?

lmagyar commented 3 months ago

No not nginx. You doesn't have any default IPv4 interface. What are the outputs of the below 2 commands?

ip -4 route show 0/0
ip -6 route show ::/0

Do you have IPv6-only networking on your device? What is your installation type? Supervised?

lmagyar commented 3 months ago

New verion is out with a fix, but please answer my questions in the previous comment, because I think I should add an IPv6 optimization also, hardly you are the only user who has strange config. :)

austinliuu commented 3 months ago

Here you go

ip -4 route show 0/0

default via 192.168.1.1 dev end0  src 192.168.1.251  metric 100 
default via 192.168.1.1 dev wlan0  src 192.168.1.250  metric 600 

ip -6 route show ::/0

default via fe80::437:abff:fe5c:929e dev end0  metric 20100 
default via fe80::437:abff:fe5c:929e dev wlan0  metric 20600 

I run ha OS on a raspi 4 and this as an add-on, and as you see my router(openWrt) has both IPv4 and IPv6 DHCP server enabled

austinliuu commented 3 months ago

And I updated the add-on to 0.18.0.5but it seems the issue is still there 😔

s6-rc: info: service base-addon-log-level: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service base-addon-log-level successfully stopped
s6-rc: info: service base-addon-banner: stopping
s6-rc: info: service base-addon-banner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service base-addon-banner: starting

-----------------------------------------------------------
 Add-on: Tailscale with features
 Zero config VPN for building secure networks
-----------------------------------------------------------
 Add-on version: 0.18.0.5
 You are running the latest version of this add-on.
 System: Home Assistant OS 12.1  (aarch64 / raspberrypi4-64)
 Home Assistant Core: 2024.4.1
 Home Assistant Supervisor: 2024.05.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
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 init-nginx: starting
s6-rc: info: service web: starting
s6-rc: info: service tailscaled: starting
s6-rc: info: service web successfully started
s6-rc: info: service tailscaled successfully started
s6-rc: info: service post-tailscaled: starting
[23:23:57] INFO: Starting Tailscale web...
[23:23:57] INFO: Starting Tailscale...
netlink error: no device matches name (offset 24)
netlink error: No such device
s6-rc: warning: unable to start service post-tailscaled: command exited 92
[23:23:57] NOTICE: Tailscale logs will be suppressed after 200 lines, set add-on's configuration option 'log_level' to 'debug' to see further logs
s6-rc: info: service init-nginx successfully started
s6-rc: info: service nginx: starting
s6-rc: info: service nginx successfully started
2024/05/19 23:23:58 You have disabled logging. Tailscale will not be able to provide support.
2024/05/19 23:23:58 logtail started
2024/05/19 23:23:58 Program starting: v1.66.3-tc231c3da2-g7febb3078, Go 1.22.3: []string{"/opt/tailscaled", "--state=/data/tailscaled.state", "--statedir=/data/state", "--no-logs-no-support", "--tun=userspace-networking"}
2024/05/19 23:23:58 LogID: 0a753cc8859809d476c24badd6d107af5b11111152fb85010155a92fb5118429
2024/05/19 23:23:58 logpolicy: using system state directory "/var/lib/tailscale"
logpolicy.ConfigFromFile /var/lib/tailscale/tailscaled.log.conf: open /var/lib/tailscale/tailscaled.log.conf: no such file or directory
logpolicy.Config.Validate for /var/lib/tailscale/tailscaled.log.conf: config is nil
2024/05/19 23:23:58 dns: [resolved-ping=yes rc=unknown ret=direct]
2024/05/19 23:23:58 dns: using "direct" mode
2024/05/19 23:23:58 dns: using *dns.directManager
2024/05/19 23:23:58 wgengine.NewUserspaceEngine(tun "userspace-networking") ...
2024/05/19 23:23:58 dns: using dns.noopManager
2024/05/19 23:23:58 link state: interfaces.State{defaultRoute=end0 ifs={docker0:[172.30.232.1/23 llu6] end0:[192.168.1.251/24 2601:647:4b00:f4b::81c/128 2601:647:4b00:f4b:9ba1:245:8ef:37c1/64 llu6] hassio:[172.30.32.1/23 llu6] wlan0:[192.168.1.250/24 2601:647:4b00:f4b::9fc/128 2601:647:4b00:f4b:b43c:4607:c56b:9215/64 llu6]} v4=true v6=true}
2024/05/19 23:23:58 onPortUpdate(port=34641, network=udp6)
2024/05/19 23:23:58 onPortUpdate(port=41985, network=udp4)
2024/05/19 23:23:58 magicsock: disco key = d:530765349a957892
2024/05/19 23:23:58 Creating WireGuard device...
2024/05/19 23:23:58 Bringing WireGuard device up...
2024/05/19 23:23:58 Bringing router up...
2024/05/19 23:23:58 Clearing router settings...
2024/05/19 23:23:58 Starting network monitor...
2024/05/19 23:23:58 Engine created.
2024/05/19 23:23:58 pm: using backend prefs for "profile-eb05": Prefs{ra=true dns=true want=true webclient=true routes=[0.0.0.0/0 ::/0 192.168.1.0/24] snat=true statefulFiltering=true nf=on host="homeassistant" update=check Persist{lm=, o=, n=[qgZ/Q] u="austinliuu@github"}}
2024/05/19 23:23:58 envknob: TS_NO_LOGS_NO_SUPPORT="true"
/run/s6/basedir/scripts/rc.init: warning: s6-rc failed to properly bring all the services up! Check your logs (in /run/uncaught-logs/current if you have in-container logging) for more information.
/run/s6/basedir/scripts/rc.init: fatal: stopping the container.
2024/05/19 23:23:58 logpolicy: using system state directory "/var/lib/tailscale"
2024/05/19 23:23:58 got LocalBackend in 340ms
s6-rc: info: service nginx: stopping
s6-rc: info: service tailscaled: stopping
2024/05/19 23:23:58 Start
2024/05/19 23:24:00 timeout waiting for initial portlist
2024/05/19 23:24:00 Backend: logs: be:0a753cc8859809d476c24badd6d107af5b11111152fb85010155a92fb5118429 fe:
2024/05/19 23:24:00 control: client.Login(false, 0)
2024/05/19 23:24:00 health("overall"): error: not in map poll
2024/05/19 23:24:00 web server running on: http://127.0.0.1:25898
[23:24:00] INFO: Service NGINX exited with code 256 (by signal 15)
[23:24:00] INFO: Service tailscaled exited with code 256 (by signal 15)
s6-rc: info: service nginx successfully stopped
s6-rc: info: service init-nginx: stopping
s6-rc: info: service web: stopping
s6-rc: info: service tailscaled successfully stopped
s6-rc: info: service init-nginx successfully stopped
[23:24:01] INFO: Service Tailscale web exited with code 256 (by signal 15)
s6-rc: info: service web successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service base-addon-log-level: stopping
s6-rc: info: service base-addon-log-level successfully stopped
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service base-addon-banner: stopping
s6-rc: info: service base-addon-banner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
lmagyar commented 3 months ago

Yeah, I've thought you had no default interfaces, but you had multiple. My fault. New version is out, with log and PR is made to the official repo also (https://github.com/hassio-addons/addon-tailscale/pull/361).

austinliuu commented 3 months ago

Confirmed that 0.19.0.1 works