Stash failed to Start due to Required plugin failed to start
After Stash installation, hitting the page shows this error message:
A fatal error has occurred The following problems occurred which prevents Stash from starting correctly: Required plugin com.atlassian.stash.stash-jira-integration has failed to start Required plugin com.atlassian.crowd.embedded.admin has failed to start Required plugin com.atlassian.stash.stash-rest-common has failed to start Required plugin com.atlassian.stash.stash-rest has failed to start Required plugin com.atlassian.applinks.applinks-plugin has failed to start Required plugin com.atlassian.upm.atlassian-universal-plugin-manager-plugin has failed to start Required plugin com.atlassian.stash.stash-stp-integration has failed to start Required plugin com.atlassian.oauth.serviceprovider has failed to start Required plugin com.atlassian.stash.stash-scm-git has failed to start Required plugin com.atlassian.oauth.admin has failed to start Required plugin com.atlassian.plugins.rest.atlassian-rest-module has failed to start
The following information is logged to
2013-08-23 15:54:21,834 ERROR [localhost-startStop-1] c.a.p.loaders.ScanningPluginLoader Unable to deploy plugin 'com.atlassian.plugins.rest.atlassian-rest-module' from 'Unit: /opt/stash/stash.norganna.org/plugins/.bundled-plugins/atlassian-rest-module-2.8.0-m7.jar (1374748504000)'. 2013-08-23 15:54:21,840 ERROR [localhost-startStop-1] c.a.p.loaders.ScanningPluginLoader Because of the following exception: java.lang.IllegalArgumentException: File must be a jar: /opt/stash/stash.test.instance.org/plugins/.osgi-cache/transformed-plugins/atlassian-rest-module-2.8.0-m7_1374748504000.jar ... Caused by: java.util.zip.ZipException: error in opening zip file ... ... 29 common frames omitted
2014-03-30 22:23:51,148 ERROR [FelixDispatchQueue] c.a.p.o.c.f.FelixOsgiContainerManager Framework error in bundle org.springframework.osgi.extender org.osgi.framework.BundleException: Activator start error in bundle org.springframework.osgi.extender . at org.apache.felix.framework.Felix.activateBundle(Felix.java:1889) ~[org.apache.felix.framework-3.0.9.jar:na] at java.lang.Thread.run(Thread.java:744) [na:1.8.0] ... 3 frames trimmed Caused by: java.lang.IllegalStateException: Cannot create ConcurrentHashMap - neither JDK 1.5 nor backport-concurrent available on the classpath at org.springframework.core.CollectionFactory.createConcurrentMap(CollectionFactory.java:229) ~[spring-core-4.0.2.RELEASE.jar:4.0.2.RELEASE] at java.lang.Class.newInstance(Class.java:433) ~[na:1.8.0] ... 2 common frames omitted
Stash will intially extract a number of core plugins from
<Stash installation directory>/atlassian-stash/WEB-INF/classes/bundled-plugins.zip and put them into
<STASH_HOME>/plugins/.osgi-cache/. If one or more of these extracted plugins has become corrupt Stash will fail to start in the manner described above.\
- Shut Stash down.
- Backup and remove the following directories. They will be rebuilt when Stash starts again.
- Restart Stash.
Upon starting up, Stash will re-extract the required plugins from
and rebuild those plugin directories.
<Stash installation directory>/atlassian-stash/WEB-INF/classes/bundled-plugins.zip
Upgrade Stash to 3.0 or higher, or use a Java version that is described on Supported platforms.