[JIRA] [email-ext-plugin] (JENKINS-34022) Jenkins wont send email triggered by a job while sending test email

25 views
Skip to first unread message

sobchyshak@crxmarkets.com (JIRA)

unread,
Apr 5, 2016, 7:39:01 AM4/5/16
to jenkinsc...@googlegroups.com
Denys Sobchyshak created an issue
 
Jenkins / Bug JENKINS-34022
Jenkins wont send email triggered by a job while sending test email
Issue Type: Bug Bug
Assignee: Alex Earl
Attachments: plugin-versions.png, updates.png
Components: email-ext-plugin, mailer-plugin
Created: 2016/Apr/05 11:38 AM
Priority: Major Major
Reporter: Denys Sobchyshak

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.

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

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

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

sobchyshak@crxmarkets.com (JIRA)

unread,
Apr 5, 2016, 7:42:03 AM4/5/16
to jenkinsc...@googlegroups.com
Denys Sobchyshak updated an issue
Change By: Denys Sobchyshak
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: myac...@gmail.com
Finished: SUCCESS_

* Note Log excerpt: *
Apr 05, 2016 11
: 43:34 AM WARNING hudson.ExtensionFinder$Sezpoz scout
I've upgraded Failed  to  the latest LTS version and have updated all of the  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

sobchyshak@crxmarkets.com (JIRA)

unread,
Apr 5, 2016, 7:51:01 AM4/5/16
to jenkinsc...@googlegroups.com
Denys Sobchyshak updated an issue
Change By: Denys Sobchyshak
Environment: 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.


slide.o.mix@gmail.com (JIRA)

unread,
Apr 6, 2016, 9:19:18 PM4/6/16
to jenkinsc...@googlegroups.com
Alex Earl commented on Bug JENKINS-34022
 
Re: Jenkins wont send email triggered by a job while sending test email

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.

sobchyshak@crxmarkets.com (JIRA)

unread,
Apr 11, 2016, 5:14:02 AM4/11/16
to jenkinsc...@googlegroups.com

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.

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?

sobchyshak@crxmarkets.com (JIRA)

unread,
Apr 11, 2016, 5:15:02 AM4/11/16
to jenkinsc...@googlegroups.com
Denys Sobchyshak edited a comment on Bug JENKINS-34022
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.

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?

sobchyshak@crxmarkets.com (JIRA)

unread,
Apr 11, 2016, 5:16:03 AM4/11/16
to jenkinsc...@googlegroups.com
Denys Sobchyshak edited a comment on Bug JENKINS-34022
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:

{ { quote} 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)
{quote } }

Any ideas on the matter?

slide.o.mix@gmail.com (JIRA)

unread,
Apr 11, 2016, 11:31:12 AM4/11/16
to jenkinsc...@googlegroups.com

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

sobchyshak@crxmarkets.com (JIRA)

unread,
Apr 11, 2016, 11:33:02 AM4/11/16
to jenkinsc...@googlegroups.com

sobchyshak@crxmarkets.com (JIRA)

unread,
Apr 11, 2016, 11:33:03 AM4/11/16
to jenkinsc...@googlegroups.com
Denys Sobchyshak edited a comment on Bug JENKINS-34022
That's exactly what I did  via the second log record in global config .

sobchyshak@crxmarkets.com (JIRA)

unread,
Apr 11, 2016, 11:38:01 AM4/11/16
to jenkinsc...@googlegroups.com
Denys Sobchyshak updated an issue
Change By: Denys Sobchyshak
Attachment: ext-out.png
Attachment: ext-debug.png

sobchyshak@crxmarkets.com (JIRA)

unread,
Apr 11, 2016, 11:39:02 AM4/11/16
to jenkinsc...@googlegroups.com
Denys Sobchyshak edited a comment on Bug JENKINS-34022
That's exactly what I did via the second log record in global config.  See the screenshots. !ext-debug.png|thumbnail!!ext-out.png|thumbnail!

slide.o.mix@gmail.com (JIRA)

unread,
Apr 11, 2016, 11:41:01 AM4/11/16
to jenkinsc...@googlegroups.com

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.

sobchyshak@crxmarkets.com (JIRA)

unread,
Apr 11, 2016, 11:59:02 AM4/11/16
to jenkinsc...@googlegroups.com

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.

sobchyshak@crxmarkets.com (JIRA)

unread,
Apr 11, 2016, 12:00:01 PM4/11/16
to jenkinsc...@googlegroups.com
Denys Sobchyshak edited a comment on Bug JENKINS-34022
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@gmail.com (JIRA)

unread,
Apr 11, 2016, 12:12:02 PM4/11/16
to jenkinsc...@googlegroups.com
Alex Earl closed an issue as Not A Defect
 
Change By: Alex Earl
Status: Open Closed
Resolution: Not A Defect
Reply all
Reply to author
Forward
0 new messages