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

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

请大神帮我看看homgbridge的log。安装在HASSIO。host冲突。

[复制链接]

6

主题

83

帖子

893

积分

高级会员

Rank: 4

积分
893
金钱
810
HASS币
0
发表于 2017-11-12 18:22:17 | 显示全部楼层 |阅读模式
本帖最后由 pattonwang 于 2017-11-12 18:24 编辑

我的HASSIO安装完homebridge后。启动后会出现两个ip地址。开始能用,homekit也能识别。过一段时间。homebridge在ipad上就不响应了。删掉persist文件夹,也不行。每次都要卸载后重装homebridge.下面第一段是刚安装后正常使用的LOG第二段是出问题的时候的LOG

Logs
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] 10-homebridge: applying...
[fix-attrs.d] 10-homebridge: exited 0.
[fix-attrs.d] 20-dbus: applying...
[fix-attrs.d] 20-dbus: exited 0.
[fix-attrs.d] 30-avahi: applying...
[fix-attrs.d] 30-avahi: exited 0.
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing...
-----------------------------------------------------------
Hass.io Add-on: Homebridge v2.1.1
HomeKit support for your Home Assistant instance using Homebridge
From: Community Hass.io Add-ons
By: Franck Nijhof <[email protected]>
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing...
Log level is set to INFO
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] 02-updates.sh: executing...
INFO: You are running the latest version of this add-on
[cont-init.d] 02-updates.sh: exited 0.
[cont-init.d] 20-dbus.sh: executing...
[cont-init.d] 20-dbus.sh: exited 0.
[cont-init.d] 30-avahi.sh: executing...
[cont-init.d] 30-avahi.sh: exited 0.
[cont-init.d] 50-config.sh: executing...
[cont-init.d] 50-config.sh: exited 0.
[cont-init.d] 60-ipv6-hotfix.sh: executing...
patching file /usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/eventedhttp.js
[cont-init.d] 60-ipv6-hotfix.sh: exited 0.
[cont-init.d] 80-user-packages.sh: executing...
[cont-init.d] 80-user-packages.sh: exited 0.
[cont-init.d] 81-user-scripts.sh: executing...
[cont-init.d] 81-user-scripts.sh: exited 0.
[cont-init.d] 82-user-plugins.sh: executing...
[cont-init.d] 82-user-plugins.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
starting version 3.2.2
[services.d] done.
Found user 'avahi' (UID 86) and group 'avahi' (GID 86).
Successfully dropped root privileges.
avahi-daemon 0.6.32 starting up.
WARNING: No NSS support for mDNS detected, consider installing nss-mdns!
Successfully called chroot().
Successfully dropped remaining capabilities.
No service file found in /etc/avahi/services.
*** WARNING: Detected another IPv4 mDNS stack running on this host. This makes mDNS unreliable and is thus not recommended. ***
Joining mDNS multicast group on interface hassio.IPv4 with address 172.30.32.1.
New relevant interface hassio.IPv4 for mDNS.
Joining mDNS multicast group on interface wlan0.IPv4 with address 192.168.2.129.
New relevant interface wlan0.IPv4 for mDNS.
Network interface enumeration completed.
Registering new address record for 172.30.32.1 on hassio.IPv4.
Registering new address record for 192.168.2.129 on wlan0.IPv4.
Server startup complete. Host name is hassio.local. Local service cookie is 2050453985.
*** WARNING *** The program 'node' 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=libdns_sd&e=node>
*** WARNING *** The program 'node' 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? ... ServiceRegister>
[2017-11-12 18:03:19] Loaded plugin: homebridge-homeassistant
[2017-11-12 18:03:20] Registering platform 'homebridge-homeassistant.HomeAssistant'
[2017-11-12 18:03:20] ---
[2017-11-12 18:03:20] Loaded config.json with 0 accessories and 1 platforms.
[2017-11-12 18:03:20] ---
[2017-11-12 18:03:20] Loading 1 platforms...
[2017-11-12 18:03:20] [HomeAssistant] Initializing HomeAssistant platform...
[2017-11-12 18:03:20] [HomeAssistant] Fetching HomeAssistant devices.
[2017-11-12 18:03:20] Loading 0 accessories...
[2017-11-12 18:03:20] [HomeAssistant] Initializing platform accessory '暖气'...
[2017-11-12 18:03:20] [HomeAssistant] Initializing platform accessory 'all switches'...
[2017-11-12 18:03:20] [HomeAssistant] Initializing platform accessory 'all devices'...
Scan this code with your HomeKit App on your iOS device to pair with Homebridge:

    ┌────────────┐     
    │ 836-25-127 │     
    └────────────┘     

