Poeschl / Hassio-Addons

The repository for my Home Assistant Supervisor Add-ons.
Apache License 2.0
298 stars 89 forks source link

syncthing crashloop on startup #474

Open shish opened 2 months ago

shish commented 2 months ago

Which addon? syncthing

Describe the bug Crash-looping with this in the logs:

[17:42:17] INFO: Post-Start syncthing setup
syncthing: error: Post "http://172.30.33.1:8384/rest/system/config": EOF
s6-rc: warning: unable to start service syncthing-setup: command exited 1
/run/s6/basedir/scripts/rc.init: fatal: stopping the container.

Looks like the final line of https://github.com/Poeschl/Hassio-Addons/blob/main/syncthing/root/etc/s6-overlay/s6-rc.d/syncthing-setup/run is failing, though I can't tell why. The rest of the logs show syncthing starting up correctly, and notably the error is "EOF" rather than "connection refused", which is weird.

Running the same syncthing cli command on my laptop, I managed to get the EOF error once, but all the other times it worked. On home assistant, it is failing every time D:

System

shish commented 2 months ago

I have hacked around this by making a fork with || true on the end of that command line, so it silently fails to hide the warning, instead of crash-looping - which feels like a band-aid but not ideal...