error: unable to unlink old ‘.gitlab-ci.yml‘: Permission denied

#gitlab-runner 执行代码git pull origin xxx 更新时候报 error: unable to unlink old '.gitlab-ci.yml': Permission denied

问题环境:centos 部署gitlab-runner 执行脚本方式 选的shell
产生问题的原因:gitlab-runner程序进程占用锁定了.gitlab-ci.yml

解决方法:gitlab-runner stop
停止服务后,切换到 执行gitlab-runner进程的用户,执行用户是:gitlab-runner 用户组也是:gitlab-runner

切换到用户:su gitlab-runner

进入到项目目录执行:git pull origin xxx 确认成功后,启动gitlab-runner 服务

启动gitlab-runner服务:gitlab-runner start

重新运行自动化部署任务确认成功

相关推荐
西部森林牧歌3 小时前
Arbess零基础学习 - 使用Arbess+GitLab实现.Net 项目构建/主机部署
ci/cd·gitlab·arbess·tiklab devops
西部森林牧歌3 小时前
Arbess零基础学习 - 使用Arbess+GitLab实现Python项目构建/主机部署
python·ci/cd·gitlab·tiklab devops
灰勒塔德4 小时前
ubuntu 部署 gitlab docker服务
docker·容器·gitlab
西部森林牧歌19 小时前
Arbess零基础学习 - 使用Arbess+GitLab实现PHP项目构建/主机部署
ci/cd·gitlab·php·tiklab devops
chevysky.cn2 天前
Jenkins自动部署CI/CD
运维·ci/cd·jenkins
中智凯灵2 天前
#智能CI/CD流水线与AIOps 论坛@AiDD深圳站
ci/cd
爱宇阳3 天前
GitLab CI/CD 集成 Harbor 全面教程
ci/cd·gitlab·harbor
雪碧聊技术3 天前
gitLab如何新建分支(根据某个分支)
gitlab·new branch·新建分支
测试-鹏哥3 天前
要将ITP集成到Jenkins Pipeline中,实现开发发版时自动触发自动化测试
运维·python·测试工具·ci/cd·jenkins
字节逆旅4 天前
如何解决代码冲突
gitlab