Stash Does Not Start - Unable to clean the cache directory


On this page

Still need help?

The Atlassian Community is here for you.

Ask the community


Stash does not start and the following error can be seen in the atlassian-stash.log:

2012-11-27 11:05:08,255 ERROR [main]  o.s.web.context.ContextLoader Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationFilter' defined in class path resource [security-context.xml]: Cannot resolve 
Invocation of init method failed; nested exception is com.atlassian.plugin.osgi.container.OsgiContainerException: Unable to clean the cache directory: /atlassian-stash-home/plugins/.osgi-cache/felix
	at ~[spring-beans-3.1.2.RELEASE.jar:3.1.2.RELEASE]


Changes in the installed JDK/JRE have caused the compiled plugin JARs to be incompatible and they need to be regenerated.


  1. Create a backup of the STASH_HOME/plugins/.osgi-cache/felix directory:

    cp <STASH_HOME>/plugins/.osgi-plugins/felix <STASH_HOME>/plugins/.osgi-plugins/felix.bak
  2. Remove the STASH_HOME/plugins/.osgi-cache/felix directory:

    rm -rf <STASH_HOME>/plugins/.osgi-cache/felix
  3. Start Stash.
Last modified on Feb 26, 2016

Was this helpful?

Provide feedback about this article
Powered by Confluence and Scroll Viewport.