Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-64629

Build failure due to email notification issue

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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!

        Attachments

          Issue Links

            Activity

            Show
            basil 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 Ross and Istvan Szekeres , 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
            Hide
            l3ender Ross added a comment -

            Thanks Basil Crow. 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.

            Show
            l3ender Ross added a comment - Thanks Basil Crow . 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.
            Hide
            basil Basil Crow added a comment -

            Ross and Istvan Szekeres, 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.

            Show
            basil Basil Crow added a comment - Ross and Istvan Szekeres , 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.
            Hide
            l3ender Ross added a comment -

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

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

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

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

              People

              Assignee:
              jvz Matt Sicker
              Reporter:
              l3ender Ross
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated: