本文介绍了Jenkins ECS和EFS错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用EFS将Jenkins部署到ECS.(/var/jenkins_home已安装)

I'm trying to use Jenkins deploy to ECS with EFS. (/var/jenkins_home is mounted)

似乎一切正常,但当我部署服务时,在日志中出现以下错误:

It seems all fine except when I deploy a service I get following error in the log:

touch: cannot touch ‘/var/jenkins_home/copy_reference_file.log’: Permission denied
Can not write to /var/jenkins_home/copy_reference_file.log. Wrong volume permissions?
No newer events found at the moment. Retry.

是否可以解决此问题,所以我对/var/jenkins_home 具有足够的权限?

Is there a way to fix this issue so I have enough permissions on /var/jenkins_home?

推荐答案

是的,这有点疯狂,但是一个简单的解决方案是在efs文件位置上运行chown命令.例如,如果"/efs"是您的EFS挂载,则简单运行 sudo chown 1000 efs/

yeah, its kinda crazy, but a simple solution is just to run chown command on your efs file location. E.g if '/efs' is your EFS mount, simple run sudo chown 1000 efs/

应该在之后立即正常工作

should work just fine immediately after

这篇关于Jenkins ECS和EFS错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-23 19:00