• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录

卢晓春的博客

  • 博客园
  • 联系
  • 订阅
  • 管理

公告

View Post

Gitlab CICD Cache 路径错误导致失败,表现为重复路径

现象

执行cache操作时,出现重复路径导致报错,类似:

bash: line 165: /root/builds/1iDLpGhkY/0/mvp/backend/builds/1iDLpGhkY/0/mvp/backend.tmp/gitlab_runner_cache_env: No such file or directory

相关issue

参考: https://gitlab.com/gitlab-org/gitlab-runner/-/issues/39078

临时解决方案

参考: https://gitlab.com/gitlab-org/gitlab-runner/-/issues/39078#note_2859441279
即降版本到 18.3.1-1

安装方式参考

环境: Ubuntu 22.04

# 添加apt源
curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh | sudo bash
# 如果需要当前环境的代理则
curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh | sudo -E bash

# 安装18.3.1-1版本
sudo apt install gitlab-runner=18.3.1-1 gitlab-runner-helper-images=18.3.1-1

posted on 2025-11-17 13:34  卢晓春  阅读(0)  评论(0)    收藏  举报

刷新页面返回顶部
 
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3