HASSIO 一键安装脚本(更新解决 github 连接问题)

Robot插播广告,死活搞不定然后又想体验home assistant的,可以考虑一下这个:

本脚本与 2021年6月1日 停止维护,江湖再见!

2020-01-21 Update

Fixed:

注:克隆只为了解决网络问题,并没有克隆提交记录,也没有修改里面任何内容。

HassIO 是什么?

有很多人根本不清楚 hassio和 homeassistant到底什么关系(其实我刚入坑也搞的我迷迷糊糊,还有墨澜美女博客的高能警告更搞的我迷迷糊糊),这样理解吧,hassio是一个框架,他利用 docker 来部署 homeassistant,并且为homeassistant 提供各种插件(addons)。

而 homeassistant 在 hassio 中,homeassistant 是利用docker 部署起来,hassio 和homeassistant 是通过他们的API进行联系和沟通。

那么 hassio 到底做了什么,他作用是什么?

我的理解是:hassio 是利用Python写了一个类似 docker 管理器那样的程序,拥有 docker 的控制权,从而达到升级/降级 homeassistant 容器,安装/卸载 addons的目的。

Docker 又是什么?

建议看一下我学习 docker 的教程写的很好《Docker — 从入门到实践

Docker 你可以将其理解成一个类似虚拟机的系统(但内核是和宿主共用的,故此比传统的虚拟机更轻量)。他的初衷是为了给各个业务系统提供一个干净的隔离环境(我自己理解,可能比较片面与不准确)。

我称 Docker 为运维神器,为什么?因为Docker 可以让你实现开箱即用。举个例子,如果我的hassio要迁移,我只需要把 hassio文件夹拷走(默认路径 /usr/share/hassio),然后拷贝到新的机器上,再运行我的一键脚本,整个 hassio 的所有东西,包括addons插件都会按照原来的方式运行,这要归功于 docker 的便利性。

Addons 是什么

hassio 设计了一套他独有的 addons 容器编写规范,由于是hassio独有,所以这些 addons 只适配 hassio 使用。

我能不能在其他支持docker 的机器上安装 addons(不依赖 hassio)?

答案其实是可以的,因为 addons 其实都是跑在docker 上所以只要设备能安装docker,那么 addons 其实就可以跑。但是上面也说了,addons是基于 hassio规范来设计的容器,所以我们在无 hassio 的情况下使用 addons 就要手工按照 hassio 配置方式来启动 addons了,具体怎么启动可以参考 addons 官方制作文档**Developing an add-on**,和我另一个帖子 群晖部署天猫精灵网关 For Docker

hassio_install

hassio 一键安装脚本,实现以下功能。

  1. 自动更改系统源为清华源。(目前支持 Debian Ubuntu Raspbian 三款系统)
  2. 自动安装 Docker,可以选择切换 Docker 源为国内源,提高容器下载速度。

目前支持的系统

  • Raspberry Pi OS Lite 测试版本 Raspberry Pi OS Lite 2020年12月2日通过
  • Ubuntu 测试版本 12.04 LTS测试通过。
  • Debian 测试版本 >=10 最小化版本测试通过。

使用方法

以 root 身份运行以下命令。

wget https://code.aliyun.com/neroxps/hassio_install/raw/master/install.sh
chmod a+x install.sh
./install.sh

如果安装的是 64 位系统,脚本会自动筛选适配 64 位的设备列表

(1). 是否将系统源切换为中科大(USTC)源(目前支持 Debian Ubuntu Raspbian 三款系统)
请输入 y or n(默认 yes):y


(2). 在你系统内找到 nero 用户,是否将其添加至 docker 用户组。
请输入 yes 或者 no (默认 yes):y
将nero用户添加至 docker 用户组。


(3).是否需要替换 docker 默认源?
请输入 yes 或者 no(默认:yes):y


(4).请选择你设备类型(默认:qemux86-64)
    [1]: raspberrypi3-64
    [2]: qemuarm-64
    [3]: qemux86-64
输入数字 (1-3):
你选择了 qemux86-64
 ################################################################################
 # 1. 是否将系统源切换为中科大(USTC)源: 是
 # 2. 是否将用户添加至 Docker 用户组:   是,添加用户为 nero 
 # 3. 是否将 Docker 源切换至国内源:     是
 # 4. 您的设备类型为:                   qemux86-64
 ################################################################################
请确认以上信息,继续请按任意键,如需修改请输入 Ctrl+C 结束任务重新执行脚本。

如果安装的是 32 位系统,脚本会自动筛选适配32位的设备列表

(1). 是否将系统源切换为中科大(USTC)源(目前支持 Debian Ubuntu Raspbian 三款系统)
请输入 y or n(默认 yes):y


(2). 在你系统内找到 nero 用户,是否将其添加至 docker 用户组。
请输入 yes 或者 no (默认 yes):y
将nero用户添加至 docker 用户组。


(3).是否需要替换 docker 默认源?
请输入 yes 或者 no(默认:yes):y


(4).请选择你设备类型(默认:qemux86)
    [1]: raspberrypi
    [2]: raspberrypi2
    [3]: raspberrypi3
    [4]: qemuarm
    [5]: qemux86
    [6]: intel-nuc
