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

 找回密码
 立即注册
查看: 5125|回复: 7

[技术探讨] 版本从0.79升级到0.81.6之后无法登陆了

[复制链接]

57

主题

403

帖子

3041

积分

论坛元老

Rank: 8Rank: 8

积分
3041
金钱
2638
HASS币
0
发表于 2018-11-5 14:57:20 | 显示全部楼层 |阅读模式
如题:
        先前的版本是0.79.多的,在长级多次无法正常升级的情况下,重启之后就再也去不去了。以为是系统挂了,
1、把SD卡拔下插到linux机器上,发现/config分区满了,把里面的home-assistant_v2.db删掉之后,系统可以正常开启了。但是卡在了登陆界面,无法进入。
2、然后通过SSH连接上去,再升级系统,现在升级到了0.81.6,还是无法登陆进去。
3、之前配置的是SSL加密登陆,现在把ssl也去掉了。还是不行。不知道怎么搞了, 但是系统应该是启动成功了,因为HB可以用的。

捕获.PNG
回复

使用道具 举报

65

主题

853

帖子

3044

积分

论坛元老

Rank: 8Rank: 8

积分
3044
金钱
2184
HASS币
40
发表于 2018-11-5 15:51:03 | 显示全部楼层
去docker下看看日志呗。。。。。
回复

使用道具 举报

57

主题

403

帖子

3041

积分

论坛元老

Rank: 8Rank: 8

积分
3041
金钱
2638
HASS币
0
 楼主| 发表于 2018-11-5 16:47:50 | 显示全部楼层
plutosherry 发表于 2018-11-5 15:51
去docker下看看日志呗。。。。。
core-ssh:~# hassio ha logs
Error decoding json invalid character '-' after top-level value: 2018-11-05 16:39:29 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.ios
2018-11-05 16:39:29 INFO (MainThread) [homeassistant.bootstrap] Home Assistant initialized in 17.75s
2018-11-05 16:39:29 INFO (MainThread) [homeassistant.core] Starting Home Assistant
2018-11-05 16:39:29 INFO (MainThread) [homeassistant.components.discovery] Found new service: hassio {}
2018-11-05 16:39:29 INFO (MainThread) [homeassistant.loader] Loaded automation.state from homeassistant.components.automation.state
2018-11-05 16:39:29 INFO (MainThread) [homeassistant.components.automation] Initialized trigger babyroom_light_turnon
2018-11-05 16:39:29 INFO (MainThread) [homeassistant.components.automation] Initialized trigger studyroom_light_turnon
2018-11-05 16:39:29 INFO (MainThread) [homeassistant.components.automation] Initialized trigger wife_come_home
2018-11-05 16:39:29 INFO (MainThread) [homeassistant.components.automation] Initialized trigger blackman_comehome
2018-11-05 16:39:29 INFO (MainThread) [homeassistant.loader] Loaded automation.numeric_state from homeassistant.components.automation.numeric_state
2018-11-05 16:39:29 INFO (MainThread) [homeassistant.components.automation] Initialized trigger water_purifier_warning_1PP
2018-11-05 16:39:29 INFO (MainThread) [homeassistant.components.automation] Initialized trigger bedroom_light_turnon
2018-11-05 16:39:29 INFO (MainThread) [homeassistant.core] Timer:starting
2018-11-05 16:39:29 INFO (MainThread) [homeassistant.loader] Loaded hassio from homeassistant.components.hassio
2018-11-05 16:39:29 INFO (MainThread) [homeassistant.setup] Setting up hassio
2018-11-05 16:39:29 INFO (SyncWorker_13) [pyhap.accessory_driver] Loading Accessory state from `/config/.homekit.state`
2018-11-05 16:39:29 INFO (SyncWorker_19) [pyhap.accessory_driver] Starting the event loop
2018-11-05 16:39:29 INFO (SyncWorker_0) [pyhap.accessory_driver] Starting accessory Home Assistant Bridge on address 192.168.31.139, port 51827.
2018-11-05 16:39:29 ERROR (SyncWorker_12) [homeassistant.util.json] Could not parse JSON content: /config/.storage/auth
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/util/json.py", line 30, in load_json
    return json.loads(fdesc.read())  # type: ignore
  File "/usr/local/lib/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/local/lib/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/local/lib/python3.6/json/decoder.py", line 355, in raw_decode
    obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 139 column 10 (char 8192)
