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

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

[技术探讨] 【新手求助】今天更新了HA之后前端页面无法访问了

[复制链接]

1

主题

49

帖子

141

积分

注册会员

Rank: 2

积分
141
金钱
92
HASS币
0
发表于 2018-3-18 23:57:56 | 显示全部楼层 |阅读模式
sudo systemctl status 的信息如下:
   Loaded: loaded (/etc/systemd/system/[email protected]; enabled; vendor preset: enabled)
   Active: active (running) since Sun 2018-03-18 15:55:19 UTC; 5s ago
Main PID: 2123 (hass)
   CGroup: /system.slice/system-home\x2dassistant.slice/[email protected]
           ├─2123 /srv/homeassistant/bin/python3 /srv/homeassistant/bin/hass -c /home/homeassistant/.homeassistant
           └─2140 /srv/homeassistant/bin/python3 -m pip install --quiet home-assistant-frontend==20180310.0 --upgrade --constraint /srv/homeassistant/lib/python3.5/site-packages/homeassistant/package_constraints.txt

Mar 18 15:55:24 raspberrypi hass[2123]: 2018-03-18 15:55:24 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: service=write, domain=system_log>
Mar 18 15:55:24 raspberrypi hass[2123]: 2018-03-18 15:55:24 INFO (MainThread) [homeassistant.setup] Setup of domain system_log took 0.0 seconds.
Mar 18 15:55:24 raspberrypi hass[2123]: 2018-03-18 15:55:24 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=system_log>
Mar 18 15:55:24 raspberrypi hass[2123]: 2018-03-18 15:55:24 INFO (MainThread) [homeassistant.setup] Setting up websocket_api
Mar 18 15:55:24 raspberrypi hass[2123]: 2018-03-18 15:55:24 INFO (MainThread) [homeassistant.setup] Setup of domain websocket_api took 0.0 seconds.
Mar 18 15:55:24 raspberrypi hass[2123]: 2018-03-18 15:55:24 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=websocket_api>
Mar 18 15:55:24 raspberrypi hass[2123]: 2018-03-18 15:55:24 INFO (MainThread) [homeassistant.setup] Setup of domain api took 0.0 seconds.
Mar 18 15:55:24 raspberrypi hass[2123]: 2018-03-18 15:55:24 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=api>
Mar 18 15:55:24 raspberrypi hass[2123]: 2018-03-18 15:55:24 INFO (Thread-5) [homeassistant.util.package] Attempting install of home-assistant-frontend==20180310.0
Mar 18 15:55:25 raspberrypi hass[2123]: 2018-03-18 15:55:25 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=20 from 2018-03-18 15:53:04.987397)

home-assistant.log的内容如下:
2018-03-18 15:57:03 ERROR (Thread-5) [homeassistant.util.package] Unable to install package home-assistant-frontend==20180310.0: Exception:
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/pip/_vendor/urllib3/response.py", line 302, in _error_catcher
    yield
  File "/srv/homeassistant/lib/python3.5/site-packages/pip/_vendor/urllib3/response.py", line 384, in read
    data = self._fp.read(amt)
  File "/srv/homeassistant/lib/python3.5/site-packages/pip/_vendor/cachecontrol/filewrapper.py", line 60, in read
    data = self.__fp.read(amt)
  File "/usr/lib/python3.5/http/client.py", line 448, in read
    n = self.readinto(b)
  File "/usr/lib/python3.5/http/client.py", line 488, in readinto
    n = self.fp.readinto(b)
  File "/usr/lib/python3.5/socket.py", line 576, in readinto
    return self._sock.recv_into(b)
  File "/usr/lib/python3.5/ssl.py", line 937, in recv_into
    return self.read(nbytes, buffer)
  File "/usr/lib/python3.5/ssl.py", line 799, in read
    return self._sslobj.read(len, buffer)
  File "/usr/lib/python3.5/ssl.py", line 583, in read
    v = self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/srv/homeassistant/lib/python3.5/site-packages/pip/commands/install.py", line 324, in run
    requirement_set.prepare_files(finder)
  File "/srv/homeassistant/lib/python3.5/site-packages/pip/req/req_set.py", line 380, in prepare_files
    ignore_dependencies=self.ignore_dependencies))
  File "/srv/homeassistant/lib/python3.5/site-packages/pip/req/req_set.py", line 620, in _prepare_file
    session=self.session, hashes=hashes)
  File "/srv/homeassistant/lib/python3.5/site-packages/pip/download.py", line 821, in unpack_url
    hashes=hashes
  File "/srv/homeassistant/lib/python3.5/site-packages/pip/download.py", line 659, in unpack_http_url
    hashes)
  File "/srv/homeassistant/lib/python3.5/site-packages/pip/download.py", line 882, in _download_http_url
    _download_url(resp, link, content_file, hashes)
  File "/srv/homeassistant/lib/python3.5/site-packages/pip/download.py", line 603, in _download_url
    hashes.check_against_chunks(downloaded_chunks)
  File "/srv/homeassistant/lib/python3.5/site-packages/pip/utils/hashes.py", line 46, in check_against_chunks
    for chunk in chunks:
  File "/srv/homeassistant/lib/python3.5/site-packages/pip/download.py", line 571, in written_chunks
    for chunk in chunks:
  File "/srv/homeassistant/lib/python3.5/site-packages/pip/download.py", line 560, in resp_read
    decode_content=False):
  File "/srv/homeassistant/lib/python3.5/site-packages/pip/_vendor/urllib3/response.py", line 436, in stream
    data = self.read(amt=amt, decode_content=decode_content)
  File "/srv/homeassistant/lib/python3.5/site-packages/pip/_vendor/urllib3/response.py", line 401, in read
    raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
  File "/usr/lib/python3.5/contextlib.py", line 77, in __exit__
    self.gen.throw(type, value, traceback)
  File "/srv/homeassistant/lib/python3.5/site-packages/pip/_vendor/urllib3/response.py", line 307, in _error_catcher
    raise ReadTimeoutError(self._pool, None, 'Read timed out.')
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='www.piwheels.org', port=443): Read timed out.
2018-03-18 15:57:03 ERROR (MainThread) [homeassistant.requirements] Not initializing frontend because could not install requirement home-assistant-frontend==20180310.0
2018-03-18 15:57:03 ERROR (MainThread) [homeassistant.setup] Setup failed for frontend: Could not install all requirements.
2018-03-18 15:57:03 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of logbook. Setup failed for dependencies: frontend
2018-03-18 15:57:03 ERROR (MainThread) [homeassistant.setup] Setup failed for logbook: Could not setup all dependencies.
回复

使用道具 举报

2

主题

38

帖子

754

积分

高级会员

Rank: 4

积分
754
金钱
716
HASS币
0
发表于 2018-3-19 07:03:37 | 显示全部楼层
去site-packages文件夹下,把frontend删了就好了
回复

使用道具 举报

1

主题

19

帖子

65

积分

注册会员

Rank: 2

积分
65
金钱
46
HASS币
0
发表于 2018-3-19 17:33:25 | 显示全部楼层
谢谢分享
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-23 10:32 , Processed in 0.055241 second(s), 25 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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