输入数字 (1-6):
你选择了 qemux86
 ################################################################################
 # 1. 是否将系统源切换为中科大(USTC)源: 是
 # 2. 是否将用户添加至 Docker 用户组:   是,添加用户为 nero 
 # 3. 是否将 Docker 源切换至国内源:     是
 # 4. 您的设备类型为:                   qemux86
 ################################################################################
请确认以上信息,继续请按任意键,如需修改请输入 Ctrl+C 结束任务重新执行脚本。

设备类型选型说明

  • intel-nuc :英特尔的nuc小主机
  • odroid-c2 :韩国odroid-c2
  • odroid-xu :韩国odroid-xu
  • orangepi-prime :香橙派
  • qemuarm :通用arm设备(例如斐讯N1)
  • qemuarm-64 :通用arm设备(例如斐讯N1) 64位系统
  • qemux86 :通用X86 64位系统(普通的PC机电脑)
  • qemux86-64 :通用X86(普通的PC机电脑)64位系统
  • raspberrypi :树莓派一代
  • raspberrypi2 :树莓派二代
  • raspberrypi3 :树莓派三代
  • raspberrypi4 :树莓派四代
  • raspberrypi3-64 :树莓派三代64位系统
  • raspberrypi4-64 :树莓派四代64位系统
  • tinker :华硕tinker

Hassio 升级脚本

由于网络原因,hassio_supervisor 经常如下报告:

18-08-15 03:57:02 WARNING (MainThread) [hassio.updater] Can't fetch versions from https://s3.amazonaws.com/hassio-version/stable.json

无法从亚马逊刷新最新版的 json 文件,导致 hassio 升级失败,我制作了 hassio 升级脚本,可以使用脚本手动升级。

使用方法

请使用 root 权限运行以下命令。

wget https://code.aliyun.com/neroxps/hassio_install/raw/master/hassio_upgrade.sh
chmod u+x hassio_upgrade.sh
./hassio_upgrade.sh

操作说明

停止(但重启依然会自启动)

systemctl stop hassio-supervisor.service

重启

systemctl restart hassio-supervisor.service

禁用自启动

systemctl disable hassio-supervisor.service

启用自启动

systemctl enable hassio-supervisor.service

查询当前启动状态

systemctl status hassio-supervisor.service

查询当前是否自启动

systemctl is-enabled hassio-supervisor.service

查询 hassio 日志

docker logs -f hassio_supervisor

查询 hassio 日志最新20行信息

docker logs -f hassio_supervisor --tail 20

查询 ha 日志

docker logs -f homeassistant

查询 ha 日志最新20行信息

docker logs -f homeassistant --tail 20

systemctl 说明 : https://linux.cn/article-5926-1.html
docker logs 命令用法:https://docs.docker.com/engine/reference/commandline/logs

Homeassistant 版本切换脚本

此脚本可在宿主中切换homeassistant版本号

严重警告

  1. 切换版本的 home-assistant 请先备份好配置文件,虽然脚本会自动备份,但最好自己再备份一次,出现丢失配置情况恕不负责。
  2. 切换旧版本启动失败的,请查看 home-assistant 的日志来修复错误配置
  3. 切换过旧的版本会导致 hassio 加载 404,目前已知 0.77 以前版本都无法正常加载 hassio
  4. 启动失败可以到论坛带日志发帖求助,无日志发帖我将会扣分处理

使用方法

使用 root 运行一下命令

wget https://code.aliyun.com/neroxps/hassio_install/raw/master/homeassistant_ver_switch.sh
chmod u+x homeassistant_ver_switch.sh
./homeassistant_ver_switch.sh 0.92.2

鸣谢

感谢帮我测试脚本的:Yume戴迪、萝卜

n大n大n大n大
我不知道用什么词来赞美你了
自行脑补

debconf: DbDriver “templatedb”: could not write /var/cache/debconf/templates.dat-new: Read-only file system
dpkg: error: unable to access dpkg status area: Read-only file system
W: Not using locking for read only lock file /var/lib/dpkg/lock-frontend
W: Not using locking for read only lock file /var/lib/dpkg/lock
W: chown to _apt:root of directory /var/cache/apt/archives/partial failed - SetupAPTPartialDirectory (30: Read-only file system)
W: chmod 0700 of directory /var/cache/apt/archives/partial failed - SetupAPTPartialDirectory (30: Read-only file system)
W: chown to _apt:root of directory /var/lib/apt/lists/auxfiles failed - SetupAPTPartialDirectory (30: Read-only file system)
W: chmod 0700 of directory /var/lib/apt/lists/auxfiles failed - SetupAPTPartialDirectory (30: Read-only file system)
W: Not using locking for read only lock file /var/cache/apt/archives/lock
E: Could not create temporary file for /var/lib/apt/extended_states - mkstemp (30: Read-only file system)
E: Failed to write temporary StateFile /var/lib/apt/extended_states
E: Sub-process /usr/bin/dpkg returned an error code (2)
W: Problem unlinking the file /var/cache/apt/pkgcache.bin - pkgDPkgPM::Go (30: Read-only file system)

################# 发到论坛时,请把上方日志也一并粘贴发送 ################
########################### System version ###########################
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic
########################### System version 2 ###########################
Linux version 5.0.2-aml-s905 (root@vbox) (gcc version 7.3.1 20180425 [linaro-7.3-2018.05 revision d29120a424ecfbc167ef90065c0eeb7f91977701] (Linaro GCC 7.3-2018.05)) #5.77 SMP PREEMPT Mon Apr 1 17:23:16 MSK 2019
########################### System info ###########################
Linux aml 5.0.2-aml-s905 #5.77 SMP PREEMPT Mon Apr 1 17:23:16 MSK 2019 aarch64 aarch64 aarch64 GNU/Linux

重启即可解决~~~

来这里就是为了来看你。。优秀

root@aml:~# ./install.sh
(1). 是否将系统源切换为中科大(USTC)源(目前支持 Debian Ubuntu Raspbian 三款系统)
请输入 y or n(默认 yes):y

(2). 找到该系统中有以下用户名
如下方列表未显示你的用户名,请切换回你用户账号后输入 sudo usermod -aG docker $USER 添加用户到 docker 用户组。
[1]: systemd-coredump
[2]: homebridge
[s]: 跳过
请输入你需要使用 docker 的用户名序号,以加入 docker 用户组:1
将systemd-coredump用户添加至 docker 用户组。

(3).是否需要替换 docker 默认源?
请输入 yes 或者 no(默认:yes):y

  1. docker-cn (docker 官方中国镜像源,阿里云提供服务,但流量大可能会卡)
  2. 七牛云 docker 镜像源
  3. 163 docker 镜像源(无 SSL)
    请选择 docker 加速器(默认:七牛云):3

(4).请选择你设备类型(默认:qemux86-64)
[1]: intel-nuc: 英特尔的nuc小主机
[2]: odroid-c2: 韩国odroid-c2
[3]: odroid-xu: 韩国odroid-xu
[4]: orangepi-prime: 香橙派
[5]: qemuarm-64: 通用arm设备(例如斐讯N1) 64位系统
[6]: qemux86-64: 通用X86(普通的PC机电脑)64位系统
[7]: raspberrypi3-64: 树莓派三代64位系统
[8]: raspberrypi4-64: 树莓派四代64位系统
[9]: tinker: 华硕tinker
输入数字 (1-9):5
你选择了 qemuarm-64

(5).是否需要设置 hassio 数据保存路径(默认:/usr/share/hassio)
请输入 yes 或 no (默认:no):n
hassio 数据路径为默认路径: /usr/share/hassio
################################################################################

1. 是否将系统源切换为中科大(USTC)源: 是

2. 是否将用户添加至 Docker 用户组: 是,添加用户为 systemd-coredump

3. 是否将 Docker 源切换至国内源: 是,切换源选择:163源

4. 您的设备类型为: qemuarm-64

5. 您的 hassio 数据路径为: /usr/share/hassio

################################################################################
请确认以上信息,继续请按任意键,如需修改请输入 Ctrl+C 结束任务重新执行脚本。

命中:1 https://mirror.azure.cn/docker-ce/linux/debian buster InRelease
命中:2 https://deb.nodesource.com/node_8.x buster InRelease
命中:3 http://mirrors.ustc.edu.cn/debian buster InRelease
命中:4 http://mirrors.ustc.edu.cn/debian buster-updates InRelease
命中:5 http://mirrors.ustc.edu.cn/debian-security buster/updates InRelease
正在读取软件包列表… 完成
正在分析软件包的依赖关系树
正在读取状态信息… 完成
有 66 个软件包可以升级。请执行 ‘apt list --upgradable’ 来查看它们。
info: 安装 hassio 必要依赖…
正在读取软件包列表… 完成
正在分析软件包的依赖关系树
正在读取状态信息… 完成
avahi-daemon 已经是最新版 (0.7-4+b1)。
jq 已经是最新版 (1.5+dfsg-2+b1)。
net-tools 已经是最新版 (1.60+git20180626.aebd88e-1)。
network-manager 已经是最新版 (1.14.6-2+deb10u1)。
socat 已经是最新版 (1.7.3.2-2)。
curl 已经是最新版 (7.64.0-4+deb10u1)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 66 个软件包未被升级。
/usr/bin/docker
info: 发现系统已安装 docker,跳过 docker 安装
info: 切换 Docker 源为国内源…
info: 切换国内源完成
info: 安装 hassio…
hub.docker.com 下载 homeassistant/qemuarm-64-homeassistant:0.105.5…
0.105.5: Pulling from homeassistant/qemuarm-64-homeassistant
8bfa91304040: Pull complete
90fa5da5faf7: Pull complete
f55cb04fbfb7: Pull complete
b0bdc79a28d4: Pull complete
b81c2a17d138: Pull complete
941cb2e3c6ce: Pull complete
f10469b009b4: Pull complete
decad9136174: Pull complete
a2a367a0e1bd: Pull complete
2b6896a786d2: Pull complete
9b6012c172d7: Pull complete
62358d53803e: Pull complete
4174d329adaf: Pull complete
dc77b4714d61: Pull complete
fd221a368d3c: Pull complete
035de27d0c37: Pull complete
45cd340d65c5: Pull complete
27932c296884: Pull complete
d787042e6df1: Pull complete
040958af86e2: Pull complete
3024d6dfff20: Pull complete
b63c7f1628d3: Pull complete
0f66ebe48872: Pull complete
Digest: sha256:5570a9fb5ddaf7a57030d5a602e263a7a3700eb2d6ae6e6aaf2dd04503b79dea
Status: Downloaded newer image for homeassistant/qemuarm-64-homeassistant:0.105.5
docker.io/homeassistant/qemuarm-64-homeassistant:0.105.5
开始 hassio 安装流程。(如出现 [Warning] 请忽略,无须理会)
[Warning] No AppArmor support on host.
Info Install supervisor Docker container

