Skip to content

[Bug] SiteConfigUpdater 查询远程版本失败 - nexus-media-sites 仓库不存在 (404) #163

Description

@heyayun08

问题描述

Nexus Media v4.4.5 前端提示 查询远程版本失败

根因

site_config_updater.py 中硬编码查询的仓库地址:

https://api.github.com/repos/linyuan0213/nexus-media-sites/releases/latest

但该仓库 linyuan0213/nexus-media-sites 在 GitHub 上不存在,返回 404 Not Found

正确存在的仓库是 linyuan0213/nexus-media(有 releases)。

错误日志

[SiteConfigUpdater]查询远程版本失败: Client error '404 Not Found' for url 'https://api.github.com/repos/linyuan0213/nexus-media-sites/releases/latest'

该警告会反复出现在后端日志中,前端也会弹窗提示。

环境

  • 版本:v4.4.5
  • 部署方式:Docker (Redis + MySQL)
  • 系统:Debian 12

复现步骤

  1. 启动 Nexus Media
  2. 等待 SiteConfigUpdater 定时任务自动运行
  3. 查看日志出现上述 404 错误
  4. 前端提示“查询远程版本失败”

建议修复

site_config_updater.py 中硬编码的仓库名从 linyuan0213/nexus-media-sites 改为 linyuan0213/nexus-media,或使用环境变量配置可覆盖的仓库地址。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions