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

 找回密码
 立即注册
查看: 10017|回复: 29

[求助] 新手求助,Docker中安装所有带HassIO的版本都不成功(已经...

[复制链接]

1

主题

21

帖子

138

积分

注册会员

Rank: 2

积分
138
金钱
117
HASS币
0
发表于 2020-9-23 09:46:27 | 显示全部楼层 |阅读模式
本帖最后由 hzbl 于 2020-10-2 10:16 编辑

只要带hassIO或者ADDon的版本都不停重启。

日志:
stderr:     return self.version(api_version=False)["ApiVersion"]
stderr:   File "/usr/local/lib/python3.8/site-packages/docker/api/daemon.py", line 181, in version
stderr:     return self._result(self._get(url), json=True)
stderr:   File "/usr/local/lib/python3.8/site-packages/docker/utils/decorators.py", line 46, in inner
stderr:     return f(self, *args, **kwargs)
stderr:   File "/usr/local/lib/python3.8/site-packages/docker/api/client.py", line 228, in _get
stderr:     return self.get(url, **self._set_request_timeout(kwargs))
stderr:   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 543, in get
stderr:     return self.request('GET', url, **kwargs)
stderr:   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
stderr:     resp = self.send(prep, **send_kwargs)
stderr:   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, in send
stderr:     r = adapter.send(request, **kwargs)
stderr:   File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 498, in send
stderr:     raise ConnectionError(err, request=request)
stderr: requests.exceptions.ConnectionError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))


最后两个可以正常运行

最后两个可以正常运行
回复

使用道具 举报

1

主题

21

帖子

138

积分

注册会员

Rank: 2

积分
138
金钱
117
HASS币
0
 楼主| 发表于 2020-9-23 09:53:11 | 显示全部楼层
补充一下:
系统.png
Docker.png
回复

使用道具 举报

40

主题

3056

帖子

1万

积分

超级版主

Nero

Rank: 8Rank: 8

积分
11149
金钱
8042
HASS币
182
发表于 2020-9-23 10:00:48 | 显示全部楼层
日志 不完整
Nero
回复

使用道具 举报

1

主题

21

帖子

138

积分

注册会员

Rank: 2

积分
138
金钱
117
HASS币
0
 楼主| 发表于 2020-9-23 10:11:03 | 显示全部楼层