Get https://registry-1.docker.io/v2/: net/http: TLS handshake timeout
Unit hassio-supervisor.service could not be found.

################# 发到论坛时,请把上方日志也一并粘贴发送 ################
########################### System version ###########################
Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster
########################### System version 2 ###########################
Linux version 5.3.0-aml-g12 (root@vbox) (gcc version 7.4.1 20181213 [linaro-7.4-2019.02 revision 56ec6f6b99cc167ff0c2f8e1a2eed33b1edc85d4] (Linaro GCC 7.4-2019.02)) #5.99 SMP PREEMPT Sat Nov 9 17:44:28 MSK 2019
########################### System info ###########################
Linux aml 5.3.0-aml-g12 #5.99 SMP PREEMPT Sat Nov 9 17:44:28 MSK 2019 aarch64 GNU/Linux
########################### END ###########################
安装 hassio 失败,请将上方安装信息发送到论坛询问。脚本退出…

相关问题可以访问https://bbs.iobroker.cn或者加QQ群776817275咨询
请问这是啥问题啊

1 个赞

google TLS handshake timeout

群晖里可以用这个脚本么?

不可以,群晖看这个 homeassistant--群晖套件中心安装hassio

N大,就喜欢看你表演~ :grinning: :grin:

大哥 你想看啥表演。

胸口碎大石:stuck_out_tongue:,我来表演,你来围观

HmmViqtOzrPDMrPOkYRtvgX3ReBvDg5l

