|
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. |
|