stderr:     return self.version(api_version=False)["ApiVersion"]
stderr:   File "/usr/local/lib/python3.8/site-packages/docker/api/daemon.py", line 181, in version
stderr:     return self._result(self._get(url), json=True)
stderr:   File "/usr/local/lib/python3.8/site-packages/docker/utils/decorators.py", line 46, in inner
stderr:     return f(self, *args, **kwargs)
stderr:   File "/usr/local/lib/python3.8/site-packages/docker/api/client.py", line 228, in _get
stderr:     return self.get(url, **self._set_request_timeout(kwargs))
stderr:   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 543, in get
stderr:     return self.request('GET', url, **kwargs)
stderr:   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
stderr:     resp = self.send(prep, **send_kwargs)
stderr:   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, in send
stderr:     r = adapter.send(request, **kwargs)
stderr:   File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 498, in send
stderr:     raise ConnectionError(err, request=request)
stderr: requests.exceptions.ConnectionError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
stderr:
stderr: During handling of the above exception, another exception occurred:
stderr:
stderr: Traceback (most recent call last):
stderr:   File "/usr/local/lib/python3.8/runpy.py", line 194, in _run_module_as_main
stderr:     return _run_code(code, main_globals, None,
stderr:   File "/usr/local/lib/python3.8/runpy.py", line 87, in _run_code
stderr:     exec(code, run_globals)
stderr:   File "/usr/src/supervisor/supervisor/__main__.py", line 40, in <module>
stderr:     coresys = loop.run_until_complete(bootstrap.initialize_coresys())
stderr:   File "uvloop/loop.pyx", line 1456, in uvloop.loop.Loop.run_until_complete
stderr:   File "/usr/src/supervisor/supervisor/bootstrap.py", line 54, in initialize_coresys
stderr:     coresys = CoreSys()
stderr:   File "/usr/src/supervisor/supervisor/coresys.py", line 60, in __init__
stderr:     self._docker: DockerAPI = DockerAPI()
stderr:   File "/usr/src/supervisor/supervisor/docker/__init__.py", line 75, in __init__
stderr:     self.docker: docker.DockerClient = docker.DockerClient(
stderr:   File "/usr/local/lib/python3.8/site-packages/docker/client.py", line 40, in __init__
stderr:     self.api = APIClient(*args, **kwargs)
stderr:   File "/usr/local/lib/python3.8/site-packages/docker/api/client.py", line 188, in __init__
stderr:     self._version = self._retrieve_server_version()
stderr:   File "/usr/local/lib/python3.8/site-packages/docker/api/client.py", line 212, in _retrieve_server_version
stderr:     raise DockerException(
stderr: docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
stderr: [31m20-09-22 08:39:35 ERROR (MainThread) [asyncio] Unclosed client session
stderr: client_session: <aiohttp.client.ClientSession object at 0x7f2424778190>[0m
stderr: [31m20-09-22 08:39:35 ERROR (MainThread) [asyncio] Unclosed client session
stderr: client_session: <aiohttp.client.ClientSession object at 0x7f2424778460>[0m
stdout: [cont-finish.d] executing container finish scripts...
stdout: [cont-finish.d] done.
stdout: [s6-finish] waiting for services.
stdout: [s6-finish] sending all processes the TERM signal.
stdout: [s6-finish] sending all processes the KILL signal and exiting.
stdout: [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
stdout: [s6-init] ensuring user provided files have correct perms...exited 0.
stdout: [fix-attrs.d] applying ownership & permissions fixes...
stdout: [fix-attrs.d] done.
stdout: [cont-init.d] executing container initialization scripts...
stdout: [cont-init.d] udev.sh: executing...
stderr: starting version 3.2.9
stderr: [08:40:40] INFO: [32mUpdate udev information[0m
stdout: [cont-init.d] udev.sh: exited 0.
stdout: [cont-init.d] done.
stdout: [services.d] starting services
stdout: [services.d] done.
stderr: [08:40:40] INFO: [32mStart local supervisor watchdog...[0m
stderr: [31m20-09-22 08:40:41 CRITICAL (MainThread) [supervisor.bootstrap] Can't find SUPERVISOR_SHARE in env![0m
stderr: [31m20-09-22 08:40:41 CRITICAL (MainThread) [supervisor.bootstrap] Can't find SUPERVISOR_NAME in env![0m
stderr: [31m20-09-22 08:40:41 CRITICAL (MainThread) [supervisor.bootstrap] Can't find any kind of machine/homeassistant details![0m
stderr: [31m20-09-22 08:40:41 CRITICAL (MainThread) [supervisor.bootstrap] Can't find Docker socket![0m
stderr: [32m20-09-22 08:40:41 INFO (MainThread) [__main__] Initialize Supervisor setup[0m
stderr: Traceback (most recent call last):
stderr:   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 670, in urlopen
stderr:     httplib_response = self._make_request(
stderr:   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 392, in _make_request
stderr:     conn.request(method, url, **httplib_request_kw)
stderr:   File "/usr/local/lib/python3.8/http/client.py", line 1255, in request
stderr:     self._send_request(method, url, body, headers, encode_chunked)
stderr:   File "/usr/local/lib/python3.8/http/client.py", line 1301, in _send_request
stderr:     self.endheaders(body, encode_chunked=encode_chunked)
stderr:   File "/usr/local/lib/python3.8/http/client.py", line 1250, in endheaders
stderr:     self._send_output(message_body, encode_chunked=encode_chunked)
stderr:   File "/usr/local/lib/python3.8/http/client.py", line 1010, in _send_output
stderr:     self.send(msg)
stderr:   File "/usr/local/lib/python3.8/http/client.py", line 950, in send
stderr:     self.connect()
stderr:   File "/usr/local/lib/python3.8/site-packages/docker/transport/unixconn.py", line 43, in connect
stderr:     sock.connect(self.unix_socket)
stderr: FileNotFoundError: [Errno 2] No such file or directory
stderr:
stderr: During handling of the above exception, another exception occurred:
回复

使用道具 举报

1

主题

21

帖子

138

积分

注册会员

Rank: 2

积分
138
金钱
117
HASS币
0
 楼主| 发表于 2020-9-23 10:13:17 | 显示全部楼层
stderr: Traceback (most recent call last):
stderr:   File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
stderr:     resp = conn.urlopen(
stderr:   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 726, in urlopen
stderr:     retries = retries.increment(
stderr:   File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 403, in increment
stderr:     raise six.reraise(type(error), error, _stacktrace)
stderr:   File "/usr/local/lib/python3.8/site-packages/urllib3/packages/six.py", line 734, in reraise
stderr:     raise value.with_traceback(tb)
stderr:   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 670, in urlopen
stderr:     httplib_response = self._make_request(
stderr:   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 392, in _make_request
stderr:     conn.request(method, url, **httplib_request_kw)
stderr:   File "/usr/local/lib/python3.8/http/client.py", line 1255, in request
stderr:     self._send_request(method, url, body, headers, encode_chunked)
stderr:   File "/usr/local/lib/python3.8/http/client.py", line 1301, in _send_request
stderr:     self.endheaders(body, encode_chunked=encode_chunked)
stderr:   File "/usr/local/lib/python3.8/http/client.py", line 1250, in endheaders
stderr:     self._send_output(message_body, encode_chunked=encode_chunked)
stderr:   File "/usr/local/lib/python3.8/http/client.py", line 1010, in _send_output
stderr:     self.send(msg)
stderr:   File "/usr/local/lib/python3.8/http/client.py", line 950, in send
stderr:     self.connect()
stderr:   File "/usr/local/lib/python3.8/site-packages/docker/transport/unixconn.py", line 43, in connect
stderr:     sock.connect(self.unix_socket)
stderr: urllib3.exceptions.ProtocolError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
stderr:
stderr: During handling of the above exception, another exception occurred:
stderr:
stderr: Traceback (most recent call last):
stderr:   File "/usr/local/lib/python3.8/site-packages/docker/api/client.py", line 205, in _retrieve_server_version
stderr:     return self.version(api_version=False)["ApiVersion"]
stderr:   File "/usr/local/lib/python3.8/site-packages/docker/api/daemon.py", line 181, in version
stderr:     return self._result(self._get(url), json=True)
stderr:   File "/usr/local/lib/python3.8/site-packages/docker/utils/decorators.py", line 46, in inner
stderr:     return f(self, *args, **kwargs)
stderr:   File "/usr/local/lib/python3.8/site-packages/docker/api/client.py", line 228, in _get
stderr:     return self.get(url, **self._set_request_timeout(kwargs))
stderr:   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 543, in get
stderr:     return self.request('GET', url, **kwargs)
stderr:   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
stderr:     resp = self.send(prep, **send_kwargs)
stderr:   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, in send
stderr:     r = adapter.send(request, **kwargs)
stderr:   File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 498, in send
stderr:     raise ConnectionError(err, request=request)
stderr: requests.exceptions.ConnectionError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
stderr:
stderr: During handling of the above exception, another exception occurred:
stderr:
stderr: Traceback (most recent call last):
stderr:   File "/usr/local/lib/python3.8/runpy.py", line 194, in _run_module_as_main
stderr:     return _run_code(code, main_globals, None,
stderr:   File "/usr/local/lib/python3.8/runpy.py", line 87, in _run_code
stderr:     exec(code, run_globals)
stderr:   File "/usr/src/supervisor/supervisor/__main__.py", line 40, in <module>
stderr:     coresys = loop.run_until_complete(bootstrap.initialize_coresys())
stderr:   File "uvloop/loop.pyx", line 1456, in uvloop.loop.Loop.run_until_complete
stderr:   File "/usr/src/supervisor/supervisor/bootstrap.py", line 54, in initialize_coresys
stderr:     coresys = CoreSys()
stderr:   File "/usr/src/supervisor/supervisor/coresys.py", line 60, in __init__
stderr:     self._docker: DockerAPI = DockerAPI()
stderr:   File "/usr/src/supervisor/supervisor/docker/__init__.py", line 75, in __init__
stderr:     self.docker: docker.DockerClient = docker.DockerClient(
stderr:   File "/usr/local/lib/python3.8/site-packages/docker/client.py", line 40, in __init__
stderr:     self.api = APIClient(*args, **kwargs)
stderr:   File "/usr/local/lib/python3.8/site-packages/docker/api/client.py", line 188, in __init__
stderr:     self._version = self._retrieve_server_version()
stderr:   File "/usr/local/lib/python3.8/site-packages/docker/api/client.py", line 212, in _retrieve_server_version
stderr:     raise DockerException(
stderr: docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))

回复

使用道具 举报

105

主题

2954

帖子

1万

积分

超级版主

智能家居&单板滑雪痴迷爱好者

Rank: 8Rank: 8

积分
12103
金钱
9084
HASS币
460

教程狂人突出贡献

发表于 2020-9-23 10:15:00 | 显示全部楼层
你标的“这两个OK”,那就OK啦!

你的意思难道是只安装上面那几个?

OpenWRT环境,跑HA Core(就你说OK的那两个,其实一样,都是core)已经很不错了。

官方明确,hassio只支持debian,并且只适合对linux和docker有很经验的高手安装。即使debian的变种官方都明确不支持,就这还差点没把hassio这种安装方式彻底废除呢。

其实,有些怀疑楼主根本没搞清楚hassio是啥。
回复

使用道具 举报

1

主题

21

帖子

138

积分

注册会员

Rank: 2

积分
138
金钱
117
HASS币
0
 楼主| 发表于 2020-9-23 10:15:01 | 显示全部楼层

太多了,您看看还缺不缺
回复

使用道具 举报

1

主题

21

帖子

138

积分

注册会员

Rank: 2

积分
138
金钱
117
HASS币
0
 楼主| 发表于 2020-9-23 10:27:19 | 显示全部楼层
XCray 发表于 2020-9-23 10:15
你标的“这两个OK”,那就OK啦!

你的意思难道是只安装上面那几个?

或许真的没搞非常清楚了。只是为了配置方便啊。不装这个全部直接进去写配置文件不是很麻烦吗,网上很多资源都是针对HassIO的。抄作业也方便啊。
回复

使用道具 举报

1

主题

21

帖子

138

积分

注册会员

Rank: 2

积分
138
金钱
117
HASS币
0
 楼主| 发表于 2020-9-23 10:40:38 | 显示全部楼层
XCray 发表于 2020-9-23 10:15
你标的“这两个OK”,那就OK啦!

你的意思难道是只安装上面那几个?

版主大大见谅!新手小白Linux和docker都是0基础。有一些win下的桌面软件和数据库的经验,也是好多年前了。只是折腾的心还没死:lo不久前买个个软路由开始折腾,或许有点不自量力了。望版主大大见谅,不怕麻烦,多多指教
回复

使用道具 举报

3

主题

321

帖子

2891

积分

论坛积极会员

积分
2891
金钱
2570
HASS币
10
发表于 2020-9-23 10:53:03 | 显示全部楼层
本帖最后由 tcwj2008 于 2020-9-23 10:54 编辑

x86平台 + openwrt + HA 这个搭配有点怪怪的吧
新手建议还是用hassos,如果还需要路由功能,就装esxi和pve再装hassos和openwrt
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-25 06:53 , Processed in 0.057741 second(s), 35 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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