20-05-19 05:03:38 WARNING (MainThread) [supervisor.tasks] Watchdog found a problem with PulseAudio plugin!
20-05-19 05:03:38 INFO (MainThread) [supervisor.plugins.audio] Start Audio plugin
20-05-19 05:03:38 WARNING (MainThread) [supervisor.tasks] Watchdog found a problem with CoreDNS plugin!
20-05-19 05:03:38 INFO (MainThread) [supervisor.plugins.dns] Start CoreDNS plugin
20-05-19 05:03:39 ERROR (SyncWorker_2) [supervisor.docker] Can't create container from hassio_audio: 400 Client Error: Bad Request ("create no/audio: "no/audio" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path")
20-05-19 05:03:39 ERROR (MainThread) [supervisor.plugins.audio] Can't start Audio plugin
20-05-19 05:03:39 ERROR (MainThread) [supervisor.tasks] Watchdog PulseAudio reanimation fails!
20-05-19 05:03:39 ERROR (SyncWorker_0) [supervisor.docker] Can't create container from hassio_dns: 400 Client Error: Bad Request ("create no/dns: "no/dns" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path")
20-05-19 05:03:39 ERROR (MainThread) [supervisor.plugins.dns] Can't start CoreDNS plugin
20-05-19 05:03:39 ERROR (MainThread) [supervisor.tasks] Watchdog CoreDNS reanimation fails!
20-05-19 05:03:58 WARNING (MainThread) [supervisor.tasks] Watchdog found a problem with CoreDNS plugin!
20-05-19 05:03:58 INFO (MainThread) [supervisor.plugins.dns] Start CoreDNS plugin
20-05-19 05:03:59 ERROR (SyncWorker_3) [supervisor.docker] Can't create container from hassio_dns: 400 Client Error: Bad Request ("create no/dns: "no/dns" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path")
20-05-19 05:03:59 ERROR (MainThread) [supervisor.plugins.dns] Can't start CoreDNS plugin
20-05-19 05:03:59 ERROR (MainThread) [supervisor.tasks] Watchdog CoreDNS reanimation fails!
20-05-19 05:04:08 WARNING (MainThread) [supervisor.tasks] Watchdog found a problem with PulseAudio plugin!
20-05-19 05:04:08 INFO (MainThread) [supervisor.plugins.audio] Start Audio plugin
20-05-19 05:04:09 ERROR (SyncWorker_4) [supervisor.docker] Can't create container from hassio_audio: 400 Client Error: Bad Request ("create no/audio: "no/audio" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path")
20-05-19 05:04:09 ERROR (MainThread) [supervisor.plugins.audio] Can't start Audio plugin
20-05-19 05:04:09 ERROR (MainThread) [supervisor.tasks] Watchdog PulseAudio reanimation fails!
20-05-19 05:04:18 WARNING (MainThread) [supervisor.tasks] Watchdog found a problem with CoreDNS plugin!
20-05-19 05:04:18 INFO (MainThread) [supervisor.plugins.dns] Start CoreDNS plugin
20-05-19 05:04:19 ERROR (SyncWorker_0) [supervisor.docker] Can't create container from hassio_dns: 400 Client Error: Bad Request ("create no/dns: "no/dns" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path")
20-05-19 05:04:19 ERROR (MainThread) [supervisor.plugins.dns] Can't start CoreDNS plugin
20-05-19 05:04:19 ERROR (MainThread) [supervisor.tasks] Watchdog CoreDNS reanimation fails!
20-05-19 05:04:38 WARNING (MainThread) [supervisor.tasks] Watchdog found a problem with CoreDNS plugin!
20-05-19 05:04:38 INFO (MainThread) [supervisor.plugins.dns] Start CoreDNS plugin
20-05-19 05:04:38 WARNING (MainThread) [supervisor.tasks] Watchdog found a problem with PulseAudio plugin!
20-05-19 05:04:38 INFO (MainThread) [supervisor.plugins.audio] Start Audio plugin
20-05-19 05:04:39 ERROR (SyncWorker_2) [supervisor.docker] Can't create container from hassio_dns: 400 Client Error: Bad Request ("create no/dns: "no/dns" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path")
20-05-19 05:04:39 ERROR (MainThread) [supervisor.plugins.dns] Can't start CoreDNS plugin
20-05-19 05:04:39 ERROR (MainThread) [supervisor.tasks] Watchdog CoreDNS reanimation fails!
20-05-19 05:04:39 ERROR (SyncWorker_4) [supervisor.docker] Can't create container from hassio_audio: 400 Client Error: Bad Request ("create no/audio: "no/audio" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path")
20-05-19 05:04:39 ERROR (MainThread) [supervisor.plugins.audio] Can't start Audio plugin
20-05-19 05:04:39 ERROR (MainThread) [supervisor.tasks] Watchdog PulseAudio reanimation fails!
20-05-19 05:04:58 WARNING (MainThread) [supervisor.tasks] Watchdog found a problem with CoreDNS plugin!
20-05-19 05:04:58 INFO (MainThread) [supervisor.plugins.dns] Start CoreDNS plugin
20-05-19 05:04:59 ERROR (SyncWorker_0) [supervisor.docker] Can't create container from hassio_dns: 400 Client Error: Bad Request ("create no/dns: "no/dns" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path")
20-05-19 05:04:59 ERROR (MainThread) [supervisor.plugins.dns] Can't start CoreDNS plugin
20-05-19 05:04:59 ERROR (MainThread) [supervisor.tasks] Watchdog CoreDNS reanimation fails!
20-05-19 05:05:08 WARNING (MainThread) [supervisor.tasks] Watchdog found a problem with PulseAudio plugin!
20-05-19 05:05:08 INFO (MainThread) [supervisor.plugins.audio] Start Audio plugin
20-05-19 05:05:09 ERROR (SyncWorker_3) [supervisor.docker] Can't create container from hassio_audio: 400 Client Error: Bad Request ("create no/audio: "no/audio" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path")
20-05-19 05:05:09 ERROR (MainThread) [supervisor.plugins.audio] Can't start Audio plugin
20-05-19 05:05:09 ERROR (MainThread) [supervisor.tasks] Watchdog PulseAudio reanimation fails!
20-05-19 05:05:18 WARNING (MainThread) [supervisor.tasks] Watchdog found a problem with CoreDNS plugin!
20-05-19 05:05:18 INFO (MainThread) [supervisor.plugins.dns] Start CoreDNS plugin
20-05-19 05:05:19 ERROR (SyncWorker_3) [supervisor.docker] Can't create container from hassio_dns: 400 Client Error: Bad Request ("create no/dns: "no/dns" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path")
20-05-19 05:05:19 ERROR (MainThread) [supervisor.plugins.dns] Can't start CoreDNS plugin
20-05-19 05:05:19 ERROR (MainThread) [supervisor.tasks] Watchdog CoreDNS reanimation fails!
20-05-19 05:05:38 WARNING (MainThread) [supervisor.tasks] Watchdog found a problem with CoreDNS plugin!
20-05-19 05:05:38 INFO (MainThread) [supervisor.plugins.dns] Start CoreDNS plugin
20-05-19 05:05:38 WARNING (MainThread) [supervisor.tasks] Watchdog found a problem with PulseAudio plugin!
20-05-19 05:05:38 INFO (MainThread) [supervisor.plugins.audio] Start Audio plugin
20-05-19 05:05:39 ERROR (SyncWorker_1) [supervisor.docker] Can't create container from hassio_audio: 400 Client Error: Bad Request ("create no/audio: "no/audio" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path")
20-05-19 05:05:39 ERROR (MainThread) [supervisor.plugins.audio] Can't start Audio plugin
20-05-19 05:05:39 ERROR (MainThread) [supervisor.tasks] Watchdog PulseAudio reanimation fails!
20-05-19 05:05:39 ERROR (SyncWorker_4) [supervisor.docker] Can't create container from hassio_dns: 400 Client Error: Bad Request ("create no/dns: "no/dns" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path")
20-05-19 05:05:39 ERROR (MainThread) [supervisor.plugins.dns] Can't start CoreDNS plugin
20-05-19 05:05:39 ERROR (MainThread) [supervisor.tasks] Watchdog CoreDNS reanimation fails!
20-05-19 05:05:58 WARNING (MainThread) [supervisor.tasks] Watchdog found a problem with CoreDNS plugin!
20-05-19 05:05:58 INFO (MainThread) [supervisor.plugins.dns] Start CoreDNS plugin
20-05-19 05:05:58 ERROR (SyncWorker_0) [supervisor.docker] Can't create container from hassio_dns: 400 Client Error: Bad Request ("create no/dns: "no/dns" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path")
20-05-19 05:05:59 ERROR (MainThread) [supervisor.plugins.dns] Can't start CoreDNS plugin
20-05-19 05:05:59 ERROR (MainThread) [supervisor.tasks] Watchdog CoreDNS reanimation fails!
20-05-19 05:06:08 WARNING (MainThread) [supervisor.tasks] Watchdog found a problem with PulseAudio plugin!
20-05-19 05:06:08 INFO (MainThread) [supervisor.plugins.audio] Start Audio plugin
20-05-19 05:06:09 ERROR (SyncWorker_4) [supervisor.docker] Can't create container from hassio_audio: 400 Client Error: Bad Request ("create no/audio: "no/audio" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path")
20-05-19 05:06:09 ERROR (MainThread) [supervisor.plugins.audio] Can't start Audio plugin
20-05-19 05:06:09 ERROR (MainThread) [supervisor.tasks] Watchdog PulseAudio reanimation fails!
20-05-19 05:06:18 WARNING (MainThread) [supervisor.tasks] Watchdog found a problem with CoreDNS plugin!
20-05-19 05:06:18 INFO (MainThread) [supervisor.plugins.dns] Start CoreDNS plugin
20-05-19 05:06:18 ERROR (SyncWorker_3) [supervisor.docker] Can't create container from hassio_dns: 400 Client Error: Bad Request ("create no/dns: "no/dns" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path")
20-05-19 05:06:18 ERROR (MainThread) [supervisor.plugins.dns] Can't start CoreDNS plugin
20-05-19 05:06:18 ERROR (MainThread) [supervisor.tasks] Watchdog CoreDNS reanimation fails!
20-05-19 05:06:38 WARNING (MainThread) [supervisor.tasks] Watchdog found a problem with CoreDNS plugin!
20-05-19 05:06:38 INFO (MainThread) [supervisor.plugins.dns] Start CoreDNS plugin
20-05-19 05:06:38 WARNING (MainThread) [supervisor.tasks] Watchdog found a problem with PulseAudio plugin!
20-05-19 05:06:38 INFO (MainThread) [supervisor.plugins.audio] Start Audio plugin
20-05-19 05:06:39 ERROR (SyncWorker_3) [supervisor.docker] Can't create container from hassio_audio: 400 Client Error: Bad Request ("create no/audio: "no/audio" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path")
20-05-19 05:06:39 ERROR (MainThread) [supervisor.plugins.audio] Can't start Audio plugin
20-05-19 05:06:39 ERROR (MainThread) [supervisor.tasks] Watchdog PulseAudio reanimation fails!
20-05-19 05:06:39 ERROR (SyncWorker_4) [supervisor.docker] Can't create container from hassio_dns: 400 Client Error: Bad Request ("create no/dns: "no/dns" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path")
20-05-19 05:06:39 ERROR (MainThread) [supervisor.plugins.dns] Can't start CoreDNS plugin
20-05-19 05:06:39 ERROR (MainThread) [supervisor.tasks] Watchdog CoreDNS reanimation fails!
20-05-19 05:06:58 WARNING (MainThread) [supervisor.tasks] Watchdog found a problem with CoreDNS plugin!
20-05-19 05:06:58 INFO (MainThread) [supervisor.plugins.dns] Start CoreDNS plugin
20-05-19 05:06:58 ERROR (SyncWorker_3) [supervisor.docker] Can't create container from hassio_dns: 400 Client Error: Bad Request ("create no/dns: "no/dns" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path")
20-05-19 05:06:58 ERROR (MainThread) [supervisor.plugins.dns] Can't start CoreDNS plugin
20-05-19 05:06:58 ERROR (MainThread) [supervisor.tasks] Watchdog CoreDNS reanimation fails!
20-05-19 05:07:08 WARNING (MainThread) [supervisor.tasks] Watchdog found a problem with PulseAudio plugin!
20-05-19 05:07:08 INFO (MainThread) [supervisor.plugins.audio] Start Audio plugin
20-05-19 05:07:09 ERROR (SyncWorker_3) [supervisor.docker] Can't create container from hassio_audio: 400 Client Error: Bad Request ("create no/audio: "no/audio" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path")
20-05-19 05:07:09 ERROR (MainThread) [supervisor.plugins.audio] Can't start Audio plugin
20-05-19 05:07:09 ERROR (MainThread) [supervisor.tasks] Watchdog PulseAudio reanimation fails!
20-05-19 05:07:18 WARNING (MainThread) [supervisor.tasks] Watchdog found a problem with CoreDNS plugin!
20-05-19 05:07:18 INFO (MainThread) [supervisor.plugins.dns] Start CoreDNS plugin
20-05-19 05:07:19 ERROR (SyncWorker_3) [supervisor.docker] Can't create container from hassio_dns: 400 Client Error: Bad Request ("create no/dns: "no/dns" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path")
20-05-19 05:07:19 ERROR (MainThread) [supervisor.plugins.dns] Can't start CoreDNS plugin
20-05-19 05:07:19 ERROR (MainThread) [supervisor.tasks] Watchdog CoreDNS reanimation fails!
20-05-19 05:07:38 WARNING (MainThread) [supervisor.tasks] Watchdog found a problem with CoreDNS plugin!
20-05-19 05:07:38 INFO (MainThread) [supervisor.plugins.dns] Start CoreDNS plugin
20-05-19 05:07:38 WARNING (MainThread) [supervisor.tasks] Watchdog found a problem with PulseAudio plugin!
20-05-19 05:07:38 INFO (MainThread) [supervisor.plugins.audio] Start Audio plugin
20-05-19 05:07:39 ERROR (SyncWorker_2) [supervisor.docker] Can't create container from hassio_dns: 400 Client Error: Bad Request ("create no/dns: "no/dns" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path")
20-05-19 05:07:39 ERROR (MainThread) [supervisor.plugins.dns] Can't start CoreDNS plugin
20-05-19 05:07:39 ERROR (MainThread) [supervisor.tasks] Watchdog CoreDNS reanimation fails!
20-05-19 05:07:39 ERROR (SyncWorker_4) [supervisor.docker] Can't create container from hassio_audio: 400 Client Error: Bad Request ("create no/audio: "no/audio" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path")
20-05-19 05:07:39 ERROR (MainThread) [supervisor.plugins.audio] Can't start Audio plugin
20-05-19 05:07:39 ERROR (MainThread) [supervisor.tasks] Watchdog PulseAudio reanimation fails!
20-05-19 05:07:58 WARNING (MainThread) [supervisor.tasks] Watchdog found a problem with CoreDNS plugin!
20-05-19 05:07:58 INFO (MainThread) [supervisor.plugins.dns] Start CoreDNS plugin
20-05-19 05:07:59 ERROR (SyncWorker_1) [supervisor.docker] Can't create container from hassio_dns: 400 Client Error: Bad Request ("create no/dns: "no/dns" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path")
20-05-19 05:07:59 ERROR (MainThread) [supervisor.plugins.dns] Can't start CoreDNS plugin
20-05-19 05:07:59 ERROR (MainThread) [supervisor.tasks] Watchdog CoreDNS reanimation fails!
20-05-19 05:08:08 WARNING (MainThread) [supervisor.tasks] Watchdog found a problem with PulseAudio plugin!
20-05-19 05:08:08 INFO (MainThread) [supervisor.plugins.audio] Start Audio plugin
20-05-19 05:08:09 ERROR (SyncWorker_0) [supervisor.docker] Can't create container from hassio_audio: 400 Client Error: Bad Request ("create no/audio: "no/audio" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path")
20-05-19 05:08:09 ERROR (MainThread) [supervisor.plugins.audio] Can't start Audio plugin
20-05-19 05:08:09 ERROR (MainThread) [supervisor.tasks] Watchdog PulseAudio reanimation fails!
20-05-19 05:08:18 WARNING (MainThread) [supervisor.tasks] Watchdog found a problem with CoreDNS plugin!
20-05-19 05:08:18 INFO (MainThread) [supervisor.plugins.dns] Start CoreDNS plugin
20-05-19 05:08:19 ERROR (SyncWorker_2) [supervisor.docker] Can't create container from hassio_dns: 400 Client Error: Bad Request ("create no/dns: "no/dns" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path")
20-05-19 05:08:19 ERROR (MainThread) [supervisor.plugins.dns] Can't start CoreDNS plugin
20-05-19 05:08:19 ERROR (MainThread) [supervisor.tasks] Watchdog CoreDNS reanimation fails!
20-05-19 05:08:38 WARNING (MainThread) [supervisor.tasks] Watchdog found a problem with CoreDNS plugin!
20-05-19 05:08:38 INFO (MainThread) [supervisor.plugins.dns] Start CoreDNS plugin
20-05-19 05:08:38 WARNING (MainThread) [supervisor.tasks] Watchdog found a problem with PulseAudio plugin!
20-05-19 05:08:38 INFO (MainThread) [supervisor.plugins.audio] Start Audio plugin
20-05-19 05:08:39 ERROR (SyncWorker_4) [supervisor.docker] Can't create container from hassio_dns: 400 Client Error: Bad Request ("create no/dns: "no/dns" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path")
20-05-19 05:08:39 ERROR (MainThread) [supervisor.plugins.dns] Can't start CoreDNS plugin
20-05-19 05:08:39 ERROR (MainThread) [supervisor.tasks] Watchdog CoreDNS reanimation fails!
20-05-19 05:08:39 ERROR (SyncWorker_2) [supervisor.docker] Can't create container from hassio_audio: 400 Client Error: Bad Request ("create no/audio: "no/audio" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path")
20-05-19 05:08:39 ERROR (MainThread) [supervisor.plugins.audio] Can't start Audio plugin
20-05-19 05:08:39 ERROR (MainThread) [supervisor.tasks] Watchdog PulseAudio reanimation fails!
20-05-19 05:08:58 WARNING (MainThread) [supervisor.tasks] Watchdog found a problem with CoreDNS plugin!
20-05-19 05:08:58 INFO (MainThread) [supervisor.plugins.dns] Start CoreDNS plugin
20-05-19 05:08:59 ERROR (SyncWorker_2) [supervisor.docker] Can't create container from hassio_dns: 400 Client Error: Bad Request ("create no/dns: "no/dns" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path")
20-05-19 05:08:59 ERROR (MainThread) [supervisor.plugins.dns] Can't start CoreDNS plugin
20-05-19 05:08:59 ERROR (MainThread) [supervisor.tasks] Watchdog CoreDNS reanimation fails!
20-05-19 05:09:08 WARNING (MainThread) [supervisor.tasks] Watchdog found a problem with PulseAudio plugin!
20-05-19 05:09:08 INFO (MainThread) [supervisor.plugins.audio] Start Audio plugin
20-05-19 05:09:09 ERROR (SyncWorker_1) [supervisor.docker] Can't create container from hassio_audio: 400 Client Error: Bad Request ("create no/audio: "no/audio" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path")
20-05-19 05:09:09 ERROR (MainThread) [supervisor.plugins.audio] Can't start Audio plugin
20-05-19 05:09:09 ERROR (MainThread) [supervisor.tasks] Watchdog PulseAudio reanimation fails!
20-05-19 05:09:18 WARNING (MainThread) [supervisor.tasks] Watchdog found a problem with CoreDNS plugin!
20-05-19 05:09:18 INFO (MainThread) [supervisor.plugins.dns] Start CoreDNS plugin
20-05-19 05:09:18 ERROR (SyncWorker_1) [supervisor.docker] Can't create container from hassio_dns: 400 Client Error: Bad Request ("create no/dns: "no/dns" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path")
20-05-19 05:09:18 ERROR (MainThread) [supervisor.plugins.dns] Can't start CoreDNS plugin
20-05-19 05:09:18 ERROR (MainThread) [supervisor.tasks] Watchdog CoreDNS reanimation fails!
20-05-19 05:09:38 WARNING (MainThread) [supervisor.tasks] Watchdog found a problem with CoreDNS plugin!
20-05-19 05:09:38 INFO (MainThread) [supervisor.plugins.dns] Start CoreDNS plugin
20-05-19 05:09:38 WARNING (MainThread) [supervisor.tasks] Watchdog found a problem with PulseAudio plugin!
20-05-19 05:09:38 INFO (MainThread) [supervisor.plugins.audio] Start Audio plugin
20-05-19 05:09:39 ERROR (SyncWorker_3) [supervisor.docker] Can't create container from hassio_dns: 400 Client Error: Bad Request ("create no/dns: "no/dns" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path")
20-05-19 05:09:39 ERROR (MainThread) [supervisor.plugins.dns] Can't start CoreDNS plugin
20-05-19 05:09:39 ERROR (MainThread) [supervisor.tasks] Watchdog CoreDNS reanimation fails!
20-05-19 05:09:39 ERROR (SyncWorker_1) [supervisor.docker] Can't create container from hassio_audio: 400 Client Error: Bad Request ("create no/audio: "no/audio" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path")
20-05-19 05:09:39 ERROR (MainThread) [supervisor.plugins.audio] Can't start Audio plugin
20-05-19 05:09:39 ERROR (MainThread) [supervisor.tasks] Watchdog PulseAudio reanimation fails!
########################### homeassistant log ###########################
Error: No such container: homeassistant
########################### END ###########################
 homeassistant 启动超时,请检查上方日志....或者重启操作系统
 相关问题可以访问https://bbs.iobroker.cn或者加QQ群776817275咨询