2018-11-05 16:39:29 ERROR (MainThread) [homeassistant.setup] Error during setup of component hassio
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/util/json.py", line 30, in load_json
    return json.loads(fdesc.read())  # type: ignore
  File "/usr/local/lib/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/local/lib/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/local/lib/python3.6/json/decoder.py", line 355, in raw_decode
    obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 139 column 10 (char 8192)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/setup.py", line 145, in _async_setup_component
    hass, processed_config)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/hassio/__init__.py", line 177, in async_setup
    user = await hass.auth.async_get_user(data['hassio_user'])
  File "/usr/local/lib/python3.6/site-packages/homeassistant/auth/__init__.py", line 118, in async_get_user
    return await self._store.async_get_user(user_id)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/auth/auth_store.py", line 56, in async_get_user
    await self._async_load()
  File "/usr/local/lib/python3.6/site-packages/homeassistant/auth/auth_store.py", line 227, in _async_load
    data = await self._store.async_load()
  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/storage.py", line 78, in async_load
    return await self._load_task
  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/storage.py", line 91, in _async_load
    json.load_json, self.path)
  File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/util/json.py", line 36, in load_json
    raise HomeAssistantError(error)
homeassistant.exceptions.HomeAssistantError: Expecting property name enclosed in double quotes: line 139 column 10 (char 8192)
2018-11-05 16:39:30 INFO (Thread-4) [pyhap.hap_server] Got connection with ('192.168.31.7', 51766).
2018-11-05 16:39:30 INFO (Thread-5) [pyhap.hap_server] 192.168.31.7 - "POST /pair-verify HTTP/1.1" 200 -
2018-11-05 16:39:30 INFO (Thread-5) [pyhap.hap_server] 192.168.31.7 - "POST /pair-verify HTTP/1.1" 200 -
2018-11-05 16:39:30 INFO (Thread-5) [pyhap.hap_server] 192.168.31.7 - "GET /accessories HTTP/1.1" 200 -
2018-11-05 16:39:42 INFO (SyncWorker_17) [homeassistant.components.device_tracker.asuswrt] Checking Devices
2018-11-05 16:39:43 INFO (MainThread) [homeassistant.loader] Loaded upnp from homeassistant.components.upnp
2018-11-05 16:39:43 INFO (MainThread) [homeassistant.components.discovery] Unknown service discovered: dlna_dmr {'host': '192.168.31.138', 'port': 49152, 'ssdp_description': 'http://192.168.31.138:49152/description.xml', 'name': '客å\x8e\x85ç\x9a\x84å°\x8fç±³ç\x94µè§\x86', 'model_name': 'Xiaomi MediaRenderer', 'model_number': None, 'serial': None, 'manufacturer': 'Xiaomi', 'udn': 'uuid:F7CA5454-3F48-4390-8009-4c304ee84e16', 'upnp_device_type': 'urn:schemas-upnp-org:device:MediaRenderer:1'}
2018-11-05 16:39:43 INFO (MainThread) [homeassistant.components.discovery] Unknown service discovered: dlna_dmr {'host': '192.168.31.35', 'port': 64637, 'ssdp_description': 'http://192.168.31.35:64637/', 'name': 'Realtek_Device', 'model_name': 'Realtek DLNA DMR', 'model_number': 'RTDXXXX', 'serial': '0000001', 'manufacturer': 'Realtek Semiconductor Corp.', 'udn': 'uuid:4480fa59-964c-446b-a368-6ee9e88a794e', 'upnp_device_type': 'urn:schemas-upnp-org:device:MediaRenderer:1'}
2018-11-05 16:39:43 INFO (MainThread) [homeassistant.components.discovery] Unknown service discovered: dlna_dms {'host': '192.168.31.206', 'port': 50001, 'ssdp_description': 'http://192.168.31.206:50001/desc/device.xml', 'name': 'nasserver', 'model_name': 'DS216j', 'model_number': None, 'serial': '16A0NNN868408', 'manufacturer': 'Synology Inc', 'udn': 'uuid:00113267-1b3d-0011-3d1b-3d1b67321100', 'upnp_device_type': 'urn:schemas-upnp-org:device:MediaServer:1'}
2018-11-05 16:39:43 INFO (MainThread) [homeassistant.components.discovery] Found new service: apple_tv {'host': '192.168.31.7', 'port': 3689, 'hostname': 'Apple-TV.local.', 'properties': {'txtvers': '1', 'atSV': '65541', 'hG': '00000000-49ec-0d59-56ff-d9c5dfc64f2c', 'MniT': '167845888', 'fs': '2', 'Name': 'Apple TV', 'PrVs': '65538', 'DFID': '2', 'EiTS': '1', 'MiTPV': '196611'}, 'name': 'Apple TV'}
2018-11-05 16:39:43 INFO (MainThread) [homeassistant.components.discovery] Unknown service discovered: home_assistant {'host': '192.168.31.139', 'port': 8123, 'hostname': '李建的智能家居._home-assistant._tcp.local.', 'properties': {'version': '0.81.6', 'base_url': 'http://192.168.31.139:8123', 'requires_api_password': False}}
2018-11-05 16:39:43 INFO (MainThread) [homeassistant.components.discovery] Unknown service discovered: homekit {'host': '192.168.31.139', 'port': 51827, 'hostname': 'homeassistant.local.', 'properties': {'md': 'Home Assistant Bridge', 'pv': '1.0', 'id': '27:8B:92:89:91:8A', 'c#': '2', 's#': '1', 'ff': '0', 'ci': '2', 'sf': '0', 'sh': 'xevV6A=='}, 'name': 'Home Assistant Bridge'}
2018-11-05 16:39:43 INFO (MainThread) [homeassistant.loader] Loaded apple_tv from homeassistant.components.apple_tv
2018-11-05 16:39:43 INFO (MainThread) [homeassistant.setup] Setting up apple_tv
2018-11-05 16:39:43 INFO (MainThread) [homeassistant.setup] Setup of domain apple_tv took 0.0 seconds.
2018-11-05 16:39:43 INFO (MainThread) [homeassistant.loader] Loaded media_player from homeassistant.components.media_player
2018-11-05 16:39:43 INFO (MainThread) [homeassistant.loader] Loaded remote from homeassistant.components.remote
2018-11-05 16:39:43 INFO (MainThread) [homeassistant.setup] Setting up media_player
2018-11-05 16:39:43 INFO (MainThread) [homeassistant.setup] Setup of domain media_player took 0.0 seconds.
2018-11-05 16:39:43 INFO (MainThread) [homeassistant.setup] Setting up remote
2018-11-05 16:39:43 INFO (MainThread) [homeassistant.setup] Setup of domain remote took 0.0 seconds.
2018-11-05 16:39:43 INFO (MainThread) [homeassistant.loader] Loaded media_player.apple_tv from homeassistant.components.media_player.apple_tv
2018-11-05 16:39:43 INFO (MainThread) [homeassistant.loader] Loaded remote.apple_tv from homeassistant.components.remote.apple_tv
2018-11-05 16:39:43 INFO (MainThread) [homeassistant.components.media_player] Setting up media_player.apple_tv
2018-11-05 16:39:43 INFO (MainThread) [homeassistant.components.remote] Setting up remote.apple_tv
2018-11-05 16:39:43 INFO (MainThread) [pyatv.daap] Logged in and got session id 1149683084
2018-11-05 16:39:58 INFO (SyncWorker_15) [homeassistant.components.device_tracker.asuswrt] Checking Devices
2018-11-05 16:40:14 INFO (SyncWorker_5) [homeassistant.components.device_tracker.asuswrt] Checking Devices
2018-11-05 16:40:30 INFO (SyncWorker_2) [homeassistant.components.device_tracker.asuswrt] Checking Devices
2018-11-05 16:40:46 INFO (SyncWorker_17) [homeassistant.components.device_tracker.asuswrt] Checking Devices
2018-11-05 16:41:02 INFO (SyncWorker_18) [homeassistant.components.device_tracker.asuswrt] Checking Devices
2018-11-05 16:41:18 INFO (SyncWorker_18) [homeassistant.components.device_tracker.asuswrt] Checking Devices
2018-11-05 16:41:34 INFO (SyncWorker_17) [homeassistant.components.device_tracker.asuswrt] Checking Devices
2018-11-05 16:41:50 INFO (SyncWorker_17) [homeassistant.components.device_tracker.asuswrt] Checking Devices
2018-11-05 16:42:06 INFO (SyncWorker_18) [homeassistant.components.device_tracker.asuswrt] Checking Devices
2018-11-05 16:42:22 INFO (SyncWorker_17) [homeassistant.components.device_tracker.asuswrt] Checking Devices
2018-11-05 16:42:38 INFO (SyncWorker_17) [homeassistant.components.device_tracker.asuswrt] Checking Devices
回复

