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

 找回密码
 立即注册
查看: 5394|回复: 2

[已解决] 请教在群晖 docker 中安装 homebridge容器一旦运行就停止。求助

[复制链接]

4

主题

133

帖子

685

积分

高级会员

Rank: 4

积分
685
金钱
552
HASS币
0
发表于 2017-7-22 10:57:07 | 显示全部楼层 |阅读模式
本帖最后由 cynliteng 于 2017-7-25 17:53 编辑

设备:群晖docker

对着论坛的教程已经可以再docker中建好了HomeAssistant
如果想要建homebridge 是不是需要再docker 中再建一个容器?
1500692302(1).jpg

但是现在homebridge按照教程 已经建好

1500692381(1).jpg

在启动的时候总是在报错

[backcolor=rgb(222, 236, 252) !important]
[0m*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
stdout

02:52:59
*** WARNING *** Please fix your application to use the native API of Avahi!
stdout

02:52:59
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
stdout

02:52:59
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
stdout

02:52:59
*** WARNING *** Please fix your application to use the native API of Avahi!
stdout

02:52:59
*** WARNING *** For more information see <http://0pointer.de/avahi-compat? ... ServiceRegister>
stdout

02:53:00
npm info it worked if it ends with ok
stdout

02:53:01
npm info using [email protected]
stdout

02:53:01
npm info using [email protected]
stdout

02:53:01
npm info ok
stdout

02:53:01
[7/22/2017, 2:53:01 AM] Loaded plugin: homebridge-aqara
stdout

02:53:01
[7/22/2017, 2:53:01 AM] Registering platform 'homebridge-aqara.AqaraPlatform'
stdout

02:53:01
[7/22/2017, 2:53:01 AM] ---
stdout

02:53:01
[7/22/2017, 2:53:01 AM] Loaded plugin: homebridge-synology
stdout

02:53:01
[7/22/2017, 2:53:01 AM] Registering accessory 'homebridge-synology.Synology'
stdout

02:53:01
[7/22/2017, 2:53:01 AM] ---
stdout

02:53:01
failed to load BLE module!
stdout

02:53:01
[7/22/2017, 2:53:01 AM] Loaded plugin: homebridge-yeelight
stdout

02:53:01
[7/22/2017, 2:53:01 AM] Registering platform 'homebridge-yeelight.yeelight'
stdout

02:53:01
[7/22/2017, 2:53:01 AM] ---
stdout

02:53:01
[7/22/2017, 2:53:01 AM] There was a problem reading your config.json file.
stdout

02:53:01
[7/22/2017, 2:53:01 AM] Please try pasting your config.json file here to validate it: http://jsonlint.com
stdout

02:53:01
[7/22/2017, 2:53:01 AM]
stdout

02:53:01
/usr/local/lib/node_modules/homebridge/lib/server.js:197
stdout

02:53:01
    throw err;
stdout

02:53:01
    ^
stdout

02:53:01

stdout

02:53:01
SyntaxError: Unexpected token  in JSON at position 0
stdout

02:53:01
    at JSON.parse (<anonymous>)
stdout

02:53:01
    at Server._loadConfig (/usr/local/lib/node_modules/homebridge/lib/server.js:191:19)
stdout

02:53:01
    at new Server (/usr/local/lib/node_modules/homebridge/lib/server.js:52:38)
stdout

02:53:01
    at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:26:16)
stdout

02:53:01
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
stdout

02:53:01
    at Module._compile (module.js:571:32)
stdout

02:53:01
    at Object.Module._extensions..js (module.js:580:10)
stdout

02:53:01
    at Module.load (module.js:488:32)
stdout

02:53:01
    at tryModuleLoad (module.js:447:12)
stdout

02:53:01
    at Function.Module._load (module.js:439:3)



config.json中也是按照要求进行配置的。
回复

使用道具 举报

4

主题

171

帖子

1577

积分

金牌会员

Rank: 6Rank: 6

积分
1577
金钱
1406
HASS币
0
发表于 2017-7-22 12:15:08 | 显示全部楼层
你安装了哪些插件,是不是有的插件,但是没有设备,最好能上传安装的插件和json的写法
回复

使用道具 举报

4

主题

133

帖子

685

积分

高级会员

Rank: 4

积分
685
金钱
552
HASS币
0
 楼主| 发表于 2017-7-25 17:39:50 | 显示全部楼层
本帖最后由 cynliteng 于 2017-7-25 17:44 编辑

确实是插件的问提,删除了没有的驱动和插件以后可以运行了。

1500975806(1).jpg
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-4-27 13:19 , Processed in 3.041917 second(s), 27 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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