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

Jenkins wont send email triggered by a job while sending test email

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • None
    • OS: CentOS 2.6.32-358.el6.x86_64 #1 SMP Fri Feb 22 00:31:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
      Java: 1.7.0_80-b15 64bit
      Jenkins: directly installed via yum
      Chromium browser.


      A week ago I've started getting some weird behavior of notification delivery plugins. I'm able to send a test message from jenkins to my gmail account. However, when any job is executed, no notification is ever delivered. Logs seem uninformative as well as build output. I've attached relevant screen shots.

      Note:
      I've upgraded to the latest LTS version and have updated all of the plugins.

      Build output excerpt:
      _Email was triggered for: Always
      Sending email for trigger: Always
      Sending email to: myaccount@gmail.com
      Finished: SUCCESS_

      Log excerpt:
      Apr 05, 2016 11:43:34 AM WARNING hudson.ExtensionFinder$Sezpoz scout
      Failed to scout com.cloudbees.hudson.plugins.folder.properties.AuthorizationMatrixProperty$DescriptorImpl
      java.lang.InstantiationException: java.lang.NoClassDefFoundError: com/cloudbees/hudson/plugins/folder/AbstractFolderPropertyDescriptor
      at net.java.sezpoz.IndexItem.element(IndexItem.java:146)
      at hudson.ExtensionFinder$Sezpoz.scout(ExtensionFinder.java:666)
      at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:382)
      at hudson.ExtensionList.load(ExtensionList.java:349)
      at hudson.ExtensionList.ensureLoaded(ExtensionList.java:287)
      at hudson.ExtensionList.iterator(ExtensionList.java:156)
      at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:381)
      at hudson.ExtensionList.load(ExtensionList.java:349)
      at hudson.ExtensionList.ensureLoaded(ExtensionList.java:287)
      at hudson.ExtensionList.iterator(ExtensionList.java:156)
      at jenkins.model.Jenkins.getDescriptorByType(Jenkins.java:1231)
      at hudson.plugins.copyartifact.BuildSelectorParameter.initAliases(BuildSelectorParameter.java:152)
      at hudson.plugins.copyartifact.CopyArtifactPlugin.postInitialize(CopyArtifactPlugin.java:35)
      at hudson.PluginManager$2$1$2.run(PluginManager.java:403)
      at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
      at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
      at jenkins.model.Jenkins$8.runTask(Jenkins.java:924)
      at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)
      at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.NoClassDefFoundError: com/cloudbees/hudson/plugins/folder/AbstractFolderPropertyDescriptor
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
      at jenkins.util.AntClassLoader.defineClassFromData(AntClassLoader.java:1139)
      at hudson.ClassicPluginStrategy$AntClassLoader2.defineClassFromData(ClassicPluginStrategy.java:801)
      at jenkins.util.AntClassLoader.getClassFromStream(AntClassLoader.java:1310)
      at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1366)
      at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1326)
      at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at jenkins.ClassLoaderReflectionToolkit.invoke(ClassLoaderReflectionToolkit.java:44)
      at jenkins.ClassLoaderReflectionToolkit._findClass(ClassLoaderReflectionToolkit.java:86)
      at hudson.PluginManager$UberClassLoader.findClass(PluginManager.java:1188)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
      at net.java.sezpoz.IndexItem.element(IndexItem.java:134)
      ... 21 more
      Caused by: java.lang.ClassNotFoundException: com.cloudbees.hudson.plugins.folder.AbstractFolderPropertyDescriptor
      at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1376)
      at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1326)
      at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1079)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
      ... 37 more

      Apr 05, 2016 11:43:36 AM WARNING hudson.ExtensionFinder$Sezpoz _find
      Failed to load com.cloudbees.hudson.plugins.folder.properties.AuthorizationMatrixProperty$DescriptorImpl
      java.lang.InstantiationException: java.lang.NoClassDefFoundError: com/cloudbees/hudson/plugins/folder/AbstractFolderPropertyDescriptor
      at net.java.sezpoz.IndexItem.element(IndexItem.java:146)
      at hudson.ExtensionFinder$Sezpoz._find(ExtensionFinder.java:628)
      at hudson.ExtensionFinder$Sezpoz.find(ExtensionFinder.java:617)
      at hudson.ExtensionFinder$GuiceFinder.<init>(ExtensionFinder.java:256)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
      at java.lang.Class.newInstance(Class.java:383)
      at net.java.sezpoz.IndexItem.instance(IndexItem.java:181)
      at hudson.ExtensionFinder$Sezpoz._find(ExtensionFinder.java:642)
      at hudson.ExtensionFinder$Sezpoz.find(ExtensionFinder.java:617)
      at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:388)
      at hudson.ExtensionList.load(ExtensionList.java:349)
      at hudson.ExtensionList.ensureLoaded(ExtensionList.java:287)
      at hudson.ExtensionList.iterator(ExtensionList.java:156)
      at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:381)
      at hudson.ExtensionList.load(ExtensionList.java:349)
      at hudson.ExtensionList.ensureLoaded(ExtensionList.java:287)
      at hudson.ExtensionList.iterator(ExtensionList.java:156)
      at jenkins.model.Jenkins.getDescriptorByType(Jenkins.java:1231)
      at hudson.plugins.copyartifact.BuildSelectorParameter.initAliases(BuildSelectorParameter.java:152)
      at hudson.plugins.copyartifact.CopyArtifactPlugin.postInitialize(CopyArtifactPlugin.java:35)
      at hudson.PluginManager$2$1$2.run(PluginManager.java:403)
      at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
      at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
      at jenkins.model.Jenkins$8.runTask(Jenkins.java:924)
      at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)
      at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.NoClassDefFoundError: com/cloudbees/hudson/plugins/folder/AbstractFolderPropertyDescriptor
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
      at jenkins.util.AntClassLoader.defineClassFromData(AntClassLoader.java:1139)
      at hudson.ClassicPluginStrategy$AntClassLoader2.defineClassFromData(ClassicPluginStrategy.java:801)
      at jenkins.util.AntClassLoader.getClassFromStream(AntClassLoader.java:1310)
      at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1366)
      at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1326)
      at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at jenkins.ClassLoaderReflectionToolkit.invoke(ClassLoaderReflectionToolkit.java:44)
      at jenkins.ClassLoaderReflectionToolkit._findClass(ClassLoaderReflectionToolkit.java:86)
      at hudson.PluginManager$UberClassLoader.findClass(PluginManager.java:1188)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
      at net.java.sezpoz.IndexItem.element(IndexItem.java:134)
      ... 31 more
      Caused by: java.lang.ClassNotFoundException: com.cloudbees.hudson.plugins.folder.AbstractFolderPropertyDescriptor
      at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1376)
      at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1326)
      at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1079)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
      ... 47 more
      ...
      Apr 05, 2016 1:35:33 PM WARNING javax.jmdns.impl.DNSIncoming readAnswer
      There was an OPT answer. Not currently handled. Option code: 65002 data: 1DC0C283F3512719
      Apr 05, 2016 1:35:42 PM WARNING javax.jmdns.impl.DNSIncoming readAnswer
      There was an OPT answer. Not currently handled. Option code: 65002 data: 1DC0C283F3512719

        1. ext-debug.png
          ext-debug.png
          16 kB
        2. ext-out.png
          ext-out.png
          11 kB
        3. plugin-versions.png
          plugin-versions.png
          123 kB
        4. updates.png
          updates.png
          36 kB

          [JENKINS-34022] Jenkins wont send email triggered by a job while sending test email

          Alex Earl added a comment -

          Can you enable debug mode for email-ext in the global configuration and post the console output for the job? There should be more information.

          Alex Earl added a comment - Can you enable debug mode for email-ext in the global configuration and post the console output for the job? There should be more information.

          Denys Sobchyshak added a comment - - edited

          Doesn't seem like it's responding at all. I've added two log recorders:

          • hudson.plugins.emailext logger and with log level ALL
          • hudson.plugins.emailext.ExtendedEmailPublisher, hudson.plugins.emailext.EmailRecipientUtils, hudson.plugins.emailext.plugins.content.ScriptContent, hudson.plugins.emailext.plugins.content.TemplateContent all with log level set to ALL

          and none of them shows any content even though I ran the job and it triggered email sending. I can confirm that log records work, since I can add one with hudson logger set to log level ALL and will show me bunch of fresh stuff. Also, I've restarted jenkins couple of times in the process - it's a yum installation, - but no success.

          When taking a look at the log manually I can see only next implicitly related content:

          Apr 11, 2016 10:55:53 AM hudson.ExtensionFinder$Sezpoz _find
          WARNING: Failed to load com.cloudbees.hudson.plugins.folder.properties.AuthorizationMatrixProperty$DescriptorImpl
          java.lang.InstantiationException: java.lang.NoClassDefFoundError: com/cloudbees/hudson/plugins/folder/AbstractFolderPropertyDescriptor
          at net.java.sezpoz.IndexItem.element(IndexItem.java:146)
          at hudson.ExtensionFinder$Sezpoz._find(ExtensionFinder.java:628)
          at hudson.ExtensionFinder$Sezpoz.find(ExtensionFinder.java:617)
          at hudson.ExtensionFinder$GuiceFinder.<init>(ExtensionFinder.java:274)

          Any ideas on the matter?

          Denys Sobchyshak added a comment - - edited Doesn't seem like it's responding at all. I've added two log recorders: hudson.plugins.emailext logger and with log level ALL hudson.plugins.emailext.ExtendedEmailPublisher, hudson.plugins.emailext.EmailRecipientUtils, hudson.plugins.emailext.plugins.content.ScriptContent, hudson.plugins.emailext.plugins.content.TemplateContent all with log level set to ALL and none of them shows any content even though I ran the job and it triggered email sending. I can confirm that log records work, since I can add one with hudson logger set to log level ALL and will show me bunch of fresh stuff. Also, I've restarted jenkins couple of times in the process - it's a yum installation, - but no success. When taking a look at the log manually I can see only next implicitly related content: Apr 11, 2016 10:55:53 AM hudson.ExtensionFinder$Sezpoz _find WARNING: Failed to load com.cloudbees.hudson.plugins.folder.properties.AuthorizationMatrixProperty$DescriptorImpl java.lang.InstantiationException: java.lang.NoClassDefFoundError: com/cloudbees/hudson/plugins/folder/AbstractFolderPropertyDescriptor at net.java.sezpoz.IndexItem.element(IndexItem.java:146) at hudson.ExtensionFinder$Sezpoz._find(ExtensionFinder.java:628) at hudson.ExtensionFinder$Sezpoz.find(ExtensionFinder.java:617) at hudson.ExtensionFinder$GuiceFinder.<init>(ExtensionFinder.java:274) Any ideas on the matter?

          Alex Earl added a comment -

          Please go into the global configuration for Jenkins and enable debug mode for Extended Email Publisher, then run a build.

          Alex Earl added a comment - Please go into the global configuration for Jenkins and enable debug mode for Extended Email Publisher, then run a build.

          Denys Sobchyshak added a comment - - edited

          That's exactly what I did via the second log record in global config. See the screenshots.

          Denys Sobchyshak added a comment - - edited That's exactly what I did via the second log record in global config. See the screenshots.

          Alex Earl added a comment -

          No, that's not what you did. You added a logger. I want you to go into the Global Configuration (Manage Jenkins > Configure System). Look for the area "Extended E-mail Notification", near the bottom of that section is a check box "Enable Debug Mode". Check that, save the configuration and rerun the job. Then post the build log.

          Alex Earl added a comment - No, that's not what you did. You added a logger. I want you to go into the Global Configuration (Manage Jenkins > Configure System). Look for the area "Extended E-mail Notification", near the bottom of that section is a check box "Enable Debug Mode". Check that, save the configuration and rerun the job. Then post the build log.

          Denys Sobchyshak added a comment - - edited

          Thanks! Well, somehow our username has changed in the global settings. Really no idea how that could have happened, but I was getting a 535 5.7.3 Authentication unsuccessful. It's solved now, thanks.

          Alex, should you close the issue or me?

          Denys Sobchyshak added a comment - - edited Thanks! Well, somehow our username has changed in the global settings. Really no idea how that could have happened, but I was getting a 535 5.7.3 Authentication unsuccessful . It's solved now, thanks. Alex, should you close the issue or me?

            slide_o_mix Alex Earl
            dsobchyshak Denys Sobchyshak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: