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

 找回密码
 立即注册
楼主: lazycn

求助冬瓜大佬,望请忙里偷闲进来救急为谢

[复制链接]

5

主题

36

帖子

182

积分

注册会员

Rank: 2

积分
182
金钱
146
HASS币
0
 楼主| 发表于 2024-6-13 23:06:00 | 显示全部楼层
本帖最后由 冬瓜HA 于 2024-6-15 11:32 编辑
<div class="quote"><blockquote>root@homeassistant:/ # wgturbo docker.io fastgh

设置 dockerhub(docker.io) 的加速镜像代理为: fastgh

当前配置的系统镜像加速站:

  docker.io  的镜像加速站: docker.xxx.com

  github.com 的镜像加速站: mirror.ghproxy.com

  ghcr.io    的镜像加速站: ghcr.nju.edu.cn

root@homeassistant:/ # wgturbo apply -D

应用配置到当前haos系统

当前配置的系统镜像加速站:

  docker.io  的镜像加速站: docker.xxx.com

  github.com 的镜像加速站: mirror.ghproxy.com

  ghcr.io    的镜像加速站: ghcr.nju.edu.cn

==[检测并停止服务]============================================

==[再次检测并停止服务]============================================

==[删除服务]============================================

==[删除镜像]============================================

==[在线版本]============================================

设备ID: m401a   指令集兼容: aarch64     设备兼容: odroid-c4

==[安装镜像]============================================

hassio_audio    => ghcr.nju.edu.cn/home-assistant/aarch64-hassio-audio:2023.12.0

Error response from daemon: Get "https://ghcr.nju.edu.cn/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)



hassio_cli      => ghcr.nju.edu.cn/home-assistant/aarch64-hassio-cli:2024.05.0

Error response from daemon: Head "https://ghcr.nju.edu.cn/v2/home-assistant/aarch64-hassio-cli/manifests/2024.05.0": Get "https://ghcr.nju.edu.cn/v2/token?scope=repository%!A(MISSING)home-assistant%!F(MISSING)aarch64-hassio-cli%!A(MISSING)pull&service=https%!A(MISSING)%!F(MISSING)%!F(MISSING)ghcr.nju.edu.cn%!F(MISSING)v2%!F(MISSING)token": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)



hassio_dns      => ghcr.nju.edu.cn/home-assistant/aarch64-hassio-dns:2024.04.0

Error response from daemon: Get "https://ghcr.nju.edu.cn/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)



hassio_multicast        => ghcr.nju.edu.cn/home-assistant/aarch64-hassio-multicast:2024.03.0

Error response from daemon: Get "https://ghcr.nju.edu.cn/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)



hassio_observer         => ghcr.nju.edu.cn/home-assistant/aarch64-hassio-observer:2023.06.0

Error response from daemon: Head "https://ghcr.nju.edu.cn/v2/home-assistant/aarch64-hassio-observer/manifests/2023.06.0": Get "https://ghcr.nju.edu.cn/v2/token?scope=repository%!A(MISSING)home-assistant%!F(MISSING)aarch64-hassio-observer%!A(MISSING)pull&service=https%!A(MISSING)%!F(MISSING)%!F(MISSING)ghcr.nju.edu.cn%!F(MISSING)v2%!F(MISSING)token": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

hassio_supervisor       => ghcr.nju.edu.cn/home-assistant/aarch64-hassio-supervisor:2024.06.0
Error response from daemon: Get "https://ghcr.nju.edu.cn/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

hassio_supervisor       => ghcr.nju.edu.cn/home-assistant/aarch64-hassio-supervisor:latest
Error response from daemon: Get "https://ghcr.nju.edu.cn/v2/": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

homeassistant   => ghcr.nju.edu.cn/home-assistant/odroid-c4-homeassistant:2024.6.2
Error response from daemon: Get "https://ghcr.nju.edu.cn/v2/": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

==[启动服务]============================================
root@homeassistant:/ # Error: No such object: hassio_supervisor
[WARNING] Supervisor container did not remove the startup marker file. Assuming container image or container corruption.
Error response from daemon: No such container: hassio_supervisor
"docker image rm" requires at least 1 argument.
See 'docker image rm --help'.

Usage:  docker image rm [OPTIONS] IMAGE [IMAGE...]

Remove one or more images
jq: error: Could not open file /mnt/data/supervisor/updater.json: No such file or directory
[WARNING] Supervisor image missing, downloading a fresh one: 2024.06.0
Error response from daemon: Get "https://ghcr.nju.edu.cn/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
[ERROR] Supervisor downloading failed.

回复

使用道具 举报

5

主题

36

帖子

182

积分

注册会员

Rank: 2

积分
182
金钱
146
HASS币
0
 楼主| 发表于 2024-6-13 23:08:31 | 显示全部楼层