使用道具 举报

40

主题

3056

帖子

1万

积分

超级版主

Nero

Rank: 8Rank: 8

积分
11149
金钱
8042
HASS币
182
发表于 2018-11-5 16:53:18 | 显示全部楼层
李丑男 发表于 2018-11-5 16:47
[code]core-ssh:~# hassio ha logs
Error decoding json invalid character '-' ...

把这个文件夹删掉重启就好了。 /config/.storage/
Nero
回复

使用道具 举报

57

主题

403

帖子

3041

积分

论坛元老

Rank: 8Rank: 8

积分
3041
金钱
2638
HASS币
0
 楼主| 发表于 2018-11-5 17:25:03 | 显示全部楼层
neroxps 发表于 2018-11-5 16:53
把这个文件夹删掉重启就好了。 /config/.storage/

大佬,我对你的崇拜犹如滔滔江水连绵不绝。
回复

使用道具 举报

14

主题

253

帖子

1055

积分

金牌会员

Rank: 6Rank: 6

积分
1055
金钱
802
HASS币
0
发表于 2018-11-5 22:43:23 | 显示全部楼层
我的也挂了。。。。nnd又被老婆骂了
回复

使用道具 举报

57

主题

403

帖子

3041

积分

论坛元老

Rank: 8Rank: 8

积分
3041
金钱
2638
HASS币
0
 楼主| 发表于 2018-11-6 09:33:25 | 显示全部楼层
maxims 发表于 2018-11-5 22:43
我的也挂了。。。。nnd又被老婆骂了

哈哈,跟我一样,就刚装的时候,老婆表扬了几句, 然后现在一出问题,就跟我说给我换回去。
回复

使用道具 举报

14

主题

253

帖子

1055

积分

金牌会员

Rank: 6Rank: 6

积分
1055
金钱
802
HASS币
0
发表于 2018-11-6 10:10:42 | 显示全部楼层
李丑男 发表于 2018-11-6 09:33
哈哈,跟我一样,就刚装的时候,老婆表扬了几句, 然后现在一出问题,就跟我说给我换回去。 ...

我挣扎了3个小时,没修复,直接睡觉去了。
今天早上重装。。。又不知道卡哪儿没进入web界面。md……
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-24 06:22 , Processed in 0.483343 second(s), 32 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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