Since our most recent round of updates, we are seeing the following error at the end of every build, which is causing it to fail:

      ERROR: Build step failed with exception
      org.springframework.security.authentication.DisabledException: The user "null" is administratively disabled.
      	at hudson.security.UserAttributesHelper.checkIfUserEnabled(UserAttributesHelper.java:92)
      	at hudson.security.LDAPSecurityRealm$LDAPUserDetailsService.loadUserByUsername(LDAPSecurityRealm.java:1314)
      	at hudson.security.LDAPSecurityRealm$DelegateLDAPUserDetailsService.loadUserByUsername(LDAPSecurityRealm.java:1227)
      	at jenkins.security.ImpersonatingUserDetailsService2.loadUserByUsername(ImpersonatingUserDetailsService2.java:29)
      	at hudson.model.User.getUserDetailsForImpersonation2(User.java:399)
      	at hudson.model.User.impersonate2(User.java:367)
      	at hudson.model.User.impersonate(User.java:377)
      Caused: org.acegisecurity.DisabledException: org.springframework.security.authentication.DisabledException: The user "null" is administratively disabled.; nested exception is org.springframework.security.authentication.DisabledException: The user "null" is administratively disabled.
      	at org.acegisecurity.DisabledException.fromSpring(DisabledException.java:51)
      	at org.acegisecurity.AuthenticationException.fromSpring(AuthenticationException.java:88)
      	at hudson.model.User.impersonate(User.java:379)
      	at hudson.tasks.MailSender.getUserEmailList(MailSender.java:471)
      	at hudson.tasks.MailSender.createEmptyMail(MailSender.java:394)
      	at hudson.tasks.MailSender.createBackToNormalMail(MailSender.java:211)
      	at hudson.tasks.MailSender.createMail(MailSender.java:196)
      	at hudson.tasks.MailSender.run(MailSender.java:111)
      	at hudson.tasks.Mailer.perform(Mailer.java:176)
      	at hudson.tasks.Mailer.perform(Mailer.java:139)
      	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:803)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:752)
      	at hudson.model.Build$BuildExecution.post2(Build.java:177)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:697)
      	at hudson.model.Run.execute(Run.java:1932)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:97)
      	at hudson.model.Executor.run(Executor.java:429)
      Build step 'E-mail Notification' marked build as failure
      Finished: FAILURE
      

      We are using:

      • Jenkins 2.274
      • Mailer Plugin 1.32.1
      • LDAP Plugin 2.2

      Let me know if I can provide any more information or assistance in troubleshooting. Thanks!

          [JENKINS-64629] Build failure due to email notification issue

          We ran into a similar issue with the email-ext plugin - filed JENKINS-64850 about it.

          Istvan Szekeres added a comment - We ran into a similar issue with the email-ext plugin - filed JENKINS-64850 about it.

          Basil Crow added a comment -

          This is probably somehow related to JENKINS-55813.

          Basil Crow added a comment - This is probably somehow related to JENKINS-55813 .

          Matt Sicker added a comment -

          Matt Sicker added a comment - https://github.com/jenkinsci/ldap-plugin/pull/74 alright here we go

          Matt Sicker added a comment -

          This PR should at least fix the error message so that you can see the username causing the problem. This should help isolate the problem to a particular configuration.

          Matt Sicker added a comment - This PR should at least fix the error message so that you can see the username causing the problem. This should help isolate the problem to a particular configuration.

          Matt Sicker added a comment -

          https://github.com/jenkinsci/mailer-plugin/pull/104 for a fix specific to the error encountered in the description.

          Matt Sicker added a comment - https://github.com/jenkinsci/mailer-plugin/pull/104 for a fix specific to the error encountered in the description.

          Basil Crow added a comment - There are three relevant PRs for this bug: jenkinsci/email-ext-plugin#277 jenkinsci/mailer-plugin#104 jenkinsci/ldap-plugin#74 The incremental builds for each plugin are: https://repo.jenkins-ci.org/incrementals/org/jenkins-ci/plugins/email-ext/2.82-rc1453.0cbb7237bf07/email-ext-2.82-rc1453.0cbb7237bf07.hpi https://repo.jenkins-ci.org/incrementals/org/jenkins-ci/plugins/mailer/1.33-rc354.11d656da84a4/mailer-1.33-rc354.11d656da84a4.hpi https://repo.jenkins-ci.org/incrementals/org/jenkins-ci/plugins/ldap/2.4-rc534.e36de41fc087/ldap-2.4-rc534.e36de41fc087.hpi l3ender and pistahh , can you please test the incremental builds and confirm the issue is resolved? For instructions on how to install a custom build, see: https://www.jenkins.io/doc/book/managing/plugins/#advanced-installation

          Ross added a comment -

          Thanks basil. I've updated mailer-plugin to 1.33-rc354.11d656da84a4 and ldap-plugin to 2.4. I'll do some testing today and report any observations here.

          Ross added a comment - Thanks basil . I've updated mailer-plugin to 1.33-rc354.11d656da84a4 and ldap-plugin to 2.4. I'll do some testing today and report any observations here.

          Basil Crow added a comment -

          l3ender and pistahh, did you have any luck with these incremental builds? I was planning on merging and releasing the change to Email Extension sometime this week, but it would be good to get some confirmation that the general approach is working before pushing this out.

          Basil Crow added a comment - l3ender and pistahh , did you have any luck with these incremental builds? I was planning on merging and releasing the change to Email Extension sometime this week, but it would be good to get some confirmation that the general approach is working before pushing this out.

          Ross added a comment -

          Thanks for following up basil. We haven't had any issues with the incremental builds and things are working as expected. Thanks!

          Ross added a comment - Thanks for following up basil . We haven't had any issues with the incremental builds and things are working as expected. Thanks!

          Basil Crow added a comment -

          Thanks, l3ender. I released the Email Extension changes in 2.82.

          Basil Crow added a comment - Thanks, l3ender . I released the Email Extension changes in 2.82 .

            jvz Matt Sicker
            l3ender Ross
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: