I have noticed that my HA instance has started to restart fairly regularly after a few days of stability.
Looking at home-assistant.log there are two consistent pre-reboot errors I can see is the below, though unsure which is triggering the restart, if either:
2022-12-28 01:20:03.820 ERROR (Thread-2 (_connect)) [root] Uncaught thread exception
Traceback (most recent call last):
File "/usr/local/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/usr/local/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.10/site-packages/RFXtrx/__init__.py", line 1002, in _connect
event = self.transport.receive_blocking()
File "/usr/local/lib/python3.10/site-packages/RFXtrx/__init__.py", line 883, in receive_blocking
data = self.sock.recv(pkt[0]+1 - len(pkt))
OSError: [Errno 9] Bad file descriptor
2022-12-28 01:20:13.200 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /homeassistant/restart request
This seems to suggest the socket to the rfxtrx wifi module has dropped (not sure why) - but also not clear why this is would cause a reboot