[2017-11-12 18:03:20] Homebridge is running on port 51826.
下面是出错误的log

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] 10-homebridge: applying...
[fix-attrs.d] 10-homebridge: exited 0.
[fix-attrs.d] 20-dbus: applying...
[fix-attrs.d] 20-dbus: exited 0.
[fix-attrs.d] 30-avahi: applying...
[fix-attrs.d] 30-avahi: exited 0.
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing...
-----------------------------------------------------------
Hass.io Add-on: Homebridge v2.1.1
HomeKit support for your Home Assistant instance using Homebridge
From: Community Hass.io Add-ons
By: Franck Nijhof <[email protected]>
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing...
Log level is set to INFO
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] 02-updates.sh: executing...
INFO: You are running the latest version of this add-on
[cont-init.d] 02-updates.sh: exited 0.
[cont-init.d] 20-dbus.sh: executing...
[cont-init.d] 20-dbus.sh: exited 0.
[cont-init.d] 30-avahi.sh: executing...
[cont-init.d] 30-avahi.sh: exited 0.
[cont-init.d] 50-config.sh: executing...
[cont-init.d] 50-config.sh: exited 0.
[cont-init.d] 60-ipv6-hotfix.sh: executing...
patching file /usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/eventedhttp.js
[cont-init.d] 60-ipv6-hotfix.sh: exited 0.
[cont-init.d] 80-user-packages.sh: executing...
[cont-init.d] 80-user-packages.sh: exited 0.
[cont-init.d] 81-user-scripts.sh: executing...
[cont-init.d] 81-user-scripts.sh: exited 0.
[cont-init.d] 82-user-plugins.sh: executing...
[cont-init.d] 82-user-plugins.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
starting version 3.2.2
[services.d] done.
Found user 'avahi' (UID 86) and group 'avahi' (GID 86).
Successfully dropped root privileges.
avahi-daemon 0.6.32 starting up.
WARNING: No NSS support for mDNS detected, consider installing nss-mdns!
Successfully called chroot().
Successfully dropped remaining capabilities.
No service file found in /etc/avahi/services.
*** WARNING: Detected another IPv4 mDNS stack running on this host. This makes mDNS unreliable and is thus not recommended. ***
Joining mDNS multicast group on interface hassio.IPv4 with address 172.30.32.1.
New relevant interface hassio.IPv4 for mDNS.
Joining mDNS multicast group on interface wlan0.IPv4 with address 192.168.2.129.
New relevant interface wlan0.IPv4 for mDNS.
Joining mDNS multicast group on interface eth0.IPv4 with address 192.168.2.129.
New relevant interface eth0.IPv4 for mDNS.
Network interface enumeration completed.
Registering new address record for 172.30.32.1 on hassio.IPv4.
Registering new address record for 192.168.2.129 on wlan0.IPv4.
Registering new address record for 192.168.2.129 on eth0.IPv4.
Withdrawing address record for 192.168.2.129 on wlan0.
Withdrawing address record for 192.168.2.129 on eth0.
Host name conflict, retrying with unknown-2
Registering new address record for 172.30.32.1 on hassio.IPv4.
Registering new address record for 192.168.2.129 on wlan0.IPv4.
Registering new address record for 192.168.2.129 on eth0.IPv4.
Withdrawing address record for 192.168.2.129 on wlan0.
Withdrawing address record for 192.168.2.129 on eth0.
Host name conflict, retrying with unknown-3
Registering new address record for 172.30.32.1 on hassio.IPv4.
Registering new address record for 192.168.2.129 on wlan0.IPv4.
Registering new address record for 192.168.2.129 on eth0.IPv4.

回复

使用道具 举报

6

主题

83

帖子

893

积分

高级会员

Rank: 4

积分
893
金钱
810
HASS币
0
 楼主| 发表于 2017-11-12 18:26:16 | 显示全部楼层
我的options是下面这样的

{
  "log_level": "info",
  "avahi_interfaces": "",
  "avahi_hostname": "",
  "avahi_domainname": "local",
  "enable_ipv6": false,
  "packages": [],
  "init_commands": [],
  "plugins": []
}
回复

使用道具 举报

65

主题

853

帖子

3044

积分

论坛元老

Rank: 8Rank: 8

积分
3044
金钱
2184
HASS币
40
发表于 2017-11-12 20:56:03 | 显示全部楼层
"avahi_hostname": "", 填上你的hostname
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-22 20:43 , Processed in 0.230662 second(s), 24 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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