Repository navigation
[JENKINS-34174] Jenkins 2.0-rc1 - Getting started hangs installing plugins #17018
Copy link
Copy link
Closed
Description
Jenkins 2.0-rc1 hangs for me when installing plugins. I started it with a new jenkins home:
set JENKINS_HOME=c:\j2
java -jar jenkins-2.0-rc1.war
Copy admin password into localhost:8080
Install suggested plugins
Some plugins install, others just sit and spin. I have left if for over an hour.
There is an exception in the console:
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:623) at hudson.ExtensionFinder$Sezpoz.access$800(ExtensionFinder.java:550) at hudson.ExtensionFinder$Sezpoz$1.find(ExtensionFinder.java:594) at hudson.ExtensionFinder$GuiceFinder.refresh(ExtensionFinder.java:329) at jenkins.model.Jenkins.refreshExtensions(Jenkins.java:2383) at hudson.PluginManager.dynamicLoad(PluginManager.java:691) at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1670) at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1452) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:110) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NoClassDefFoundError: com/cloudbees/hudson/plugins/folder/A bstractFolderPropertyDescriptor at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at jenkins.util.AntClassLoader.defineClassFromData(AntClassLoader.java:1139) at hudson.ClassicPluginStrategy$AntClassLoader2.defineClassFromData(ClassicPluginStrategy.java:895) 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.GeneratedMethodAccessor12.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at jenkins.ClassLoaderReflectionToolkit.invoke(ClassLoaderReflectionToolkit.java:44) at jenkins.ClassLoaderReflectionToolkit._findClass(ClassLoaderReflectionToolkit.java:86) at hudson.PluginManager$UberClassLoader.findClass(PluginManager.java:1548) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at net.java.sezpoz.IndexItem.element(IndexItem.java:134) ... 12 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(Unknown Source) ... 28 more
Originally reported by rg, imported from: Jenkins 2.0-rc1 - Getting started hangs installing plugins
- assignee:
kzantow
- status: Resolved
- priority: Major
- component(s): core
- label(s): testfest
- resolution: Fixed
- resolved: 2016-04-26T14:50:50+00:00
- votes: 0
- watchers: 4
- imported: 2025-11-24
Raw content of original issue
Jenkins 2.0-rc1 hangs for me when installing plugins. I started it with a new jenkins home:
set JENKINS_HOME=c:\j2 java -jar jenkins-2.0-rc1.war Copy admin password into localhost:8080 Install suggested plugins
Some plugins install, others just sit and spin. I have left if for over an hour.
There is an exception in the console:
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:623) at hudson.ExtensionFinder$Sezpoz.access$800(ExtensionFinder.java:550) at hudson.ExtensionFinder$Sezpoz$1.find(ExtensionFinder.java:594) at hudson.ExtensionFinder$GuiceFinder.refresh(ExtensionFinder.java:329) at jenkins.model.Jenkins.refreshExtensions(Jenkins.java:2383) at hudson.PluginManager.dynamicLoad(PluginManager.java:691) at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1670) at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1452) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:110) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NoClassDefFoundError: com/cloudbees/hudson/plugins/folder/A bstractFolderPropertyDescriptor at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at jenkins.util.AntClassLoader.defineClassFromData(AntClassLoader.java:1139) at hudson.ClassicPluginStrategy$AntClassLoader2.defineClassFromData(ClassicPluginStrategy.java:895) 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.GeneratedMethodAccessor12.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at jenkins.ClassLoaderReflectionToolkit.invoke(ClassLoaderReflectionToolkit.java:44) at jenkins.ClassLoaderReflectionToolkit._findClass(ClassLoaderReflectionToolkit.java:86) at hudson.PluginManager$UberClassLoader.findClass(PluginManager.java:1548) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at net.java.sezpoz.IndexItem.element(IndexItem.java:134) ... 12 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(Unknown Source) ... 28 more
environment
jenkins 2.0-rc1<br/>
Windows 7<br/>
java version "1.8.0_45"<br/>
3 attachments
Reactions are currently unavailable

Activity
jenkins-infra-bot commentedon Apr 12, 2016
Remote link associated with this issue:
jenkins-infra-bot commentedon Apr 12, 2016
Raw content of original comment:
The exception is unrelated. It's a bug in a plugin that results in a minor notification to be presented as a big problem.
Is your internet connection unstable? While this plugin download is going on, are you able to reach e.g. updates.jenkins-ci.org from the same host?
jenkins-infra-bot commentedon Apr 12, 2016
rg:
Raw content of original comment:
> Is your internet connection unstable?
I don't have any other problems with it.
> While this plugin download is going on, are you able to reach e.g. updates.jenkins-ci.org from the same host?
I can reliably ping updates.jenkins-ci.org while it hangs.
I did have both wired and wireless network connections enabled but I've just recreated it with just wired.
jenkins-infra-bot commentedon Apr 12, 2016
Raw content of original comment:
Ping isn't enough. May be a problem related to mirrorbrain – try to download stuff from that site, e.g. plugin files in http://updates.jenkins-ci.org/latest/ – note which mirror you get HTTP redirected to (if any).
jenkins-infra-bot commentedon Apr 12, 2016
Raw content of original comment:
The URL /threadDump should be manually accessible and tell us what Jenkins is doing while showing this screen. (https://wiki.jenkins-ci.org/display/JENKINS/Obtaining+a+thread+dump)
jenkins-infra-bot commentedon Apr 12, 2016
rg:
Raw content of original comment:
Okay, I have a script which is successfully downloading plugins from https://updates.jenkins-ci.org/latest/. It has successfully downloaded about 50 and still going. Jenkins seems to have stopped after getting 8. I don't think I've been redirected to a mirror.
Tried a different browser (in case the problem is browser side) and get the same thing.
I attached a thread dump to the initial report, corresponding to the screenshot.
I'll attach threadDump2.txt. This is having downloaded (Ant, OWASP, build timeout, Folders, LDAP, Mailer, Matrix auth and PAM auth).
jenkins-infra-bot commentedon Apr 12, 2016
rg:
Raw content of original comment:
Tail of log
jenkins-infra-bot commentedon Apr 12, 2016
rg:
Raw content of original comment:
I wonder if there is a deadlock somewhere in the plugin download code due to higher latency. My ping times to updates.jenkins-ci.org are about 100ms.
Is there an option to download plugins sequentially? Or can I specify a mirror with a lower ping?
jenkins-infra-bot commentedon Apr 13, 2016
Raw content of original comment:
Notable excerpts from the thread dumps:
jenkins-infra-bot commentedon Apr 13, 2016
Raw content of original comment:
Should probably timeout a plugin download that just doesn't finish, combined with an option to retry.
jenkins-infra-bot commentedon Apr 13, 2016
Raw content of original comment:
This definitely looks like some sort of network issue, we can add some timeouts to the plugin downloads, I think, which would end up causing failures to be reported to the installer (which is the right thing to do). This doesn't look like any deadlock issue to me, as these threads are waiting on responses from the OS sockets:
jenkins-infra-bot commentedon Apr 14, 2016
svanoort:
Raw content of original comment:
Encountered in testfest, definitely needs a timeout+retry option, hangs indefinitely for me when there is a network fault.
Can this show the error like we do with normal plugin installation?
jenkins-infra-bot commentedon Apr 14, 2016
Raw content of original comment:
svanoort yes, a failed plugin install for any reason should show up as an error. In addition to the 'retry' option from another ticket, I think the experience here should be as good as can be expected when downloading plugins is failing.
jenkins-infra-bot commentedon Apr 14, 2016
svanoort:
Raw content of original comment:
Yeah, if there's any way we can simply use the logic from normal plugin installation, I think that's a reasonable step, if it saves effort.
jenkins-infra-bot commentedon Apr 25, 2016
Raw content of original comment:
Code changed in jenkins
User: kzantow
Path:
core/src/main/java/hudson/PluginManager.java
core/src/main/java/hudson/model/UpdateCenter.java
core/src/main/resources/jenkins/install/pluginSetupWizard.properties
war/src/main/js/api/pluginManager.js
war/src/main/js/pluginSetupWizardGui.js
war/src/main/js/templates/successPanel.hbs
http://jenkins-ci.org/commit/jenkins/6974d2b7593e3eef3a7fd28117b58382c3368189
Log:
JENKINS-33244/JENKINS-34174- retry for failed plugins & specifydownload timeout
jenkins-infra-bot commentedon Apr 25, 2016
Raw content of original comment:
Code changed in jenkins
User: kzantow
Path:
core/src/main/java/hudson/PluginManager.java
core/src/main/resources/jenkins/install/pluginSetupWizard.properties
war/src/main/js/pluginSetupWizardGui.js
war/src/main/js/templates/pluginSelectionPanel.hbs
war/src/main/js/templates/welcomePanel.hbs
war/src/main/less/pluginSetupWizard.less
http://jenkins-ci.org/commit/jenkins/e612f4163a0e1acedfed9baed6e79cf2bad6fabe
Log:
Merge remote-tracking branch 'primary/master' into
JENKINS-34174-plugin-download-timeoutjenkins-infra-bot commentedon Apr 25, 2016
Raw content of original comment:
Code changed in jenkins
User: Daniel Beck
Path:
core/src/main/java/hudson/PluginManager.java
core/src/main/java/hudson/model/UpdateCenter.java
core/src/main/resources/jenkins/install/pluginSetupWizard.properties
war/src/main/js/api/pluginManager.js
war/src/main/js/pluginSetupWizardGui.js
war/src/main/js/templates/successPanel.hbs
http://jenkins-ci.org/commit/jenkins/8a19e8ae3d82602bf36ac5624056cae2e6950e25
Log:
Merge pull request #2282 from kzantow/
JENKINS-34174-plugin-download-timeoutJENKINS-33244better handling of failed plugins during setup wizardCompare: a4b070b...8a19e8a