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

 找回密码
 立即注册
查看: 1344|回复: 6

[求助] HASS CORE 更新问题

[复制链接]

14

主题

77

帖子

409

积分

中级会员

Rank: 3Rank: 3

积分
409
金钱
332
HASS币
0
发表于 2023-10-8 11:34:00 | 显示全部楼层 |阅读模式
本帖最后由 pisice 于 2023-10-8 11:43 编辑

我的环境:esxi 7安装软路由、旁路科学上网、hassOS,hassOS可以直接科学上网。用hass的终端插件,可以从命令行均访问baidu和google。问题:Core无法更新。node-red无法
更新。ESPhome无法更新。(我感觉原因都是一个)其他功能一切正常

现象:
1、hass配置界面顶部提示有三个更新,执行Core更新后等待一段时间没有任何结果(跟没更新一样)。执行node- red和esphome更新时报错,看日志都是反映core错误。2
、从esxi登陆hass后台,用命令更新core(core update)没有错误提示。

以下是截图,请各位高手看看是什么原因。已经弄了一直都是这个。。。状态。。

提示更新:
1.png
点击安装:
2.png

后台命令行更新: 3.png


日志详细信息( [color=var(--error-color)]ERROR )

Logger: homeassistant.components.websocket_api.http.connection
Source: Components/hassio/update.py:169
Integration: Home Assistant WebSocket API (文档、问题)
首次发生:08:59:10(出现 4 次)
最后记录:11:31:00

[140169273604672] 更新 ESPHome 时出错:无法安装 ghcr.io/esphome/esphome-hassio:2023.9.3:http+docker://localhost/v1.42/images/create?tag=2023.9.3&fromImage 出现 500 服务器错误=ghcr.io%2Fesphome%2Fesphome-hassio&platform=linux%2Famd64:内部服务器错误(“获取“https://ghcr.io/v2/”:EOF”)[140169273604672]
更新 Node-RED 时出错:无法安装ghcr.io/hassio-addons/node-red/amd64:14.6.1: http+docker://localhost/v1.42/images/create?tag=14.6.1&fromImage=ghcr.io%2Fhassio- 的 500 服务器错误addons%2Fnode-red%2Famd64&platform=linux%2Famd64:内部服务器错误(“获取“https://ghcr.io/v2/”:EOF”)
[140168923931584] 更新 Node-RED 时出错:无法安装 ghcr.io/hassio-addons/node-red/amd64:14.6.1:http+docker://localhost/v1.42/images/create 出现 500 服务器错误?tag=14.6.1&fromImage=ghcr.io%2Fhassio-addons%2Fnode-red%2Famd64&platform=linux%2Famd64:内部服务器错误(“Head”https://ghcr.io/v2/hassio-addons/node-red/ amd64/manifests/14.6.1": 获取 "https://ghcr.io/token?scope=repository%3Ahassio-addons%2Fnode-red%2Famd64%3Apull&service=ghcr.io": EOF")
[140168924967872] 更新 ESPHome 时出错:无法安装 ghcr.io/esphome/esphome-hassio:2023.9.3:http+docker://localhost/v1.42/images/create?tag=2023.9.3&fromImage 出现 500 服务器错误=ghcr.io%2Fesphome%2Fesphome-hassio&platform=linux%2Famd64:内部服务器错误(“获取”https://ghcr.io/v2/esphome/espho ... cb04dd2dd8edcdc84bb 1a9a3be": EOF") 回溯
(最近一次调用最后):
  文件“/usr/src/homeassistant/homeassistant/components/hassio/update.py”,第 167 行,在 async_install 中
    等待 async_update_addon(self.hass, slug=self._addon_slug, backup=backup)
  文件“ /usr/src/homeassistant/homeassistant/components/hassio/handler.py”,第 52 行,在 _wrapper 中
    引发 HassioAPIError(data["message"])
homeassistant.components.hassio.handler.HassioAPIError:无法安装 ghcr.io/esphome/esphome-hassio:2023.9.3:http+docker://localhost/v1.42/images/create?tag= 的 500 服务器错误2023.9.3&fromImage=ghcr.io%2Fesphome%2Fesphome-hassio&platform=linux%2Famd64: Internal Server Error ("Get "https://ghcr.io/v2/": EOF") 上述异常是导致以下情况的直接

原因异常:

