jenkins构建时错误:Job for jenkins.service failed becasused a timeout was exceeded
- CI/CD
- 时间:2023-03-29 23:30
- 4506人已阅读
简介
systemctlstartjenkins命令启动Jenkins后,提示错误jenkins构建时错误:Jobforjenkins.servicefailedbecasusedatimeoutwasexceeded错误信息如下:现在用第二条命令journalctl-xe2.错误原因发生此问题的原因是用户无权在目录/var/libs/jenkins上执行作业如果不知道jenkins具体在哪里。使用如下
🔔🔔好消息!好消息!🔔🔔
有需要的朋友👉:微信号
systemctl start jenkins命令启动Jenkins后,提示错误
jenkins构建时错误:Job for jenkins.service failed becasused a timeout was exceeded
错误信息如下:
现在用第二条命令journalctl -xe
2.错误原因
发生此问题的原因是用户无权在目录/var/libs/jenkins
上执行作业
如果不知道jenkins具体在哪里。使用如下命令:
find / -iname jenkins
3.解决方案
获取给对应的目录权限:
chown -R root /var/log/jenkins chgrp -R root /var/log/jenkins chown -R root /var/lib/jenkins chgrp -R root /var/lib/jenkins chown -R root /var/cache/jenkins chgrp -R root /var/cache/jenkins