AstrBot icon indicating copy to clipboard operation
AstrBot copied to clipboard

[Bug]更新文件部分地区被墙无法访问[使用了阿里云网站运维检测平台]

Open zcj-ui opened this issue 6 months ago • 2 comments

What happened / 发生了什么

无法更新,请看日志,我在浏览器可以下载,我是在更新到v4.25.1后无法更新了,显示webui有新版本,便会有此问题,并且无法切换老版本,请看测速链接https://boce.aliyun.com/detect/http/4e13d4a948a44d909485223794c9c662

Reproduce / 如何复现?

更新即可复现,在之前还可以更新,更新后突然无法更新

AstrBot version, deployment method (e.g., Windows Docker Desktop deployment), provider used, and messaging platform used. / AstrBot 版本、部署方式(如 Windows Docker Desktop 部署)、使用的提供商、使用的消息平台适配器

v4.25.1,网络环境中国湖北襄阳移动,使用UV部署,使用自建newapi,使用了onebot,

OS

Linux

Logs / 报错日志

ARN][v4.25.1] [utils.io:238]: SSL certificate verification failed for https://astrbot-registry.soulter.top/download/astrbot-dashboard/v4.25.1/dist.zip. Falling back to unverified connection (CERT_NONE).

[2026-05-21 21:26:15.186] [Core][WARN][v4.25.1] [utils.io:242]: SSL certificate verification failed for https://astrbot-registry.soulter.top/download/astrbot-dashboard/v4.25.1/dist.zip. Falling back to unverified connection (CERT_NONE). This is insecure and exposes the application to man-in-the-middle attacks. Please investigate certificate issues with the remote server.

[2026-05-21 21:26:15.219] [Core][ERRO][v4.25.1] [routes.update:328]: 下载管理面板文件失败: File is not a zip file。

Are you willing to submit a PR? / 你愿意提交 PR 吗?

  • [ ] Yes!

Code of Conduct

zcj-ui avatar May 21 '26 13:05 zcj-ui

Hi @zcj-ui! I'm Dosu and I’m helping the AstrBot team.

根据日志,你的问题流程是:

  1. 首先尝试从主 CDN astrbot-registry.soulter.top 下载 dist.zip → SSL 验证失败(可能是该域名在你所在地区被干扰或证书有问题)
  2. 代码回退到 CERT_NONE 不验证模式重试,但下载到的内容不是有效的 zip 文件(可能被中间节点劫持返回了错误页面)
  3. 最终报错 File is not a zip file

这与之前多个类似问题的现象一致 [1] [2]。

临时解决方案:

手动下载 dashboard 文件并放置到正确位置:

  1. 从 GitHub Release 下载:https://github.com/AstrBotDevs/AstrBot/releases/download/v4.25.1/AstrBot-v4.25.1-dashboard.zip(如果 GitHub 也无法访问,可使用代理下载)
  2. 解压其中的 dist 文件夹到你的 data/ 目录下
  3. 重启 AstrBot

关于代理配置:

代码中存在 proxy 参数用于下载,但它只作用于 GitHub 备用 URL,不作用于主 CDN [3]。如果你的网络环境下主 CDN 被墙,当前版本没有配置自定义镜像的选项,只能手动放置文件。

建议开发团队考虑为主 CDN 也支持代理配置,或提供国内可访问的镜像地址。

To reply, just mention @dosu.


Docs are dead. Just use Dosu.

Leave Feedback Ask Dosu about AstrBot Share Dosu with your team

dosubot[bot] avatar May 21 '26 13:05 dosubot[bot]

Okay, thank you very much.

zcj-ui avatar May 21 '26 13:05 zcj-ui