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

 找回密码
 立即注册
查看: 3981|回复: 3

莫名停电后,hass.io无法启动,环境有问题了?

[复制链接]

3

主题

102

帖子

746

积分

高级会员

Rank: 4

积分
746
金钱
644
HASS币
0
发表于 2018-3-18 03:06:53 | 显示全部楼层 |阅读模式
莫名停电后,hass.io无法启动,环境有问题了?莫名停电后,hass.io无法启动,环境有问题了?

请大神看看,这到底是哪出了问题?

无法访问主页了

ssh也连接不上了
2018-03-18 02:59:03 ERROR (MainThread) [homeassistant.setup] Error during setup of component mqtt
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/homeassistant/setup.py", line 142, in _async_setup_component
    result = await component.async_setup(hass, processed_config)
  File "/usr/lib/python3.6/site-packages/homeassistant/components/mqtt/__init__.py", line 397, in async_setup
    success = await hass.data[DATA_MQTT].async_connect()  # type: bool
  File "/usr/lib/python3.6/site-packages/homeassistant/components/mqtt/__init__.py", line 519, in async_connect
    self._mqttc.connect, self.broker, self.port, self.keepalive)
  File "/usr/lib/python3.6/asyncio/futures.py", line 332, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.6/asyncio/tasks.py", line 250, in _wakeup
    future.result()
  File "/usr/lib/python3.6/asyncio/futures.py", line 245, in result
    raise self._exception
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/lib/python3.6/site-packages/paho/mqtt/client.py", line 768, in connect
    return self.reconnect()
  File "/usr/lib/python3.6/site-packages/paho/mqtt/client.py", line 895, in reconnect
    sock = socket.create_connection((self._host, self._port), source_address=(self._bind_address, 0))
  File "/usr/lib/python3.6/socket.py", line 724, in create_connection
    raise err
  File "/usr/lib/python3.6/socket.py", line 713, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
2018-03-18 02:59:07 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=30 from 2018-03-17 14:50:53.661183)
2018-03-18 02:59:18 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of sensor.mqtt. Setup failed for dependencies: mqtt
2018-03-18 02:59:18 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform sensor.mqtt: Could not setup all dependencies.
2018-03-18 02:59:18 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of switch.mqtt. Setup failed for dependencies: mqtt
2018-03-18 02:59:18 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform switch.mqtt: Could not setup all dependencies.
2018-03-18 02:59:18 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of switch.mqtt. Setup failed for dependencies: mqtt
2018-03-18 02:59:18 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform switch.mqtt: Could not setup all dependencies.
2018-03-18 02:59:18 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of switch.mqtt. Setup failed for dependencies: mqtt
2018-03-18 02:59:18 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform switch.mqtt: Could not setup all dependencies.



回复

使用道具 举报

5

主题

295

帖子

2062

积分

金牌会员

Rank: 6Rank: 6

积分
2062
金钱
1766
HASS币
0
发表于 2018-3-18 12:18:55 | 显示全部楼层
停电,重新来电后,你的路由器启动比你的HASS启动时间要长一些,因此,HASS会提示错误,等几分钟重新启动HASS就会好的
回复

使用道具 举报

3

主题

102

帖子

746

积分

高级会员

Rank: 4

积分
746
金钱
644
HASS币
0
 楼主| 发表于 2018-3-18 22:12:45 | 显示全部楼层
反复重启了,还是不行,好像是停电前升级0.65.3出现了问题
回复

使用道具 举报

3

主题

102

帖子

746

积分

高级会员

Rank: 4

积分
746
金钱
644
HASS币
0
 楼主| 发表于 2018-3-19 10:52:41 | 显示全部楼层
解决了

居然是树莓派的IP地址被占用了,另外分配了一个,导致很多错误产生,重新按顺序排列后,故障消失了
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-23 11:06 , Processed in 0.063436 second(s), 25 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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