Homebridge: I have a dns error and I dont know how to fix it!

Created on 6 Nov 2016  Β·  5Comments  Β·  Source: homebridge/homebridge

I tried to installation it on ubuntu but i have this problème now ! rty@localhost:~$ sudo homebridge
* WARNING The program 'nodejs' 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=nodejs
WARNING The program 'nodejs' 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=nodejs&f=DNSServiceRegister
[11/5/2016, 4:34:26 PM] Loaded plugin: homebridge-http
[11/5/2016, 4:34:27 PM] Registering accessory 'homebridge-http.Http'
[11/5/2016, 4:34:27 PM] ---
[11/5/2016, 4:34:27 PM] Loaded config.json with 1 accessories and 0 platforms.
[11/5/2016, 4:34:27 PM] ---
[11/5/2016, 4:34:27 PM] Loading 0 platforms...
[11/5/2016, 4:34:27 PM] Loading 1 accessories...
[11/5/2016, 4:34:27 PM] [Chambre] Initializing Http accessory...
Scan this code with your HomeKit App on your iOS device to pair with Homebridge:

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ 031-45-154 β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
/usr/lib/node_modules/homebridge/node_modules/mdns/lib/advertisement.js:56
dns_sd.DNSServiceRegister(self.serviceRef, flags, ifaceIdx, name,
^

Error: dns service error: unknown
at Error (native)
at new Advertisement (/usr/lib/node_modules/homebridge/node_modules/mdns/lib/advertisement.js:56:10)
at Object.create as createAdvertisement
at Advertiser.startAdvertising (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Advertiser.js:43:30)
at Bridge.Accessory._onListening (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:526:20)
at emitOne (events.js:96:13)
at HAPServer.emit (events.js:188:7)
at HAPServer._onListening (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:185:8)
at emitOne (events.js:96:13)
at EventedHTTPServer.emit (events.js:188:7)

stale

Most helpful comment

i had to log into the container to run the avahi manually by giving following command.. in case its helpful to anyone else

/etc/init.d/dbus start
avahi-daemon --debug --no-drop-root

All 5 comments

Check out #527 ?

I had the same issue but didn't find anything how to solve it. At the end I figured out as I run homebridge inside of a docker with the commandline including --net=host that the Bonjour service port 5353 was already occupied by some other process. You can check if the port is already taken by some process with

netstat -anp | grep 5353

This will list something like:

`
[~] # netstat -anp | grep 5353

netstat: /proc/net/tcp6: No such file or directory
udp 533760 0 0.0.0.0:5353 0.0.0.0:* 13315/python
udp 533760 0 0.0.0.0:5353 0.0.0.0:* 13315/python
udp 533760 0 0.0.0.0:5353 0.0.0.0:* 13315/python
udp 533760 0 0.0.0.0:5353 0.0.0.0:* 13315/python
`

the 13315 is the pid which you then can check what the process is.

can you let me know how you figured out it was the port. i am getting the same error and i disabled the avahi demon running on the nas but i still get this error

[/share/Docker/homebridge] # netstat -plunt | grep 5353
netstat: /proc/net/tcp6: No such file or directory
netstat: /proc/net/udp6: No such file or directory

i had to log into the container to run the avahi manually by giving following command.. in case its helpful to anyone else

/etc/init.d/dbus start
avahi-daemon --debug --no-drop-root

This issue has been automatically marked as stale because it has not had recent activity, and will be closed if no further activity occurs. If this issue was overlooked, forgotten, or should remain open for any other reason, please reply here to call attention to it and remove the stale status. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

350d picture 350d  Β·  6Comments

d0n13 picture d0n13  Β·  5Comments

Ludelag picture Ludelag  Β·  4Comments

robertcedwards picture robertcedwards  Β·  6Comments

JangoBritt picture JangoBritt  Β·  3Comments