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.

Error: Service name is already in use on the network

See original GitHub issue

node --version => v10.5.0 homebridge --version =>0.4.44 avahi-daemon =>avahi-daemon 0.6.31 pfSense is also running avahi-daemon 0.6.31 to reflect across multiple subnets

Usage: I’m working on a plugin and stop/starting Homebridge from CLI on a pi3b. /usr/bin/homebridge --debug --plugin-path /home/homebridge/npm/ Everything works as it should except:

Problem: Every time I stop with SIGINT and restart, I get: ### events.js:167 throw er; // Unhandled 'error' event ^ Error: Service name is already in use on the network at Registry._onProbeComplete (/usr/lib/node_modules/homebridge/node_modules/bonjour-hap/lib/Registry.js:106:27)

This never happened on my old installation and I can’t figure out what’s changed. If I stop/start avahi-daemon on pfSense it will work again. So, this may not be a problem with Homebridge but that’s the only time it manifests itself.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
attinder-shfcommented, Nov 27, 2018

I am still getting same error. I even uninstalled libavahi-compat-libdnssd-dev

i tried different things and couldn’t fix it, so for now i update my local server.js code to use following line in _createBridge to get random number added to name

(bridgeConfig.name || ‘Homebridge’) + “-” + Math.floor((Math.random() * 1000) + 1)

1reaction
ykorzikowskicommented, Jul 10, 2018

Make sure only one avahi is running in your network. I’m using OpenWRT and had 2 instances running.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Service name is already in use on the network #2031
The issue could be caused by a mDNS "reflector"in the network: this kind of service caches the name of the Bonjour/mDNS client and...
Read more >
Server Error : r/homebridge - Reddit
The following error code is appearing in my logs and the HB server won't go online. ... Error: Service name is already in...
Read more >
Error: Service name is already in use on the network
The solution so far is either change the name / address (lose all settings). Or stop it trying to start and wait an...
Read more >
You may receive the "The local device name is already in use ...
You may receive the "The local device name is already in use" error message when you try to restore a network mapping connection...
Read more >
How To Fix “The Local Device Name Is Already In Use” Error?
Fixes : “The Local Device Name Is Already In Use” · Change the Advanced Sharing Settings · Allow File and Printer Sharing in...
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