Homebridge运行出错

讨论使用Domoticz过程中遇到的问题。
版面规则
讨论使用Domoticz过程中遇到的问题。
有问题请说明详细情况,有图的截图!
别只说一句安装不上,执行不了!
截图请截大图,别就截一行。。。
回复
jascai
帖子: 3
注册时间: 周三 7月 12, 2017 11:36

Homebridge运行出错

帖子 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
请教一下大家,改怎么处理呢?

谢谢!
blindlight
帖子: 98
注册时间: 周四 3月 30, 2017 00:03

Re: Homebridge运行出错

帖子 blindlight »

感觉是已经在运行了 直接ios添加试试
jascai
帖子: 3
注册时间: 周三 7月 12, 2017 11:36

Re: Homebridge运行出错

帖子 jascai »

ios找不到任何设备 :cry:
chinesesich
帖子: 26
注册时间: 周二 6月 06, 2017 13:50

Re: Homebridge运行出错

帖子 chinesesich »

conf文件先删除掉,看看能否正常运行。
如果可以运行,在单独打开Domoticz看看能否正常运行
如果都可以,再配置conf文件
luguiyang
帖子: 9
注册时间: 周一 8月 14, 2017 12:25

Re: Homebridge运行出错

帖子 luguiyang »

这个问题是因为端口被占用了,为何被占用,因为程序已经在运行了。所以先杀掉进程,然后重新运行。
1:sudo killall homebridge

2: homebridge

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

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