The Stash backup directory cannot be located in Stash home

症状

After executing the backup client, it fails with the exception below:

2014-09-08 13:27:10,195 INFO         Initializing
2014-09-08 13:27:10,686 ERROR        The application could not be started. An unexpected error prevented the Spring
ApplicationContext from being created. Details of the error follow.
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'backupHome' defined in class path resource [META-INF/spring/common-spring.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.atlassian.stash.internal.backup.client.layout.DefaultBackupHome]: Constructor threw exception; nested exception is com.atlassian.stash.internal.backup.client.BackupException: The Stash backup directory (/opt/atlassian/stash-home) cannot be located in Stash home (/opt/atlassian/stash-home). Please change the backup directory location and retry.
        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:278) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1114) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
        ... 12 more frames available in the log file

原因

The configured backup.home directory is located under the stash.home directory.

ソリューション

Create the backup.home in a completely separate directory. For example, you can use /opt/atlassian/stash-backup instead.

最終更新日: 2016 年 2 月 26 日

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

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