Open flatsiedatsie opened 3 years ago
Was the network connection active? This should only happen if the network is down.
If the network was down, then this wasn't on purpose. I had another look at the logs, and found more of the same right after a reboot.
what server is this addon trying to reach?
It’s sending mDNS broadcasts, looking for web things on the network.
This issue is still active. After the first error:
2021-03-29 07:55:49.482 ERROR : thing-url-adapter: events.js:174 2021-03-29 07:55:49.483 ERROR : thing-url-adapter: throw er; // Unhandled 'error' event 2021-03-29 07:55:49.483 ERROR : thing-url-adapter: ^ 2021-03-29 07:55:49.484 ERROR : thing-url-adapter: 2021-03-29 07:55:49.485 ERROR : thing-url-adapter: Error: send ENETUNREACH 224.0.0.251:5353 2021-03-29 07:55:49.486 ERROR : thing-url-adapter: at SendWrap.afterSend [as oncomplete] (dgram.js:467:11) 2021-03-29 07:55:49.486 ERROR : thing-url-adapter: Emitted 'error' event at: 2021-03-29 07:55:49.487 ERROR : thing-url-adapter: at Browser._onError (/home/pi/.webthings/addons/thing-url-adapter/node_modules/dnssd/lib/Browser.js:146:8) 2021-03-29 07:55:49.488 ERROR : thing-url-adapter: at Object.onceWrapper (events.js:286:20) 2021-03-29 07:55:49.489 ERROR : thing-url-adapter: at NetworkInterface.emit (events.js:203:15) 2021-03-29 07:55:49.490 ERROR : thing-url-adapter: at NetworkInterface._onError (/home/pi/.webthings/addons/thing-url-adapter/node_modules/dnssd/lib/NetworkInterface.js:438:8) 2021-03-29 07:55:49.491 ERROR : thing-url-adapter: at SendWrap.callback (/home/pi/.webthings/addons/thing-url-adapter/node_modules/dnssd/lib/NetworkInterface.js:393:50) 2021-03-29 07:55:49.491 ERROR : thing-url-adapter: at SendWrap.afterSend [as oncomplete] (dgram.js:472:8) 2021-03-29 07:55:54.425 INFO : Plugin: thing-url-adapter died, code = 1 restarting after 30000
thousands of them come and appear communication problems, e.g. Gateway does not receive data from all nodes for 5 hours.
I'm not sure, but it may also influence the working of the Gateway. Once I manually disabled this addon, another addon was able to complete initialisation. Perhaps it was just a coïncidence though.
In this case it seemed related to mDNS discovery.
2021-06-07 20:46:56.482 INFO : thing-url-adapter: Opening database: /home/pi/.webthings/config/db.sqlite3
2021-06-07 20:46:56.833 INFO : thing-url-adapter: Ignoring https://raw.githubusercontent.com/WebThingsIO/gateway-addon-ipc-schema/master/schema.json because it has no messageType
2021-06-07 20:47:16.871 INFO : thing-url-adapter: Ignoring https://raw.githubusercontent.com/WebThingsIO/gateway-addon-ipc-schema/master/messages/definitions.json because it has no messageType
2021-06-07 20:48:10.505 INFO : thing-url-adapter: Loading add-on thing-url-adapter from /home/pi/.webthings/addons/thing-url-adapter
2021-06-07 20:48:13.771 INFO : thing-url-adapter: Starting mDNS discovery
2021-06-07 20:49:00.162 ERROR : thing-url-adapter: events.js:174
2021-06-07 20:49:00.182 ERROR : thing-url-adapter: throw er; // Unhandled 'error' event
2021-06-07 20:49:00.200 ERROR : thing-url-adapter: ^
2021-06-07 20:49:00.218 ERROR : thing-url-adapter:
2021-06-07 20:49:00.237 ERROR : thing-url-adapter: Error: send ENETUNREACH 224.0.0.251:5353
2021-06-07 20:49:00.258 ERROR : thing-url-adapter: at SendWrap.afterSend [as oncomplete] (dgram.js:467:11)
2021-06-07 20:49:00.266 ERROR : thing-url-adapter: Emitted 'error' event at:
2021-06-07 20:49:00.277 ERROR : thing-url-adapter: at Browser._onError (/home/pi/.webthings/addons/thing-url-adapter/node_modules/dnssd/lib/Browser.js:146:8)
2021-06-07 20:49:00.289 ERROR : thing-url-adapter: at Object.onceWrapper (events.js:286:20)
2021-06-07 20:49:00.298 ERROR : thing-url-adapter: at NetworkInterface.emit (events.js:203:15)
2021-06-07 20:49:00.310 ERROR : thing-url-adapter: at NetworkInterface._onError (/home/pi/.webthings/addons/thing-url-adapter/node_modules/dnssd/lib/NetworkInterface.js:438:8)
2021-06-07 20:49:00.320 ERROR : thing-url-adapter: at SendWrap.callback (/home/pi/.webthings/addons/thing-url-adapter/node_modules/dnssd/lib/NetworkInterface.js:393:50)
2021-06-07 20:49:00.329 ERROR : thing-url-adapter: at SendWrap.afterSend [as oncomplete] (dgram.js:472:8)
2021-06-07 20:49:00.390 INFO : Plugin: thing-url-adapter died, code = 1 restarting after 0
On a fresh gateway with a tunnel I noticed a lot of this in the internal logs: