|
问题:
直接下载的最新的HassBian,装在Pi3上,每次重启pi3后,HA都无法启动,老是报错,而且错误不同。只能重新写TF卡,再重新配置一遍,烦死了啊,Pi不能重启也不能关机,这还叫人怎么玩啊。重启前我先关了所有相关服务:
sudo systemctl stop [email protected]
sudo systemctl stop homebridge.service
sudo systemctl stop mariadb.service
sudo systemctl stop mosquitto.service
sudo init 0
再次开机后,报错如下:
Feb 23 23:27:04 hassbian systemd[1]: Started Home Assistant for homeassistant.
Feb 23 23:27:04 hassbian hass[805]: Failed to import the site module
Feb 23 23:27:04 hassbian hass[805]: Traceback (most recent call last):
Feb 23 23:27:04 hassbian hass[805]: File "/usr/lib/python3.5/site.py", line 580, in <module>
Feb 23 23:27:04 hassbian hass[805]: main()
Feb 23 23:27:04 hassbian hass[805]: File "/usr/lib/python3.5/site.py", line 566, in main
Feb 23 23:27:04 hassbian hass[805]: known_paths = addusersitepackages(known_paths)
Feb 23 23:27:04 hassbian hass[805]: File "/usr/lib/python3.5/site.py", line 287, in addusersitepackages
Feb 23 23:27:04 hassbian hass[805]: user_site = getusersitepackages()
Feb 23 23:27:04 hassbian hass[805]: File "/usr/lib/python3.5/site.py", line 263, in getusersitepackages
Feb 23 23:27:04 hassbian hass[805]: user_base = getuserbase() # this will also set USER_BASE
Feb 23 23:27:04 hassbian hass[805]: File "/usr/lib/python3.5/site.py", line 253, in getuserbase
Feb 23 23:27:04 hassbian hass[805]: USER_BASE = get_config_var('userbase')
Feb 23 23:27:04 hassbian hass[805]: File "/usr/lib/python3.5/sysconfig.py", line 595, in get_config_var
Feb 23 23:27:04 hassbian hass[805]: return get_config_vars().get(name)
Feb 23 23:27:04 hassbian hass[805]: File "/usr/lib/python3.5/sysconfig.py", line 538, in get_config_vars
Feb 23 23:27:04 hassbian hass[805]: _init_posix(_CONFIG_VARS)
Feb 23 23:27:04 hassbian hass[805]: File "/usr/lib/python3.5/sysconfig.py", line 410, in _init_posix
Feb 23 23:27:04 hassbian hass[805]: from _sysconfigdata import build_time_vars
Feb 23 23:27:04 hassbian hass[805]: File "/usr/lib/python3.5/_sysconfigdata.py", line 6, in <module>
Feb 23 23:27:04 hassbian hass[805]: from _sysconfigdata_m import *
Feb 23 23:27:04 hassbian hass[805]: File "<frozen importlib._bootstrap>", line 969, in _find_and_load
Feb 23 23:27:04 hassbian hass[805]: File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
Feb 23 23:27:04 hassbian hass[805]: File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
Feb 23 23:27:04 hassbian systemd[1]: [email protected]: Main process exited, code=exited, status=1/FAILURE
Feb 23 23:27:04 hassbian systemd[1]: [email protected]: Unit entered failed state.
Feb 23 23:27:04 hassbian systemd[1]: [email protected]: Failed with result 'exit-code'.
谁能帮我看下,万分感谢!
|
|