FunASR icon indicating copy to clipboard operation
FunASR copied to clipboard

FunASR Docker 镜像在 x86_64 架构上无法下载 - 特定层损坏

Open HirahKong opened this issue 1 month ago • 0 comments
trafficstars

🐛 Bug

FunASR Docker 镜像在 x86_64 架构上无法下载 - 特定层损坏

To Reproduce

Steps to reproduce the behavior (always include the command you ran):

  1. Run cmd 'docker pull registry.cn-hangzhou.aliyuncs.com/funasr_repo/funasr:funasr-runtime-sdk-cpu-0.4.7'
  2. Run cmd 'docker pull registry.cn-hangzhou.aliyuncs.com/funasr_repo/funasr:funasr-runtime-sdk-cpu-0.4.6'
  3. Run cmd 'docker pull registry.cn-hangzhou.aliyuncs.com/funasr_repo/funasr:funasr-runtime-sdk-cpu-0.4.5'
  4. See error: Download hangs indefinitely at layer 70f06463baa0

Code sample

# 测试命令 - 所有这些命令都会在相同层卡住
docker pull registry.cn-hangzhou.aliyuncs.com/funasr_repo/funasr:funasr-runtime-sdk-cpu-0.4.7
docker pull registry.cn-hangzhou.aliyuncs.com/funasr_repo/funasr:funasr-runtime-sdk-cpu-0.4.6
docker pull registry.cn-hangzhou.aliyuncs.com/funasr_repo/funasr:funasr-runtime-sdk-cpu-0.4.5

# 测试不同架构 - ARM64 版本正常工作
docker pull --platform linux/arm64 registry.cn-hangzhou.aliyuncs.com/funasr_repo/funasr:funasr-runtime-sdk-cpu-0.4.7

Error messages

# x86_64 下载状态(无限等待)
70f06463baa0: Waiting  # 卡在这一层无限等待
23ef3ff2feef: Verifying Checksum  # 正常下载
e06c6892a8cc: Download complete  # 下载完成

# ARM64 下载状态(正常)
bf91b78d57f0: Waiting
df5cf9b5ed: Download complete  # 正常下载完成

Expected behavior

Docker 镜像应该能够正常下载完成,所有层都应该能够成功拉取。期望看到类似 ARM64 版本的正常下载流程。

Environment

  • OS (e.g., Linux): CentOS Linux release 7.9.2009 (Core), macOS Monterey
  • FunASR Version (e.g., 1.0.0): funasr-runtime-sdk-cpu-0.4.5, 0.4.6, 0.4.7
  • ModelScope Version (e.g., 1.11.0): N/A (Docker 镜像问题)
  • PyTorch Version (e.g., 2.0.0): N/A (Docker 镜像问题)
  • How you installed funasr (pip, source): Docker official registry
  • Python version: N/A (Docker 镜像问题)
  • GPU (e.g., V100M32): N/A (CPU 版本)
  • CUDA/cuDNN version (e.g., cuda11.7): N/A (CPU 版本)
  • Docker version (e.g., funasr-runtime-sdk-cpu-0.4.1): Docker version 20.10.7, build f0df350
  • Any other relevant information:
    • Architecture: x86_64 (问题架构), ARM64 (正常工作)
    • Registry: registry.cn-hangzhou.aliyuncs.com (阿里云)
    • Problematic layer: 70f06463baa0

Additional context

详细调查结果:

  1. 跨平台问题确认:

    • Linux x86_64: ❌ 受影响
    • macOS x86_64: ❌ 受影响
    • ARM64 (所有平台): ✅ 正常工作
  2. 问题特定层:

    • 层 ID: 70f06463baa0
    • 状态: 在 x86_64 架构上无限等待
    • ARM64 版本: 不包含此问题层
  3. 网络测试:

    • 网络连接正常 (100% 通过率)
    • 其他层下载正常
    • 多个阿里云镜像节点都存在相同问题
  4. 版本影响范围:

    • FunASR 0.4.5: ❌ 受影响
    • FunASR 0.4.6: ❌ 受影响
    • FunASR 0.4.7: ❌ 受影响
  5. 临时解决方案:

    # 使用 ARM64 版本
    docker pull --platform linux/arm64 registry.cn-hangzhou.aliyuncs.com/funasr_repo/funasr:funasr-runtime-sdk-cpu-0.4.7
    
    # 或使用替代镜像
    docker build -f Dockerfile.alternative -t funasr-alternative .
    

建议:

  1. 请官方检查 Docker Registry 中层 70f06463baa0 的完整性
  2. 重新构建和发布修复版本的 x86_64 镜像

HirahKong avatar Oct 07 '25 13:10 HirahKong