回溯(最近一次调用):
  文件“/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py”,第226行,在handle_call_service中
    等待hass.services.async_call(
  文件“/usr/src/homeassistant” /homeassistant/core.py”,第 1974 行,在 async_call
    response_data = wait coro
                    ^^^^^^^^^^
  文件“/usr/src/homeassistant/homeassistant/core.py”,第 2011 行,在 _execute_service
    返回等待目标(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^
  文件“/usr/src/homeassistant/homeassistant/helpers/entity_component.py”,第235行,在handle_service中
    返回await service.entity_service_call(
           ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^
  文件“/usr/src/homeassistant/homeassistant/helpers/service.py”,第 870 行,entity_service_call
    response_data = wait _handle_entity_call(
                    ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^
  文件“/usr/src/homeassistant/homeassistant/helpers/service.py”,第 942 行,在 _handle_entity_call
    结果 = 等待任务
             ^^^ ^^^^^^^
  文件“/usr/src/homeassistant/homeassistant/components/update/__init__.py”,第 157 行,在 async_install 中
    等待实体.async_install_with_progress(version, backup)
  文件“/usr/src/homeassistant/homeassistant/components/update/__init__ .py”,第 421 行,在 async_install_with_progress 中
    等待 self.async_install(version, backup)
  文件“/usr/src/homeassistant/homeassistant/components/hassio/update.py”,第 169 行,在 async_install 中
    引发 HomeAssistantError(f"更新时出错{self.title}: {err}") 来自 err
homeassistant.exceptions.HomeAssistantError:更新 ESPHome 时出错:无法安装 ghcr.io/esphome/esphome-hassio:2023.9.3:http+docker://localhost/v1.42/images/create?tag= 的 500 服务器错误2023.9.3&fromImage=ghcr.io%2Fesphome%2Fesphome-hassio&platform=linux%2Famd64: Internal Server Error ("Get "https://ghcr.io/v2/": EOF")

日志详细信息( [color=var(--error-color)]ERROR )
Logger: homeassistant.components.websocket_api.http.connection
Source: components/hassio/update.py:305
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 10:46:29 (3 occurrences)
Last logged: 11:41:41

[140168926294976] Error updating Home Assistant Core 'HomeAssistantCore.update' blocked from execution, no host internet connection
[140168924967872] Error updating Home Assistant Core 'HomeAssistantCore.update' blocked from execution, no host internet connection
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/hassio/update.py", line 303, in async_install
    await async_update_core(self.hass, version=version, backup=backup)
  File "/usr/src/homeassistant/homeassistant/components/hassio/handler.py", line 52, in _wrapper
    raise HassioAPIError(data["message"])
homeassistant.components.hassio.handler.HassioAPIError: 'HomeAssistantCore.update' blocked from execution, no host internet connection

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 226, in handle_call_service
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1974, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2011, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 235, in handle_service
    return await service.entity_service_call(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 870, in entity_service_call
    response_data = await _handle_entity_call(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 942, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/update/__init__.py", line 157, in async_install
    await entity.async_install_with_progress(version, backup)
  File "/usr/src/homeassistant/homeassistant/components/update/__init__.py", line 421, in async_install_with_progress
    await self.async_install(version, backup)
  File "/usr/src/homeassistant/homeassistant/components/hassio/update.py", line 305, in async_install
    raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Error updating Home Assistant Core 'HomeAssistantCore.update' blocked from execution, no host internet connection


这日志着实看不懂。。。。
补充一下,之前曾经更新成功过。包括supervisor等。







回复

使用道具 举报

42

主题

421

帖子

1508

积分

金牌会员

Rank: 6Rank: 6

积分
1508
金钱
1087
HASS币
0
发表于 2023-10-8 15:21:47 | 显示全部楼层
我也无法访问ghcr.io,T也不好用了,头痛呀
回复

使用道具 举报

14

主题

77

帖子

409

积分

中级会员

Rank: 3Rank: 3

积分
409
金钱
332
HASS币
0
 楼主| 发表于 2023-10-8 15:30:22 | 显示全部楼层
我这是虚拟机独立安装hassOS,我看很多人说用docker安装会好很多,我准备研究一下转到docker去了,这个太累了每次更新
回复

使用道具 举报

0

主题

6

帖子

397

积分

中级会员

Rank: 3Rank: 3

积分
397
金钱
391
HASS币
0
发表于 2023-11-8 18:57:46 | 显示全部楼层
请问你后来解决了么?我也一样问题
回复

使用道具 举报

1

主题

18

帖子

252

积分

中级会员

Rank: 3Rank: 3

积分
252
金钱
234
HASS币
0
发表于 2023-11-15 13:26:33 | 显示全部楼层
pisice 发表于 2023-10-8 15:30
我这是虚拟机独立安装hassOS,我看很多人说用docker安装会好很多,我准备研究一下转到docker去了,这个太累 ...

解决了么???
回复

使用道具 举报

14

主题

77

帖子

409

积分

中级会员

Rank: 3Rank: 3

积分
409
金钱
332
HASS币
0
 楼主| 发表于 2024-1-24 09:19:45 | 显示全部楼层

解决了,无意中把更新前创建备选勾选去掉了,居然就过了。。。。。。。。无法理解,反正是过了
回复

使用道具 举报

0

主题

2

帖子

117

积分

注册会员

Rank: 2

积分
117
金钱
115
HASS币
0
发表于 2024-3-5 22:54:04 | 显示全部楼层
不是备份不备份的问题,我试了以下直接docker pull 应该不是连不上,只是速度非常慢,大概你更新几个小时就能更新好。但是系统的更新一段时间以后会中断,所以,你不断重新更新,总有一次会下好的。
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-5-15 22:23 , Processed in 0.103626 second(s), 31 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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