分页: 1 / 1

Homebridge运行出错

发表于 : 周三 7月 12, 2017 11:39
jascai
各位大侠:

我按照wiki里的教程,在domoticz中安装了homebridge-edomoticz的插件,结果到了最后运行的一步,出现了以下的错误,然后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=libd ns_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=libd ns_sd&e=nodejs&f=DNSServiceRegister>
[2017-7-12 11:17:14] Loaded plugin: homebridge-edomoticz
[2017-7-12 11:17:14] Registering accessory 'homebridge-edomoticz.eDomoticz'
[2017-7-12 11:17:14] Registering platform 'homebridge-edomoticz.eDomoticz'
[2017-7-12 11:17:14] ---
[2017-7-12 11:17:14] Loaded config.json with 0 accessories and 1 platforms.
[2017-7-12 11:17:14] ---
[2017-7-12 11:17:14] Loading 1 platforms...
[2017-7-12 11:17:14] [eDomoticz] Initializing eDomoticz platform...
[2017-7-12 11:17:14] Loading 0 accessories...
[2017-7-12 11:17:14] [eDomoticz] Initializing platform accessory 'A'...
[2017-7-12 11:17:14] [eDomoticz] Initializing platform accessory 'B'...
[2017-7-12 11:17:14] [eDomoticz] Initializing platform accessory 'C'...
Scan this code with your HomeKit App on your iOS device to pair with Homebridge:

┌────────────┐
│ 123-45-876 │
└────────────┘

events.js:163
throw er; // Unhandled 'error' event
^

Error: listen EADDRINUSE :::51826
at Object.exports._errnoException (util.js:1050:11)
at exports._exceptionWithHostPort (util.js:1073:20)
at Server.setupListenHandle [as _listen2] (net.js:1259:14)
at listenInCluster (net.js:1307:12)
at Server.listen (net.js:1406:7)
at EventedHTTPServer.listen (/usr/lib/node_modules/homebridge/node_modules/h ap-nodejs/lib/util/eventedhttp.js:60:19)
at HAPServer.listen (/usr/lib/node_modules/homebridge/node_modules/hap-nodej s/lib/HAPServer.js:158:20)
at Bridge.Accessory.publish (/usr/lib/node_modules/homebridge/node_modules/h ap-nodejs/lib/Accessory.js:486:16)
at Server._publish (/usr/lib/node_modules/homebridge/lib/server.js:114:16)
at Server.<anonymous> (/usr/lib/node_modules/homebridge/lib/server.js:372:14
请教一下大家,改怎么处理呢?

谢谢!

Re: Homebridge运行出错

发表于 : 周三 7月 12, 2017 18:49
blindlight
感觉是已经在运行了 直接ios添加试试

Re: Homebridge运行出错

发表于 : 周二 7月 18, 2017 14:22
jascai
ios找不到任何设备 :cry:

Re: Homebridge运行出错

发表于 : 周三 7月 19, 2017 12:45
chinesesich
conf文件先删除掉,看看能否正常运行。
如果可以运行,在单独打开Domoticz看看能否正常运行
如果都可以,再配置conf文件

Re: Homebridge运行出错

发表于 : 周三 8月 23, 2017 12:25
luguiyang
这个问题是因为端口被占用了,为何被占用,因为程序已经在运行了。所以先杀掉进程,然后重新运行。
1:sudo killall homebridge

2: homebridge

3:测试下是否报错,ios是否能连接。(不要关闭窗口)

4:一切正常将homebridge设置成开机自启动。