简体   繁体   English

Jenkins - 禁用用户异常

[英]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.

相关问题 Jenkins 用户权限问题(ubuntu) - Jenkins user permissions issue (ubuntu) Ruby / Watir:如何单击禁用按钮(Watir::Exception::ObjectDisabledException) - Ruby / Watir : how to click on a disabled button (Watir::Exception::ObjectDisabledException) Jenkins电子邮件通知中未扩展$ BUILD_USER - $BUILD_USER not expanded in Jenkins email notification 使用 GKE 创建 Jenkins X Kubernetes 集群会引发异常:找不到机密“jenkins” - Creating a Jenkins X Kubernetes cluster with GKE throws exception: secrets “jenkins” not found Jenkins Github 拉取请求生成器插件引发用户身份验证错误 - Jenkins Github Pull Request Builder Plugin throwing user authentication error Jenkins GitHub OAuth 插件出现“用户缺少整体/读取权限”错误 - 'User is missing the Overall/Read permission' error with Jenkins GitHub OAuth Plugin 当用户使用jquery输入无效的日期或月份时,下一步按钮将被禁用 - Next button will be disabled when user enter invalid date or month using jquery 通过Jenkins中的run.bat文件运行git测试时,在类路径异常中找不到类 - Class not found in class path exception while running my git test through run.bat file in Jenkins 存储库已禁用 - Repository Disabled 当授权用户对github pull请求发表评论时,如何触发jenkins管道阶段? - how to trigger a jenkins pipeline stage when an authorized user make a comment on github pull request?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM