美文网首页
gitlab runner remove cache error

gitlab runner remove cache error

作者: kakaka0234 | 来源:发表于2018-01-31 10:20 被阅读0次

背景

  • git pipeline logs

    Running on runner-63681b39-project-1518-concurrent-0 via xxxx...
    Fetching changes...
    warning: failed to remove node_modules/
    ERROR: Job failed: exit code 1
    

原因:runner 不能删除cache文件

处理方式。 手动删除cache文件

The cache is stored in /home/gitlab-runner/cache or as docker container docker ps | grep -cache-.
cache文件会保存在runner 机器的 /home/gitlab-runner/cache 目录下,或者在docker container里。

  • runner直接跑在服务器上, 待验证

      [root@kakaka ~]# cd /home/gitlab-runner/cache
    
  • runner跑在docker里,删除此runner的cache container

    [root@kakaka ~]# ssh root@runner.server.com
    [root@runner ~]# docker ps -a | grep runner-63681b39-project-1518-concurrent-0
    CONTAINER ID        IMAGE                           COMMAND                  CREATED             STATUS                      PORTS                    NAMES
    45eb8f1a63e2        db21364d9fb1                    "gitlab-runner-cac..."   6 days ago          Exited (0) 6 days ago                                runner-63681b39-project-1518-concurrent-0-cache-71ada5e95a891c53b2e12c93b2041712
    [root@runner ~]# docker rm 45eb8f1a63e2
    

附录

相关文章

网友评论

      本文标题:gitlab runner remove cache error

      本文链接:https://www.haomeiwen.com/subject/vkcrnxtx.html