-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Error: dns_sd.DNSServiceRegister dns service error: unknown #613
Comments
node -v npm -v gcc -v |
Avahi daemon installed? |
$> sudo apt-get install libavahi-compat-libdnssd-dev |
oh yeah, you were right mactr0n! you're tha man! I need more than what the homebridge installation wiki says. just libavahi-compat-libdnssd-dev is not enough.. I needed the full line that installs all the proper components. someone should update the homebridge installation wiki, no-where on the installation instructions does it mention this. Also I am probably the first one around here running Debian, I found the fix here: agnat/node_mdns#44 I also got homebridge to compile and run on Windows10 64bit Corei7. HERE IS THE FIX: sudo apt-get install avahi-daemon avahi-discover libnss-mdns libavahi-compat-libdnssd-dev |
I'm getting this error because dbus-daemon is not running , and avahi-daemon is compiled without dbus, after recompile and restart the daemons , everything works fine. besides,you could edit /etc/avahi/avahi-daemon.conf to see if avahi is compiled with dbus.
|
I tried all the things here but unfortunately nothing helped me. I installed everything on Ubuntu 14.04 and it worked for some days. But suddenly home bridge didn't want to run anymore with the error:
I don't know why it stopped working. I didn't change anything on the System
|
I'm getting the exact same error on Bash on Ubuntu on Windows 10 despite trying all the fixes. Does anyone have ideas for how to resolve this? |
Still no fix on Ubuntu 14.04?? i am not on Windows with that error |
i oversaw this now homebridge seems to run, because i uncommented the bus line! |
I had the same Problem:
The homebridge is running but I can not pair my iphone with "Home" or "Eve". It is tried a few minutes and then canceled. Like a timeout. It does not matter how much the config file was changed. My mistake was: I had installed after the installation of homebrige (here everything worked) pi-hole. This filters my DNS requests and blocks them. Maybe someone has the same problem and I could help someone with it. |
Got this problem too. It worked fine till some months ago (I had time to check only now), then it suddenly stopped working. root@DiskStation:/# ps -A | grep avahi Anyone can help? Also I checked the webpage linked in the errors homebridge prints at startup but they give you a 404. |
I read somewhere that I needed to start the service dbus, and avahi-daemon `root@kali:~# homebridge
/usr/lib/node_modules/homebridge/node_modules/mdns/lib/advertisement.js:56 Error: dns service error: unknown
[2017-7-19 15:36:30] Homebridge is running on port 46373. |
I have the same error, and I have tried all the solutions above, unfortunately, it doesn't work for me. Then I just have tried to reconfigure all the environment, and found a way to fix the error. This is my system info
If you installed homebridge with the README.md - Installation, and only run the command to install avahi.
Just try to reinstall it.
And comment the config line in
|
I get this error too when running without dbus and avahi-daemon.conf has: |
I start dbus,then avahi-daemon manually. |
If you're here because you're trying to make this run on docker, it seems that this works:
|
[4/26/2016, 8:43:29 PM] Loaded plugin: homebridge-legacy-plugins
[4/26/2016, 8:43:29 PM] Registering platform 'homebridge-legacy-plugins.X10'
[4/26/2016, 8:43:29 PM] ---
Scan this code with your HomeKit App on your iOS device to pair with Homebridge:
ââââââââââââââ
â 031-45-154 â
ââââââââââââââ
[4/26/2016, 8:43:29 PM] Homebridge is running on port 51826.
/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/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/local/lib/node_modules/homebridge/node_modules/ha p-nodejs/node_modules/mdns/lib/advertisement.js:56:10)
at Object.create [as createAdvertisement](/usr/local/lib/node_modules/homeb ridge/node_modules/hap-nodejs/node_modules/mdns/lib/advertisement.js:64:10)
at Advertiser.startAdvertising (/usr/local/lib/node_modules/homebridge/node_ modules/hap-nodejs/lib/Advertiser.js:43:30)
at Bridge.Accessory._onListening (/usr/local/lib/node_modules/homebridge/nod e_modules/hap-nodejs/lib/Accessory.js:509:20)
at emitNone (events.js:67:13)
at HAPServer.emit (events.js:166:7)
at HAPServer._onListening (/usr/local/lib/node_modules/homebridge/node_modul es/hap-nodejs/lib/HAPServer.js:182:8)
at emitNone (events.js:67:13)
at EventedHTTPServer.emit (events.js:166:7)
The text was updated successfully, but these errors were encountered: