[英]Jenkins - Disabled User exception
We have a git repo from which on every PR, a Jenkins job is triggered which does some validations on the code changes.我们有一个 git 回购,在每个 PR 中,都会触发一个 Jenkins 作业,它对代码更改进行一些验证。 The job has been in place for a long time and was working fine until yesterday after which it starts failing with an exception thrown for a user who left our organization 4 months ago.
这项工作已经存在了很长时间并且在昨天之前一直运行良好,之后它开始失败并为 4 个月前离开我们组织的用户抛出异常。 In these last 4 months, we have had several jobs which worked fine.
在过去的 4 个月里,我们有几份工作进展顺利。 Today I restored my Jenkins from a backup which was taken on 3rd Aug and then it started working again and now after sometime, same issue re-occured.
今天,我从 8 月 3 日的备份恢复了我的 Jenkins,然后它又开始工作了,现在过了一段时间,同样的问题再次出现。 Attached is the screenshot of issue we are facing.
附件是我们面临的问题的截图。
Any inputs on what could have been the issue?关于可能是什么问题的任何意见?
It seems to me that you are using LDAP security , which means that this user had rights, but at some point they were revoked (by your admins, for LDAP security I think that you cannot enable/disable users in Jenkins).在我看来,您正在使用LDAP security ,这意味着该用户拥有权限,但在某些时候他们被撤销了(您的管理员出于 LDAP 安全性的考虑,我认为您无法在 Jenkins 中启用/禁用用户)。 This is why your job started failing.
这就是你的工作开始失败的原因。 When you restore Jenkins backup maybe there is a cache and this is the reason why it works for some time (just guessing).
当您恢复 Jenkins 备份时,可能有一个缓存,这就是它工作一段时间的原因(只是猜测)。
You can execute the job with user that has enabled LDAP account.您可以使用已启用 LDAP 帐户的用户执行作业。
There is an interesting bug , that is in status merged so you can try to upgrade/downgrade your Jenkins master and plugins if this is an option for you.有一个有趣的错误,它处于合并状态,因此您可以尝试升级/降级您的 Jenkins 主机和插件,如果这是您的选择。 Also you can have a look at this bug .
你也可以看看这个错误。
You can also try to recreate the job/webhook with another user and to restart master and slaves.您还可以尝试与另一个用户重新创建作业/webhook 并重新启动主从。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.