[JIRA] [core] (JENKINS-34880) When using multiple updateSites, tool installer download fails if one UC is missing installers

0 views
Skip to first unread message

o.v.nenashev@gmail.com (JIRA)

unread,
May 17, 2016, 8:11:01 AM5/17/16
to jenkinsc...@googlegroups.com
Oleg Nenashev created an issue
 
Jenkins / Bug JENKINS-34880
When using multiple updateSites, tool installer download fails if one UC is missing installers
Issue Type: Bug Bug
Assignee: Unassigned
Components: core
Created: 2016/May/17 12:10 PM
Environment: jenkins-2.4
Labels: plugin-manager updateCenter tools
Priority: Major Major
Reporter: Oleg Nenashev
  • I have multiple update sites, which contain different plugins
  • One of sites ("my-embedded-update-site" in my case) does not provide neither Gradle plugin nor its tool installers
  • During the plugin installation Jenkins tries to download the tool installer from this site and fails with error
  • Tool installer is missing after it

Jenkins should not fail the ToolInstaller download if one plugin update site provides such tool installer.

Log example:

INFO: Attempting to dynamic load /Users/nenashev/Documents/my-war/tmp/plugins/gradle.jpi
May 17, 2016 1:09:33 PM hudson.model.DownloadService$Downloadable updateNow
WARNING: Could not load json from file:/Users/nenashev/Documents/my-war/tmp/my-embedded-update-site/updates/hudson.plugins.gradle.GradleInstaller.json
java.io.FileNotFoundException: /Users/nenashev/Documents/my-war/tmp/my-embedded-update-site/updates/hudson.plugins.gradle.GradleInstaller.json.html (No such file or directory)
	at java.io.FileInputStream.open0(Native Method)
	at java.io.FileInputStream.open(FileInputStream.java:195)
	at java.io.FileInputStream.<init>(FileInputStream.java:138)
	at java.io.FileInputStream.<init>(FileInputStream.java:93)
	at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)
	at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)
	at hudson.model.DownloadService.loadJSONHTML(DownloadService.java:189)
	at hudson.model.DownloadService$Downloadable.updateNow(DownloadService.java:403)
	at hudson.model.DownloadService$DownloadableListener.onChange(DownloadService.java:231)
	at hudson.ExtensionList.fireOnChangeListeners(ExtensionList.java:328)
	at hudson.ExtensionList.add(ExtensionList.java:246)
	at hudson.tools.DownloadFromUrlInstaller$DescriptorImpl.<init>(DownloadFromUrlInstaller.java:127)
	at hudson.plugins.gradle.GradleInstaller$DescriptorImpl.<init>(GradleInstaller.java:18)
	at hudson.plugins.gradle.GradleInstaller$DescriptorImpl$$FastClassByGuice$$7d2e75b8.newInstance(<generated>)
	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:108)
	at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:88)
	at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:269)
	at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1058)
	at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
	at com.google.inject.Scopes$1$1.get(Scopes.java:65)
	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$3$1.call(InjectorImpl.java:1005)
	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1051)
	at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:1001)
	at hudson.ExtensionFinder$GuiceFinder._find(ExtensionFinder.java:386)
	at hudson.ExtensionFinder$GuiceFinder.access$000(ExtensionFinder.java:232)
	at hudson.ExtensionFinder$GuiceFinder$3.find(ExtensionFinder.java:341)
	at jenkins.ExtensionComponentSet$3.find(ExtensionComponentSet.java:98)
	at jenkins.ExtensionComponentSet$1.find(ExtensionComponentSet.java:70)
	at hudson.ExtensionList.load(ExtensionList.java:356)
	at hudson.ExtensionList.refresh(ExtensionList.java:312)
	at jenkins.model.Jenkins.refreshExtensions(Jenkins.java:2416)
	at hudson.PluginManager.dynamicLoad(PluginManager.java:824)
	at hudson.PluginManager.dynamicLoad(PluginManager.java:772)
	at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1832)
	at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1593)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:110)
	at java.lang.Thread.run(Thread.java:745)
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

valentina.armenise@gmail.com (JIRA)

unread,
May 18, 2016, 3:42:01 AM5/18/16
to jenkinsc...@googlegroups.com
valentina armenise started work on Bug JENKINS-34880
 
Change By: valentina armenise
Status: Open In Progress

valentina.armenise@gmail.com (JIRA)

unread,
May 18, 2016, 3:42:01 AM5/18/16
to jenkinsc...@googlegroups.com

scm_issue_link@java.net (JIRA)

unread,
May 21, 2016, 1:38:01 AM5/21/16
to jenkinsc...@googlegroups.com

scm_issue_link@java.net (JIRA)

unread,
May 21, 2016, 1:38:01 AM5/21/16
to jenkinsc...@googlegroups.com
SCM/JIRA link daemon commented on Bug JENKINS-34880
 
Re: When using multiple updateSites, tool installer download fails if one UC is missing installers

Code changed in jenkins
User: valentina
Path:
core/src/main/java/hudson/model/DownloadService.java
http://jenkins-ci.org/commit/jenkins/dce35f31d8f1f29b00b468c0c6df27bd122d214f
Log:
[FIXED JENKINS-34880] do not show warnings if tool installer is present in at least 1 update site (#2361)

o.v.nenashev@gmail.com (JIRA)

unread,
Jun 6, 2016, 5:36:01 AM6/6/16
to jenkinsc...@googlegroups.com

thomas.wikstrom@tieto.com (JIRA)

unread,
Jul 6, 2016, 5:03:02 AM7/6/16
to jenkinsc...@googlegroups.com

We experience the same problem in version 1.651.3, could the solution (JENKINS-34880) be implemented there as well?

Regards /Thomas

This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

o.v.nenashev@gmail.com (JIRA)

unread,
Jul 6, 2016, 5:15:03 AM7/6/16
to jenkinsc...@googlegroups.com

Hi Thomas Wikström Due to whatever reason this fix has not been backported to 1.651.3
Currently this stabilization branch is closed. The next LTS release is 2.7.1, which is expected to be published today or tomorrow. This release will contain the fix.

Reply all
Reply to author
Forward
0 new messages