SHENFULR 发表于 2024-6-13 21:46
这一步的时候输入wgturbo apply -D就可以了

我的不行
回复

使用道具 举报

5

主题

36

帖子

182

积分

注册会员

Rank: 2

积分
182
金钱
146
HASS币
0
 楼主| 发表于 2024-6-13 23:09:46 | 显示全部楼层
达文西 发表于 2024-6-13 22:25
执行命令前,先改ttyd模式。不用ha的专用shell,用系统的ash
wgttyd config --shell-bin /usr/ash
重启服务 ...

这个不改也行吗,和直接wgturbo apply -D是等效的吗?
回复

使用道具 举报

5

主题

36

帖子

182

积分

注册会员

Rank: 2

积分
182
金钱
146
HASS币
0
 楼主| 发表于 2024-6-13 23:35:42 | 显示全部楼层
冬瓜HA 发表于 2024-6-13 20:29
wgturbo docker.io fastgh

能不能不使用国内的源,慢点也行,搭上梯子,只要能好就行。
回复

使用道具 举报

1

主题

90

帖子

306

积分

中级会员

Rank: 3Rank: 3

积分
306
金钱
216
HASS币
0
发表于 2024-6-14 10:16:33 | 显示全部楼层
本帖最后由 达文西 于 2024-6-14 13:57 编辑

wgturbo docker.io fastgh
wgturbo ghcr.io fastgh
wgturbo apply -D

你少了配置 wgturbo ghcr.io fastgh这一步
你的系统目前默认是

当前配置的系统镜像加速站:
  docker.io  的镜像加速站: docker.xxxxx.com
  github.com 的镜像加速站: mirror.xxxxxxx.com
  ghcr.io    的镜像加速站: ghcr.xxx.xxx.cn

出错的不是docker.io这个已经配成fastgh了
出错的是ghcr.io这个还是xxx(xx大学,镜像失效)
所以你依然出错

评分

参与人数 1金钱 +1 收起 理由
lazycn + 1

查看全部评分

回复

使用道具 举报

1

主题

90

帖子

306

积分

中级会员

Rank: 3Rank: 3

积分
306
金钱
216
HASS币
0
发表于 2024-6-14 10:18:58 | 显示全部楼层
lazycn 发表于 2024-6-13 23:09
这个不改也行吗,和直接wgturbo apply -D是等效的吗?

在做系统切换前,可以尝试把7681端口的工作模式,从haos的专属ha-cli(ha命令行界面)
改为linux用的ash(bash shell的简化版)
这样避免ha环境起不来,7681端口用不了的情况,利于救援
回复

使用道具 举报

1

主题

90

帖子

306

积分

中级会员

Rank: 3Rank: 3

积分
306
金钱
216
HASS币
0
发表于 2024-6-14 10:49:57 | 显示全部楼层
lazycn 发表于 2024-6-13 23:35
能不能不使用国内的源,慢点也行,搭上梯子,只要能好就行。

12.3.1 的部分机型支持你说的功能(目前主要是green/x96/x88)
其他固件没开通这个功能
其实你的问题是你新装系统造成的
新装系统必须2条配置命令+1条删除命令
wgturbo docker.io fastgh (这条其实主要保障hass加速器能用)
wgturbo ghcr.io fastgh (这条其实主要保障haos的核心容器镜像正常)
wgturbo apply -D
之前群里主要解决的多是已经安装系统,但是装不了addons的情况
回复

使用道具 举报

5

主题

36

帖子

182

积分

注册会员

Rank: 2

积分
182
金钱
146
HASS币
0
 楼主| 发表于 2024-6-14 11:01:42 | 显示全部楼层
达文西 发表于 2024-6-14 10:16
wgturbo docker.io fastgh
wgturbo ghcr.io fastgh
wgturbo apply -D

感谢文西,太给力了!
[url=https://www.ha-box.xyz]HA BOX[/url]
回复

使用道具 举报

5

主题

36

帖子

182

积分

注册会员

Rank: 2

积分
182
金钱
146
HASS币
0
 楼主| 发表于 2024-6-14 11:19:55 | 显示全部楼层
已经好了,并且升级到12.3.1了。没用科学
[url=https://www.ha-box.xyz]HA BOX[/url]
回复

使用道具 举报

1

主题

40

帖子

383

积分

中级会员

Rank: 3Rank: 3

积分
383
金钱
343
HASS币
0
发表于 2024-6-14 22:06:35 | 显示全部楼层
lazycn 发表于 2024-6-14 11:19
已经好了,并且升级到12.3.1了。没用科学

请问我这个要怎么操作?楼主求解,我先输入login,然后再输入其它指令是没有用,然后HA:7681进不去77

微信图片_20240614220416.jpg
微信图片_20240614220426.png
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-9-19 09:27 , Processed in 0.057752 second(s), 35 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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