Cannot start Bamboo - Unable to clean the cache directory

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

症状

The following error is thrown when Bamboo is started:

2012-11-20 23:26:51,388 ERROR [WrapperSimpleAppMain] [ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'capabilityHelper' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'pluginAccessor' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pluginManager' defined in class path resource [applicationContextPlugin.xml]: Cannot resolve reference to bean 'bundledPluginLoader' while setting constructor argument with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bundledPluginLoader' defined in class path resource [applicationContextPluginCommon.xml]: Cannot resolve reference to bean 'osgiPluginFactory' while setting constructor argument with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'osgiPluginFactory' defined in class path resource [applicationContextPluginCommon.xml]: Cannot resolve reference to bean 'osgiPersistentCache' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'osgiPersistentCache' defined in class path resource [applicationContextPluginCommon.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache]: Constructor threw exception; nested exception is com.atlassian.plugin.osgi.container.OsgiContainerException: Unable to clean the cache directory: D:\bamboo\caches\plugins\felix
...
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache]: Constructor threw exception; nested exception is com.atlassian.plugin.osgi.container.OsgiContainerException: Unable to clean the cache directory: D:\bamboo\caches\plugins\felix
Caused by: com.atlassian.plugin.osgi.container.OsgiContainerException: Unable to clean the cache directory: D:\bamboo\caches\plugins\felix
	at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.validate(DefaultOsgiPersistentCache.java:91)
	at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.<init>(DefaultOsgiPersistentCache.java:37)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
	at java.lang.reflect.Constructor.newInstance(Unknown Source)
...
Caused by: java.io.IOException: Unable to delete file: D:\bamboo\caches\plugins\felix\felix-cache\bundle9\version0.0\bundle.jar
	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1393)
	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1047)
	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:978)
	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1384)
	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1047)
	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:978)
	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1384)
... 

原因

Bamboo cannot delete a file from the BAMBOO_HOME/caches directory.

ソリューション

The contents of the directory BAMBOO_HOME/caches has to be manually removed before starting Bamboo. To do that:

  1. Shut down the Bamboo instance. 
  2. Manually delete BAMBOO_HOME/caches directory.
  3. Start Bamboo server.


If Bamboo was previously started as a different user, such as root, many files in the BAMBOO_HOME directory will be owned by root. If you noticed this issue after that happened, please be sure to recursively change the ownership of that directory and its files back to your Bamboo user.

最終更新日: 2019 年 9 月 7 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.