『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 3630|回复: 4

[求助] 树莓派运行homebridge报下面的错误,手机home里也搜不到homebr...

[复制链接]

7

主题

19

帖子

90

积分

注册会员

Rank: 2

积分
90
金钱
71
HASS币
0
发表于 2017-7-29 15:41:37 | 显示全部楼层 |阅读模式
树莓派运行homebridge报下面的错误,手机home里也搜不到homebridge了


Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sat Jul 29 15:29:12 2017 from 192.168.1.107
pi@raspberrypi:~ $ 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>
[7/29/2017, 3:36:34 PM] ====================
[7/29/2017, 3:36:34 PM] ERROR LOADING PLUGIN homebridge-broadlink-sp:
[7/29/2017, 3:36:34 PM] SyntaxError: Block-scoped declarations (let, const, func                                     tion, class) not yet supported outside strict mode
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:373:25)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/usr/lib/node_modules/homebridge-broadlink-sp/index.j                                     s:2:17)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
[7/29/2017, 3:36:34 PM] ====================
[7/29/2017, 3:36:35 PM] Loaded plugin: homebridge-homeassistant
[7/29/2017, 3:36:35 PM] Registering platform 'homebridge-homeassistant.HomeAssis                                     tant'
[7/29/2017, 3:36:35 PM] ---
[7/29/2017, 3:36:35 PM] Loaded config.json with 0 accessories and 1 platforms.
[7/29/2017, 3:36:35 PM] ---
[7/29/2017, 3:36:35 PM] Loading 1 platforms...
[7/29/2017, 3:36:35 PM] [HomeAssistant] Initializing HomeAssistant platform...
[7/29/2017, 3:36:35 PM] [HomeAssistant] Fetching HomeAssistant devices.
[7/29/2017, 3:36:35 PM] [HomeAssistant] Received event: ping
Scan this code with your HomeKit App on your iOS device to pair with Homebridge:

    ┌────────────┐
    │ 666-88-999 │
    └────────────┘

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

Error: listen EADDRINUSE :::51987
    at Object.exports._errnoException (util.js:907:11)
    at exports._exceptionWithHostPort (util.js:930:20)
    at Server._listen2 (net.js:1253:14)
    at listen (net.js:1289:10)
    at Server.listen (net.js:1385:5)
    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  

回复

使用道具 举报

5

主题

73

帖子

241

积分

论坛分享达人

编码狂魔

积分
241
金钱
168
HASS币
0
发表于 2017-8-3 02:53:43 | 显示全部楼层
 ERROR LOADING PLUGIN homebridge-broadlink-sp

第一个错误很明显是你这个component出错了,检查一下看有没有什么问题
Error: listen EADDRINUSE :::51987

第二个是说你端口被占用了,htop进去看一下,kill掉所有homebridge进程,重启homebridge应该就ok
回复

使用道具 举报

1

主题

33

帖子

162

积分

注册会员

Rank: 2

积分
162
金钱
129
HASS币
0
发表于 2017-8-3 09:53:52 | 显示全部楼层
不了解。。。
回复

使用道具 举报

2

主题

72

帖子

419

积分

中级会员

Rank: 3Rank: 3

积分
419
金钱
347
HASS币
0
发表于 2017-9-9 01:45:04 | 显示全部楼层
apt-get remove avahi-daemon avahi-discover libnss-mdns libavahi-compat-libdnssd-dev
apt-get install avahi-daemon avahi-discover libnss-mdns libavahi-compat-libdnssd-dev


回复

使用道具 举报

7

主题

207

帖子

1027

积分

金牌会员

Rank: 6Rank: 6

积分
1027
金钱
820
HASS币
20
发表于 2017-9-11 01:33:33 | 显示全部楼层
我也运行不了了,但是楼主好像是端口冲突
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-5-29 07:30 , Processed in 0.136287 second(s), 27 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表