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

            l3ender Ross created issue -
            l3ender Ross made changes -
            Field Original Value New Value
            Environment * Jenkins 2.274 on Windows
            * Mailer Plugin 1.32.1
            l3ender Ross made changes -
            Component/s ldap-plugin [ 17122 ]
            l3ender Ross made changes -
            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:

            {code}
            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
            {code}

            We are using:
            * Jenkins 2.274
            * Mailer Plugin 1.32.1

            Let me know if I can provide any more information or assistance in troubleshooting. Thanks!
            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:

            {code}
            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
            {code}

            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!
            basil Basil Crow made changes -
            Link This issue relates to JENKINS-55813 [ JENKINS-55813 ]
            jvz Matt Sicker made changes -
            Assignee Adrien Lecharpentier [ alecharp ] Matt Sicker [ jvz ]
            jvz Matt Sicker made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            jvz Matt Sicker made changes -
            Status In Progress [ 3 ] Open [ 1 ]
            jvz Matt Sicker made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            jvz Matt Sicker made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            basil Basil Crow made changes -
            Component/s email-ext-plugin [ 15538 ]
            basil Basil Crow made changes -
            Remote Link This issue links to "jenkinsci/email-ext-plugin#277 (Web Link)" [ 26514 ]
            basil Basil Crow made changes -
            Remote Link This issue links to "jenkinsci/mailer-plugin#104 (Web Link)" [ 26515 ]
            basil Basil Crow made changes -
            Remote Link This issue links to "jenkinsci/ldap-plugin#74 (Web Link)" [ 26516 ]

              People

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

                Dates

                Created:
                Updated: