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

 找回密码
 立即注册
查看: 2588|回复: 8

[经验分享] Openwrt下Docker安装HomeAssistant自动退出

[复制链接]

1

主题

4

帖子

36

积分

新手上路

Rank: 1

积分
36
金钱
32
HASS币
0
发表于 2021-12-6 21:45:49 | 显示全部楼层 |阅读模式
Openwrt下Docker安装HomeAssistant,容器启动后20秒以内,会自动退出,8123接口Host模式、bridge模式均无法访问,请问这样的情况如何解决?安装步骤使用的HomeAssistant官网流程,一切正常,感觉容器启动过后出现错误,导致自动退出了。其他容器网络访问和启动都正常,就是HA不行。
回复

使用道具 举报

2

主题

37

帖子

284

积分

论坛分享达人

积分
284
金钱
247
HASS币
0
发表于 2021-12-6 21:59:01 | 显示全部楼层
看运行日志
回复

使用道具 举报

1

主题

4

帖子

36

积分

新手上路

Rank: 1

积分
36
金钱
32
HASS币
0
 楼主| 发表于 2021-12-6 22:03:25 | 显示全部楼层
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] done.
stdout: [services.d] starting services
stdout: [services.d] done.
stdout: [finish] process exit code 256
stdout: [finish] process received signal 4
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-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] done.
stdout: [services.d] starting services
stdout: [services.d] done.
stdout: [finish] process exit code 256
stdout: [finish] process received signal 4
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-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] done.
stdout: [services.d] starting services
stdout: [services.d] done.
stdout: [finish] process exit code 256
stdout: [finish] process received signal 4
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-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] done.
stdout: [services.d] starting services
stdout: [services.d] done.
stdout: [finish] process exit code 256
stdout: [finish] process received signal 4
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-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] done.
stdout: [services.d] starting services
stdout: [services.d] done.
stdout: [finish] process exit code 256
stdout: [finish] process received signal 4
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-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] done.
stdout: [services.d] starting services
stdout: [services.d] done.
stdout: [finish] process exit code 256
stdout: [finish] process received signal 4
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-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] done.
stdout: [services.d] starting services
stdout: [services.d] done.
stdout: [finish] process exit code 256
stdout: [finish] process received signal 4
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-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] done.
stdout: [services.d] starting services
stdout: [services.d] done.
stdout: [finish] process exit code 256
stdout: [finish] process received signal 4
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.
回复

使用道具 举报

1

主题

4

帖子

36

积分

新手上路

Rank: 1

积分
36
金钱
32
HASS币
0
 楼主| 发表于 2021-12-6 22:04:46 | 显示全部楼层
完全看不懂
回复

使用道具 举报

75

主题

1976

帖子

8183

积分

元老级技术达人

积分
8183
金钱
6157
HASS币
430

活跃会员教程狂人

发表于 2021-12-7 08:40:07 | 显示全部楼层
这日志也看不出来什么,会不会是镜像选错了?arm?X64?
所有过往,皆为序章。
回复

使用道具 举报

56

主题

929

帖子

4077

积分

论坛元老

Rank: 8Rank: 8

积分
4077
金钱
3148
HASS币
0
发表于 2021-12-7 10:00:07 | 显示全部楼层
openwrt下docker挂载的空间是否够?
回复

使用道具 举报

3

主题

223

帖子

3047

积分

元老级技术达人

积分
3047
金钱
2819
HASS币
10
发表于 2021-12-7 14:53:27 | 显示全部楼层
你这是container的日志 先去看看ha自己的日志出了什么错
回复

使用道具 举报

40

主题

3056

帖子

1万

积分

超级版主

Nero

Rank: 8Rank: 8

积分
11149
金钱
8042
HASS币
182
发表于 2021-12-7 16:27:57 | 显示全部楼层
Nero
回复

使用道具 举报

1

主题

4

帖子

36

积分

新手上路

Rank: 1

积分
36
金钱
32
HASS币
0
 楼主| 发表于 2021-12-7 20:09:58 | 显示全部楼层
本帖最后由 fudo 于 2021-12-7 20:18 编辑

感谢各位大佬!镜像docker自己拖得,安装没问题,应该不是架构的问题
挂载空间还有10G以上
Config文件夹是空白的没有log文件,不知道怎么看HA的日志了
privileged模式一直是开的,没有用
下面是容器安装的命令,依然报 process exit code 256
docker run -d \
  --name homeassistant \
  --privileged=true \
  --restart=unless-stopped \
  -e TZ=Asia/Shanghai \
  -v /home/hass:/config \
  --network=host \
  homeassistant/home-assistant:stable

屏幕截图 2021-12-07 201814.png






回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-27 20:37 , Processed in 0.236806 second(s), 34 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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