Tradfri Setup lost after HASS restart

Hello,

I have a tradfri gateway configured. After I reboot HASS (0.99.2 on hassbian) the connection with trafdri gateway is lost. At the Integration menu the tradfri connection is there but not active. After removing and adding it again with ip and code all is working until I reboot HASS.

2019-10-07 16:03:27 ERROR (MainThread) [coap] Exception CancelledError() can not be represented as errno, setting -1.
2019-10-07 16:03:27 ERROR (MainThread) [homeassistant.components.tradfri] Tradfri setup failed.

Is the only thing what is logged.

How can this be fixed?

I appear to have the same problem, did you manage to get it fixed? Although mine doesn’t work at all, even if I manually add the IP.

After doing a bit of searching, I’m not sure this is a Home Assistant issue, it seems that a recent firmware update for the Tradfri gateway has caused a few issues including homekit functionality, I’ve also noticed that the app on my Android phone sometimes can’t find the gateway unless I reboot it (the gateway). It’s also unusual that there aren’t a lot of people reporting the same issue on here. Perhaps we’re the unlucky ones.

Yesterday and today I have no problems with reboots. I have no clue why it is happening for somedays.