Unable to restore the Bitbucket from the backup client. I am running Bitbucket on centos 7, I am running "java -jar bitbucket-restore-client.jar" but it gives error:
Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'backupHome' defined in class path resource [META-INF/spring/common-spring.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.atlassian.bitbucket.internal.backup.client.layout.DefaultBackupHome]: Constructor threw exception; nested exception is java.lang.IllegalStateException: /root/bitbucket-20200714-165408-907.tar already exists and is not a directory
2020-07-15 16:47:02,320 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]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.atlassian.bitbucket.internal.backup.client.layout.DefaultBackupHome]: Constructor threw exception; nested exception is java.lang.IllegalStateException: /root/bitbucket-20200714-165408-907.tar already exists and is not a directory
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:304)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:285)
... 20 more frames available in the log file
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.