Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gateway crashed in dnssd #1650

Closed
dhylands opened this issue Feb 13, 2019 · 2 comments · Fixed by #2495
Closed

gateway crashed in dnssd #1650

dhylands opened this issue Feb 13, 2019 · 2 comments · Fixed by #2495
Assignees

Comments

@dhylands
Copy link
Contributor

dhylands commented Feb 13, 2019

I rebooted my Wifi modem (the one that connects to my ISP) this morning and the gateway crashed.
The last thing on the console was the following error:

2019-02-13 06:55:23.656 ERROR  : 
2019-02-13 06:55:23.657 ERROR  : /home/dhylands/moziot/gateway/node_modules/dnssd/lib/ExpiringRecordCollection.js:243
      this._getRelatedRecords(record.namehash).forEach(function (related) {
                                               ^
2019-02-13 06:55:23.657 ERROR  : TypeError: Cannot read property 'equals' of undefined
    at /home/dhylands/moziot/gateway/node_modules/dnssd/lib/ExpiringRecordCollection.js:245:21
    at Array.forEach (<anonymous>)
    at ExpiringRecordCollection.flushRelated (/home/dhylands/moziot/gateway/node_modules/dnssd/lib/ExpiringRecordCollection.js:243:48)
    at /home/dhylands/moziot/gateway/node_modules/dnssd/lib/NetworkInterface.js:329:39
    at Array.forEach (<anonymous>)
    at NetworkInterface._addToCache (/home/dhylands/moziot/gateway/node_modules/dnssd/lib/NetworkInterface.js:328:19)
    at NetworkInterface._onMessage (/home/dhylands/moziot/gateway/node_modules/dnssd/lib/NetworkInterface.js:304:10)
    at Socket.<anonymous> (/home/dhylands/moziot/gateway/node_modules/dnssd/lib/NetworkInterface.js:222:14)
    at emitTwo (events.js:126:13)
    at Socket.emit (events.js:214:7)
    at UDP.onMessage (dgram.js:659:8)

It looks like a bug in dnssd and not the gateway itself, but I thought I would record the error in case it was useful.

@mrstegeman
Copy link
Contributor

Hopefully we can just stop using this module when we switch to OpenWrt and do something via uci instead. We've encountered other issues with this module as well, and it seems unmaintained.

@mrstegeman
Copy link
Contributor

@mrstegeman mrstegeman added this to Inbox in WebThings Gateway Mar 26, 2019
mrstegeman added a commit to mrstegeman/gateway that referenced this issue May 14, 2020
@mrstegeman mrstegeman self-assigned this May 14, 2020
mrstegeman added a commit to mrstegeman/gateway that referenced this issue May 14, 2020
mrstegeman added a commit to mrstegeman/gateway that referenced this issue May 15, 2020
WebThings Gateway automation moved this from Inbox to Done May 15, 2020
mrstegeman added a commit that referenced this issue May 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging a pull request may close this issue.

2 participants