WebThingsIO / thing-url-adapter

Proxy adapter for Web Thing API endpoints
Mozilla Public License 2.0
22 stars 18 forks source link

thing-url-adapter dies in a continuous loop #32

Closed dhylands closed 6 years ago

dhylands commented 6 years ago

I'm not quite sure of the history behind this particular sdcard, but when the gateway starts I get the following spewed continuously:

2018-04-18 14:56:07.548 thing-url: Opening database: /home/pi/.mozilla-iot/config/db.sqlite3
2018-04-18 14:56:07.593 thing-url: Loading add-on for thing-url-adapter from /home/pi/.mozilla-iot/addons/thing-url-adapter
2018-04-18 14:56:08.178 thing-url: node: ../deps/uv/src/unix/poll.c:120: uv_poll_start: Assertion `!(((handle)->flags & (UV_CLOSING | UV_CLOSED)) != 0)' failed.
2018-04-18 14:56:08.186 Plugin: thing-url-adapter died, code = null restarting...

There are no things configured

dhylands commented 6 years ago

It seems to be related to the Eddystone discovery. Commenting out this line in the adapter makes it stop crashing:

startEddystoneDiscovery(adapter);
mrstegeman commented 6 years ago

What RPi version?

dhylands commented 6 years ago

RPi 3B+

I tried to reproduce by flashing the official 0.4.0 image and its not happening, so this could just be something weird.

mrstegeman commented 6 years ago

Ok. It works fine on my 3B as well.

dhylands commented 6 years ago

I have a feeling it might have been an older pre-release on the sdcard, so closing this for now.