大佬我想问问这个问题,谢谢您了,我是在虚拟机的ubuntu下安装的,选的普通pc机版,出现了这个问题

估计是 hassio 官方又改了什么东西暂时没空看。下周我再排查下。

最近几天熬的太厉害,受不了。

恩恩,谢谢,非常感谢

ubuntu下安装是选择普通pc机安装吧

看你是什么设备,不是什么系统。

1 个赞

年轻人悠着点,俗话说耕不坏的田,只有熬死的牛。长做常有 :wink:

################# 发到论坛时,请把上方日志也一并粘贴发送 ################
########################### System version ###########################
Distributor ID: Debian
Description: Debian GNU/Linux 9.6 (stretch)
Release: 9.6
Codename: stretch
########################### System version 2 ###########################
Linux version 4.19.7-aml-s9xxx (root@vbox) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #5.67 SMP PREEMPT Fri Dec 28 10:43:31 MSK 2018
########################### System info ###########################
Linux aml 4.19.7-aml-s9xxx #5.67 SMP PREEMPT Fri Dec 28 10:43:31 MSK 2018 aarch64 GNU/Linux
########################### END ###########################
\033[0;33m [ERROR]: 由于无法确定系统版本,故请手动切换系统源,切换方法参考清华源使用方法:http://mirrors.ustc.edu.cn/help/\033[0m
怎么搞 N1