Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failscale keeps stops after a few hours #461

Open
Eyegraphic-be opened this issue Feb 3, 2025 · 5 comments
Open

Failscale keeps stops after a few hours #461

Eyegraphic-be opened this issue Feb 3, 2025 · 5 comments

Comments

@Eyegraphic-be
Copy link

Hi,

I have a problem with Tailscale on HA (Raspberry 3B+).
When I press 'Start', the software starts running and I can connect to HA from outside of my network.
But after a few hours Tailscale stops working.

That's very annoying.

I've set the DNS and HTTPS settings inside of Tailscale and HA.
I assume all the settings are correct because it works correctly (for a while...)

Can somebody help me out please?

I've added some relevant log files:

2025/01/31 16:12:58 onPortUpdate(port=57122, network=udp6)
2025/01/31 16:12:58 onPortUpdate(port=54209, network=udp4)
2025/01/31 16:12:58 magicsock: disco key = d:773e581fcbad0f0e
2025/01/31 16:12:58 Creating WireGuard device...
2025/01/31 16:12:58 Bringing WireGuard device up...
2025/01/31 16:12:58 Bringing router up...
2025/01/31 16:12:58 Clearing router settings...
2025/01/31 16:12:58 Starting network monitor...
2025/01/31 16:12:58 Engine created.
2025/01/31 16:12:59 pm: using backend prefs for "profile-fa19": Prefs{ra=true dns=true want=true routes=[0.0.0.0/0 ::/0 192.168.0.0/24] snat=true statefulFiltering=false nf=on host="homeassistant" update=check appconnector=advertise Persist{lm=, o=, n=[yy8nA] u="[email protected]"}}
2025/01/31 16:12:59 envknob: TS_NO_LOGS_NO_SUPPORT="true"
2025/01/31 16:12:59 logpolicy: using system state directory "/var/lib/tailscale"
2025/01/31 16:12:59 got LocalBackend in 285ms
2025/01/31 16:12:59 Start
2025/01/31 16:12:59 Backend: logs: be:8cc94fbbd6e08c67d9b8f0b1d7a43ac1b7869fd1fa167175d3a2ba9d05b1aca8 fe:
2025/01/31 16:12:59 control: client.Login(0)
2025/01/31 16:12:59 health(warnable=warming-up): error: Tailscale is starting. Please wait.
[16:13:00] ERROR: Tailscale's HTTPS support is disabled
2025/01/31 16:12:59 control: doLogin(regen=false, hasUrl=false)
2025/01/31 16:13:00 control: control server key from [https://controlplane.tailscale.com](https://l.facebook.com/l.php?u=https%3A%2F%2Fcontrolplane.tailscale.com%2F%3Ffbclid%3DIwZXh0bgNhZW0CMTAAAR1pXX96UB4hHvpS2jhGlkMB0B0qy4mPlIxL_s6o7-nAHSJl05UZWek87EQ_aem_Q8_N17S9Y7gy2dtLGIl2uA&h=AT08e7jMGjbjpVOvbF3rEGmmcfTJA7ifuuhZqfDUYku0Re_fqt4X67z12WrmYxgFKWLP4wArFeCvLWYrw1-nhC7UIn_RYgR5qWAK73tWj0wPtqKqgg2Em3Phs3EQUaOTmpI-Itc&__tn__=-UK-R&c[0]=AT2eP7wpdHqeT7bLGsR6zmUrT7KF_memUj7bS1mDlDpYmxEjUj6Xs1L9wMeeXwdFoU3l0NojrRhAqrJfPlHd8jszup4A1mNM3JcJUf0Re9pkBsQijVybGkpSawMngcP4pIAvv7oI_0DgYXHN2dt0VAdxWuv9Vdqivj99NM6h): ts2021=[fSeS+], legacy=[nlFWp]
[16:13:00] INFO: Service serve exited with code 1 (by signal 0)
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service taildrop: stopping
s6-rc: info: service serve: stopping
s6-rc: info: service nginx: stopping
s6-rc: info: service serve successfully stopped
[16:13:01] INFO: Service taildrop exited with code 256 (by signal 15)
s6-rc: info: service taildrop successfully stopped
s6-rc: info: service post-tailscaled: stopping
s6-rc: info: service post-tailscaled successfully stopped
s6-rc: info: service tailscaled: stopping
[16:13:01] INFO: Service NGINX exited with code 0 (by signal 0)
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
[16:13:01] INFO: Service tailscaled exited with code 256 (by signal 15)
s6-rc: info: service tailscaled successfully stopped
[16:13: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 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
Zero config VPN for building secure networks
Add-on version: 0.24.0
You are running the latest version of this add-on.
System: Home Assistant OS 14.2 (aarch64 / raspberrypi3-64)
Home Assistant Core: 2025.1.4
Home Assistant Supervisor: 2024.12.3
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
[21:32:51] INFO: Starting Tailscale web...
[21:32:51] INFO: Starting Tailscale...
[21:32:51] 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
@lmagyar
Copy link
Contributor

lmagyar commented Feb 3, 2025

ERROR: Tailscale's HTTPS support is disabled

Means you try to use serve(proxy) or funnel, and HTTPS is not enabled. See the DOCS.

But after a few hours Tailscale stops working.

This is during startup, not after hours.

@Eyegraphic-be
Copy link
Author

Hi,

Thank you for your answer, those lines of code were already in my config file.

Image

Below the log files of the latest start.
Only 7 minutes later, Tailscale already stopped working:

-----------------------------------------------------------
 Add-on: Tailscale
 Zero config VPN for building secure networks
-----------------------------------------------------------
 Add-on version: 0.24.0
 You are running the latest version of this add-on.
 System: Home Assistant OS 14.2  (aarch64 / raspberrypi3-64)
 Home Assistant Core: 2025.1.4
 Home Assistant Supervisor: 2024.12.3
-----------------------------------------------------------
 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
[18:47:49] INFO: Starting Tailscale web...
[18:47:49] INFO: Starting Tailscale...
[18:47:49] 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
2025/02/03 18:47:52 You have disabled logging. Tailscale will not be able to provide support.
2025/02/03 18:47:52 logtail started
2025/02/03 18:47:52 Program starting: v1.78.1-t8903926f7-gc4163954e, Go 1.23.3: []string{"/opt/tailscaled", "--state=/data/tailscaled.state", "--statedir=/data/state", "--no-logs-no-support", "--tun=userspace-networking"}
2025/02/03 18:47:52 LogID: 015cfb65afd4f92b0d209aa896107867cc66279f49c5d6ed10d5fae8ebfae8e9
2025/02/03 18:47:52 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
2025/02/03 18:47:52 dns: [resolved-ping=yes rc=unknown ret=direct]
2025/02/03 18:47:52 dns: using "direct" mode
2025/02/03 18:47:52 dns: using *dns.directManager
2025/02/03 18:47:52 dns: inotify addwatch: context canceled
2025/02/03 18:47:52 wgengine.NewUserspaceEngine(tun "userspace-networking") ...
2025/02/03 18:47:52 dns: using dns.noopManager
2025/02/03 18:47:52 link state: interfaces.State{defaultRoute=enu1u1u1 ifs={docker0:[172.30.232.1/23 llu6] enu1u1u1:[192.168.0.47/24 llu6] hassio:[172.30.32.1/23 llu6]} v4=true v6=false}
2025/02/03 18:47:52 onPortUpdate(port=46816, network=udp6)
2025/02/03 18:47:52 onPortUpdate(port=54417, network=udp4)
2025/02/03 18:47:52 magicsock: disco key = d:60a18ac4dbcd2e9a
2025/02/03 18:47:52 Creating WireGuard device...
2025/02/03 18:47:52 Bringing WireGuard device up...
2025/02/03 18:47:52 Bringing router up...
2025/02/03 18:47:52 Clearing router settings...
2025/02/03 18:47:52 Starting network monitor...
2025/02/03 18:47:52 Engine created.
2025/02/03 18:47:52 pm: using backend prefs for "profile-fa19": Prefs{ra=true dns=true want=true routes=[0.0.0.0/0 ::/0 192.168.0.0/24] snat=true statefulFiltering=false nf=on host="homeassistant" update=check appconnector=advertise Persist{lm=, o=, n=[yy8nA] u="[email protected]"}}
2025/02/03 18:47:52 envknob: TS_NO_LOGS_NO_SUPPORT="true"
2025/02/03 18:47:52 logpolicy: using system state directory "/var/lib/tailscale"
2025/02/03 18:47:52 got LocalBackend in 110ms
2025/02/03 18:47:52 Start
2025/02/03 18:47:52 Backend: logs: be:015cfb65afd4f92b0d209aa896107867cc66279f49c5d6ed10d5fae8ebfae8e9 fe:
2025/02/03 18:47:52 control: client.Login(0)
2025/02/03 18:47:52 health(warnable=warming-up): error: Tailscale is starting. Please wait.
2025/02/03 18:47:52 web server running on: http://127.0.0.1:25899
[18:47:52] INFO: Starting NGinx...
2025/02/03 18:47:52 control: doLogin(regen=false, hasUrl=false)
2025/02/03 18:47:53 control: control server key from https://controlplane.tailscale.com: ts2021=[fSeS+], legacy=[nlFWp]
2025/02/03 18:47:53 control: RegisterReq: onode= node=[yy8nA] fup=false nks=false
2025/02/03 18:47:53 control: RegisterReq: got response; nodeKeyExpired=false, machineAuthorized=true; authURL=false
2025/02/03 18:47:53 health(warnable=not-in-map-poll): ok
2025/02/03 18:47:53 control: netmap: got new dial plan from control
2025/02/03 18:47:53 active login: [email protected]
2025/02/03 18:47:53 Switching ipn state NoState -> Starting (WantRunning=true, nm=true)
2025/02/03 18:47:53 appc: handling domains: [] and wildcards: []
2025/02/03 18:47:53 monitor: gateway and self IP changed: gw=192.168.0.1 self=192.168.0.47
2025/02/03 18:47:53 magicsock: SetPrivateKey called (init)
2025/02/03 18:47:53 wgengine: Reconfig: configuring userspace WireGuard config (with 0/3 peers)
2025/02/03 18:47:53 wgengine: Reconfig: configuring router
2025/02/03 18:47:53 wgengine: Reconfig: configuring DNS
2025/02/03 18:47:53 dns: Set: {DefaultResolvers:[] Routes:{platy-spica.ts.net.:[] ts.net.:[199.247.155.53 2620:111:8007::53]}+65arpa SearchDomains:[platy-spica.ts.net.] Hosts:4}
2025/02/03 18:47:53 health(warnable=dns-read-os-config-failed): error: Tailscale failed to fetch the DNS configuration of your device: getting OS base config is not supported
2025/02/03 18:47:53 health(warnable=dns): error: getting OS base config is not supported
2025/02/03 18:47:53 peerapi: serving on http://100.69.57.68:40458
2025/02/03 18:47:53 peerapi: serving on http://[fd7a:115c:a1e0::8801:3944]:40458
2025/02/03 18:47:53 appc: handling domains: [] and wildcards: []
2025/02/03 18:47:54 magicsock: home DERP changing from derp-0 [0ms] to derp-14 [18ms]
2025/02/03 18:47:54 magicsock: home is now derp-14 (ams)
2025/02/03 18:47:54 magicsock: adding connection to derp-14 for home-keep-alive
2025/02/03 18:47:54 magicsock: 1 active derp conns: derp-14=cr0s,wr0s
2025/02/03 18:47:54 Switching ipn state Starting -> Running (WantRunning=true, nm=true)
2025/02/03 18:47:54 derphttp.Client.Connect: connecting to derp-14 (ams)
2025/02/03 18:47:54 control: NetInfo: NetInfo{varies=false hairpin= ipv6=false ipv6os=true udp=true icmpv4=false derp=#14 portmap= link="" firewallmode=""}
2025/02/03 18:47:54 health(warnable=warming-up): ok
2025/02/03 18:47:54 health(warnable=no-derp-connection): ok
2025/02/03 18:47:54 magicsock: endpoints changed: 178.51.20.56:17234 (stun), 172.30.32.1:54417 (local), 172.30.232.1:54417 (local), 192.168.0.47:54417 (local)
2025/02/03 18:47:54 health(warnable=no-derp-connection): ok
2025/02/03 18:47:54 health(warnable=no-derp-connection): ok
2025/02/03 18:47:54 [RATELIMIT] format("health(warnable=%s): ok")
[18:47:55] INFO: Tailscale is running
[18:47:55] WARNING: The connection's key will expire on: 2025-07-29T17:40:47Z
[18:47:55] WARNING: Consider disabling key expiry to avoid losing connection to your Home Assistant device.
[18:47:55] WARNING: Please check your configuration based on the add-on's documentation under "Configuration"
[18:47:55] NOTICE: The add-on uses userspace networking mode.
[18:47:55] NOTICE: If you need to access other clients on your tailnet from your Home Assistant instance,
[18:47:55] NOTICE: disable userspace networking mode, that will create a "tailscale0" network interface on your host.
[18:47:55] NOTICE: Please check your configuration based on the add-on's documentation under "Option: userspace_networking"
s6-rc: info: service post-tailscaled successfully started
s6-rc: info: service taildrop: starting
s6-rc: info: service serve: starting
s6-rc: info: service serve successfully started
s6-rc: info: service taildrop successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
2025/02/03 18:47:54 magicsock: derp-14 connected; connGen=1
Available within your tailnet:
https://homeassistant.platy-spica.ts.net/
|-- proxy http://127.0.0.1:8123
Press Ctrl+C to exit.
2025/02/03 18:47:57 serve: creating a new proxy handler for http://127.0.0.1:8123
2025/02/03 18:48:36 wgengine: idle peer [e3t+e] now active, reconfiguring WireGuard
2025/02/03 18:48:36 wgengine: Reconfig: configuring userspace WireGuard config (with 1/3 peers)
./run: line 45:   219 Killed                  /opt/tailscaled "${options[@]}" 2>&1
       223 Done                    | stdbuf -i0 -oL -eL sed -n -e '1,200p' -e "201c[further tailscaled logs suppressed, set add-on's configuration option 'log_level' to 'debug' to see further tailscaled logs]"
unexpected EOF
2025/02/03 18:48:37 magicsock: disco: node [e3t+e] d:7f8bd68540e6909e now using 192.168.0.22:39861 mtu=1360 tx=9e60f5f13976
moved 0/0 files
getting WaitingFiles: Get "http://local-tailscaled.sock/localapi/v0/files/?waitsec=0": EOF
[18:53:35] INFO: Service tailscaled exited with code 137 (by signal 0)
[18:53:35] INFO: Service serve exited with code 1 (by signal 0)
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service taildrop: stopping
s6-rc: info: service serve: stopping
s6-rc: info: service nginx: stopping
s6-rc: info: service serve successfully stopped
[18:53:35] INFO: Service taildrop exited with code 256 (by signal 15)
s6-rc: info: service taildrop successfully stopped
s6-rc: info: service post-tailscaled: stopping
s6-rc: info: service post-tailscaled successfully stopped
[18:53:35] INFO: Service NGINX exited with code 0 (by signal 0)
s6-rc: info: service tailscaled: stopping
s6-rc: info: service tailscaled successfully stopped
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
[18:53:41] 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

@lmagyar
Copy link
Contributor

lmagyar commented Feb 3, 2025

./run: line 45:   219 Killed                  /opt/tailscaled "${options[@]}" 2>&1
       223 Done                    | stdbuf -i0 -oL -eL sed -n -e '1,200p' -e "201c[further tailscaled logs suppressed, set add-on's configuration option 'log_level' to 'debug' to see further tailscaled logs]"
unexpected EOF
...
[18:53:35] INFO: Service tailscaled exited with code 137 (by signal 0)

You've sent kill -9 to tailscaled, and it stopped, what else do you expect?

@Eyegraphic-be
Copy link
Author

I just followed the steps to install and configure Tailscale from this tutorial: https://tailscale.com/blog/remotely-access-home-assistant

I stopped at configuring the own domain because I don't need that.

What could be triggering the kill command on HA?

@lmagyar
Copy link
Contributor

lmagyar commented Feb 3, 2025

Forget any video, uninstall the add-on, reinstall the add-on, read the add-on docs (!!!), it works (with basic functionality) out of the box without any config. After it works, start to configure it step by step.

Github is for issues with the add-on, this is clearly not an add-on related problem, please read the docs and visit the forum or discord for help on how to configure it or Tailscale. Though if you find an error in the add-on docs, we are happy to fix that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants