RE: email-ext circular dependency

2017-04-26 Thread Chanda Unmack
Thanks! I’ve downgraded the plugin and the circular dependency error went away 
- now getting errors around templates, but that’s another story. I will file a 
Jira ticket now.

One error down, but still an unstable Jenkins – at least it’s slightly easier 
to get through the logs ☺

From: Victor Martinez [mailto:victormartinezru...@gmail.com]
Sent: Friday, April 21, 2017 1:50 PM
To: Jenkins Users
Cc: Chanda Unmack
Subject: Re: email-ext circular dependency

As far as I see there was a comment about:
- 
https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin#Email-extplugin-2.40.3(May20,2015)

If you downgrade the version to 2.40.3, does it work?
- http://updates.jenkins-ci.org/download/plugins/email-ext/2.40.3/email-ext.hpi

If so, then raise a jira ticket with those details then they can narrow down 
what diffs are between 2.57.2 and 2.40.3

Cheers

On Friday, 21 April 2017 19:51:15 UTC+1, Chanda Unmack wrote:
Hi all,

Our Jenkins instance has been unstable ever since we’ve moved it to RHEL so 
I’ve been watching the logs to see if there is anything I can find to correlate 
the crashes. (already filed a bug on all the npes we’re getting)
I now see an error in the log when it’s become unresponsive that is related to 
email-ext plugin. I did a search and found an old bug with the same error 
[JENKINS-28402] but it was on a different version and has been closed with some 
back and forth that didn’t seem to address the issue.

Jenkins 2.46.1
Email-ext 2.57.2

WARNING: Failed to instantiate 
Key[type=hudson.plugins.emailext.ExtendedEmailPublisherDescriptor, 
annotation=[none]]; skipping this component
com.google.inject.ProvisionException: Unable to provision, see the following 
errors:

1) Tried proxying hudson.plugins.emailext.ExtendedEmailPublisherDescriptor to 
support a circular dependency, but it is not an interface.

1 error
at 
com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:52)
at 
com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:145)
at 
hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1.get(ExtensionFinder.java:424)
at 
com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
at 
com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1016)
at 
com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1103)jjj
at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1012)
at hudson.ExtensionFinder$GuiceFinder._find(ExtensionFinder.java:386)
at hudson.ExtensionFinder$GuiceFinder.find(ExtensionFinder.java:377)
at 
hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:472)
at hudson.ExtensionList.load(ExtensionList.java:365)
at hudson.ExtensionList.ensureLoaded(ExtensionList.java:303)
at hudson.ExtensionList.getComponents(ExtensionList.java:168)
at hudson.DescriptorExtensionList.load(DescriptorExtensionList.java:191)
at hudson.ExtensionList.ensureLoaded(ExtensionList.java:303)
at hudson.ExtensionList.iterator(ExtensionList.java:157)
at hudson.model.User.load(User.java:201)
at hudson.model.User.(User.java:155)
at hudson.model.User.getOrCreate(User.java:463)
at hudson.model.User.getById(User.java:534)
at hudson.model.User.get(User.java:518)
at hudson.model.User.current(User.java:502)
at 
org.jenkinsci.plugins.scriptsecurity.scripts.ApprovalContext.withCurrentUser(ApprovalContext.java:73)
at 
hudson.plugins.emailext.ExtendedEmailPublisherDescriptor.setDefaultPostsendScript(ExtendedEmailPublisherDescriptor.java:514)
at 
hudson.plugins.emailext.ExtendedEmailPublisherDescriptor.(ExtendedEmailPublisherDescriptor.java:183)
at 
hudson.plugins.emailext.ExtendedEmailPublisherDescriptor$$FastClassByGuice$$5dfa54d0.newInstance()
at 
com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance(FastConstructor.java:40)
at 
com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:61)
at 
com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:105)
at 
com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:85)
at 
com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:267)
at 
com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
at 
com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1103)
at 
com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
at 
com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:145)
at 
hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope

Re: email-ext circular dependency

2017-04-21 Thread Victor Martinez
As far as I see there was a comment about:
- 
https://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin#Email-extplugin-2.40.3(May20,2015)

If you downgrade the version to 2.40.3, does it work?
- http://updates.jenkins-ci.org/download/plugins/email-ext/2.40.3/email-ext.hpi

If so, then raise a jira ticket with those details then they can narrow 
down what diffs are between 2.57.2 and 2.40.3

Cheers

On Friday, 21 April 2017 19:51:15 UTC+1, Chanda Unmack wrote:
>
> Hi all,
>
>  
>
> Our Jenkins instance has been unstable ever since we’ve moved it to RHEL 
> so I’ve been watching the logs to see if there is anything I can find to 
> correlate the crashes. (already filed a bug on all the npes we’re getting)
>
> I now see an error in the log when it’s become unresponsive that is 
> related to email-ext plugin. I did a search and found an old bug with the 
> same error [JENKINS-28402] but it was on a different version and has been 
> closed with some back and forth that didn’t seem to address the issue.
>
>  
>
> Jenkins 2.46.1
>
> Email-ext 2.57.2
>
>  
>
> WARNING: Failed to instantiate 
> Key[type=hudson.plugins.emailext.ExtendedEmailPublisherDescriptor, 
> annotation=[none]]; skipping this component
>
> com.google.inject.ProvisionException: Unable to provision, see the 
> following errors:
>
>  
>
> 1) Tried proxying hudson.plugins.emailext.ExtendedEmailPublisherDescriptor 
> to support a circular dependency, but it is not an interface.
>
>  
>
> 1 error
>
> at 
> com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:52)
>
> at 
> com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:145)
>
> at 
> hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1.get(ExtensionFinder.java:424)
>
> at 
> com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
>
> at 
> com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1016)
>
> at 
> com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1103)jjj
>
> at 
> com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1012)
>
> at 
> hudson.ExtensionFinder$GuiceFinder._find(ExtensionFinder.java:386)
>
> at 
> hudson.ExtensionFinder$GuiceFinder.find(ExtensionFinder.java:377)
>
> at 
> hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:472)
>
> at hudson.ExtensionList.load(ExtensionList.java:365)
>
> at hudson.ExtensionList.ensureLoaded(ExtensionList.java:303)
>
> at hudson.ExtensionList.getComponents(ExtensionList.java:168)
>
> at 
> hudson.DescriptorExtensionList.load(DescriptorExtensionList.java:191)
>
> at hudson.ExtensionList.ensureLoaded(ExtensionList.java:303)
>
> at hudson.ExtensionList.iterator(ExtensionList.java:157)
>
> at hudson.model.User.load(User.java:201)
>
> at hudson.model.User.(User.java:155)
>
> at hudson.model.User.getOrCreate(User.java:463)
>
> at hudson.model.User.getById(User.java:534)
>
> at hudson.model.User.get(User.java:518)
>
> at hudson.model.User.current(User.java:502)
>
> at 
> org.jenkinsci.plugins.scriptsecurity.scripts.ApprovalContext.withCurrentUser(ApprovalContext.java:73)
>
> at 
> hudson.plugins.emailext.ExtendedEmailPublisherDescriptor.setDefaultPostsendScript(ExtendedEmailPublisherDescriptor.java:514)
>
> at 
> hudson.plugins.emailext.ExtendedEmailPublisherDescriptor.(ExtendedEmailPublisherDescriptor.java:183)
>
> at 
> hudson.plugins.emailext.ExtendedEmailPublisherDescriptor$$FastClassByGuice$$5dfa54d0.newInstance()
>
> at 
> com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance(FastConstructor.java:40)
>
> at 
> com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:61)
>
> at 
> com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:105)
>
> at 
> com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:85)
>
> at 
> com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:267)
>
> at 
> com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
>
> at 
> com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1103)
>
> at 
> com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
>
> at 
> com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:145)
>
> at 
> hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1.get(ExtensionFinder.java:424)
>
> at 
> com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
>
> at 
> com.google.i