question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I can read this in the wiki Installing page:

It will probably give you errors about missing modules. Install these using npm install <module name>, replacing <module name> with the name of the module it is missing. After installing the module it wanted, run npm rebuild and try to run the server again with node Core.js. Repeat installing missing modules until the server launches with no errors. HAP-NodeJS is now all set up.

Why these modules are not installed by npm install? It should be simple put these dependecies in the package.json.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
RikyTrescommented, Feb 28, 2017

Problem solved: avahi in not the only pakage required. We need nss-mdns too.

After this installation reboot is needed to make all run without errors.

And then we can run avahi daemon with sudo avahi-daemon. Now we can run node Core.js and have fun with HAP-nodeJS.

0reactions
RikyTrescommented, Feb 28, 2017

Ok, I search deep inside debian package website and try to search each term that looks important. So I found avahi pacman package (avahi-0.6.32-3). that is:

Service Discovery for Linux using mDNS/DNS-SD – compatible with Bonjour".

Is it what we are looking for?

I run sudo pacman -Ss avahi and npm install procedure goes well and no error occurred.

Anyway… I try to run node Core.js and I see this:

*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>
HAP-NodeJS starting...
/opt/HAP-NodeJS/node_modules/mdns/lib/advertisement.js:56
  dns_sd.DNSServiceRegister(self.serviceRef, flags, ifaceIdx, name,
         ^

Error: dns service error: unknown
    at new Advertisement (/opt/HAP-NodeJS/node_modules/mdns/lib/advertisement.js:56:10)
    at Object.create [as createAdvertisement] (/opt/HAP-NodeJS/node_modules/mdns/lib/advertisement.js:64:10)
    at Advertiser.startAdvertising (/opt/HAP-NodeJS/lib/Advertiser.js:43:30)
    at Accessory._onListening (/opt/HAP-NodeJS/lib/Accessory.js:549:20)
    at emitOne (events.js:96:13)
    at HAPServer.emit (events.js:189:7)
    at HAPServer._onListening (/opt/HAP-NodeJS/lib/HAPServer.js:190:8)
    at emitOne (events.js:96:13)
    at EventedHTTPServer.emit (events.js:189:7)
    at EventedHTTPServer.<anonymous> (/opt/HAP-NodeJS/lib/util/eventedhttp.js:65:10)
Read more comments on GitHub >

github_iconTop Results From Across the Web

Missing modules (cat /proc/modules; ls /dev) and UUID doesn ...
Your empty output from cat /proc/modules indicates you have no kernel modules loaded, so something has gone wrong with either initrd file ...
Read more >
How to fix "The following module is missing from the file ...
Enable devel module and on the administrative interface go to /devel/config, edit core.extension delete missing module entry. Use the point-and-click, ...
Read more >
Troubleshooting Missing Modules - SugarCRM Support Site
This article will cover how to verify if a module is hidden from view and the steps required to make a module visible...
Read more >
[solved] missing modules (cat /proc/modules; ls /dev)
missing modules (cat /proc/modules; ls /dev) I can boot up Windows just fine and I can't think of anything I did between last...
Read more >
Java Startup Detection of Missing Modules - Section.io
This article introduces the learner to java modules used in java programming. Java Startup Detection of Missing Modules in a module with ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found