Ich hatte dieses Problem auch schon öfters. Hatte noch nicht die Muße auf Ursachenforschung zu gehen. Bei mir läuft der Unifi Controller in einem proxmox LXC Container, welcher regelmäßig auch ein Backup Nachts macht. Ich vermute, dass es damit zusammenhängt.
Hab gerade mal mein Log rausgesucht. Um 4 Uhr Nachts für dier Unifi Controller angehalten und proxmox macht ein Backup. Das kommt dann im ioBroker Log
12 Sep 2021 04:02:33.610
host.ioBroker Do not restart adapter system.adapter.unifi.0 because restart loop detected
12 Sep 2021 04:02:33.609
host.ioBroker Restart adapter system.adapter.unifi.0 because enabled
12 Sep 2021 04:02:33.608
host.ioBroker instance system.adapter.unifi.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
12 Sep 2021 04:02:33.606
host.ioBroker Caught by controller[0]: at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1144:16)
12 Sep 2021 04:02:33.605
host.ioBroker Caught by controller[0]: Error: connect EHOSTUNREACH 192.168.178.60:8443
12 Sep 2021 04:02:33.603
host.ioBroker Caught by controller[0]: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
12 Sep 2021 04:02:29.059
unifi.0 (5543) UniFi adapter is ready
12 Sep 2021 04:02:28.953
unifi.0 (5543) starting. Version 0.5.10 in /opt/iobroker/node_modules/iobroker.unifi, node: v12.21.0, js-controller: 3.3.15
12 Sep 2021 04:02:23.915
host.ioBroker instance system.adapter.unifi.0 started with pid 5543
12 Sep 2021 04:01:53.295
host.ioBroker Restart adapter system.adapter.unifi.0 because enabled
12 Sep 2021 04:01:53.293
host.ioBroker instance system.adapter.unifi.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
12 Sep 2021 04:01:53.280
host.ioBroker Caught by controller[0]: at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1144:16)
12 Sep 2021 04:01:53.279
host.ioBroker Caught by controller[0]: Error: connect EHOSTUNREACH 192.168.178.60:8443
12 Sep 2021 04:01:53.278
host.ioBroker Caught by controller[0]: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
12 Sep 2021 04:01:47.638
unifi.0 (5521) UniFi adapter is ready
12 Sep 2021 04:01:47.551
unifi.0 (5521) starting. Version 0.5.10 in /opt/iobroker/node_modules/iobroker.unifi, node: v12.21.0, js-controller: 3.3.15
12 Sep 2021 04:01:40.954
host.ioBroker instance system.adapter.unifi.0 started with pid 5521
12 Sep 2021 04:01:33.426
host.ioBroker instance system.adapter.daswetter.0 terminated with code 0 (NO_ERROR)
12 Sep 2021 04:01:12.144
host.ioBroker instance system.adapter.ical.3 terminated with code 0 (NO_ERROR)
12 Sep 2021 04:01:09.992
host.ioBroker Restart adapter system.adapter.unifi.0 because enabled
12 Sep 2021 04:01:09.990
host.ioBroker instance system.adapter.unifi.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
12 Sep 2021 04:01:09.988
host.ioBroker Caught by controller[0]: at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1144:16)
12 Sep 2021 04:01:09.987
host.ioBroker Caught by controller[0]: Error: connect EHOSTUNREACH 192.168.178.60:8443
12 Sep 2021 04:01:09.985
host.ioBroker Caught by controller[0]: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason: