Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Error Message after restarting bitbucket docker container

Tellja Admin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 14, 2018

ERROR [spring-startup] c.a.j.s.w.s.JohnsonDispatcherServlet SpringMVC dispatcher [springMvc] could not be started

org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [stash-context.xml]; nested exception is org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'attachmentService' for bean class [com.atlassian.stash.internal.attach.DiskAttachmentService] conflicts with existing, non-compatible bean definition of same name and class [com.atlassian.stash.internal.attach.DefaultDiskAttachmentService]
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:414)
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125)
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:129)
at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:614)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:515)
at javax.servlet.GenericServlet.init(GenericServlet.java:158)
at java.lang.Thread.run(Thread.java:748)
... 13 frames trimmed
Caused by: org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'attachmentService' for bean class [com.atlassian.stash.internal.attach.DiskAttachmentService] conflicts with existing, non-compatible bean definition of same name and class [com.atlassian.stash.internal.attach.DefaultDiskAttachmentService]
at org.springframework.context.annotation.ClassPathBeanDefinitionScanner.checkCandidate(ClassPathBeanDefinitionScanner.java:345)
at org.springframework.context.annotation.ClassPathBeanDefinitionScanner.doScan(ClassPathBeanDefinitionScanner.java:283)
at org.springframework.context.annotation.ComponentScanBeanDefinitionParser.parse(ComponentScanBeanDefinitionParser.java:87)
... 8 common frames omitted

1 answer

1 accepted

0 votes
Answer accepted
Tellja Admin
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 17, 2018

This was caused by the Installation of bitbucket-backup-client-3.4.0 with bitbucket-5.16.0.

When unzipping the backup-Client libs into the volume of my working bitbucket Docker Container, backups work perfectly. But when restarting Bitbucket with all the new libraries the backup needs in this volume, Bitbucket wont start and gives the error message above...

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events