Fisheye/Crucible unable to startup due to duplicate repository

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Symptoms

Fisheye/Crucible unable to startup.

The following appears in the atlassian-fisheye-<date>.log:

1 2 3 4 2013-09-05 11:16:41,124 ERROR - The Web context could not be started org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'feCruHostApplication' defined in URL [jar:file:/xxx/fisheye.jar!/com/atlassian/fecru/applinks/FeCruHostApplication.class]: Unsatisfied dependency expressed through constructor argument with index 6 of type [com.cenqua.fisheye.config.RepositoryManager]: : Error creating bean with name 'repositoryManager': Invocation of init method failed; nested exception is com.cenqua.fisheye.config.ConfigException: Configuration contains duplicate <repository>, named: TESTREPO; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'repositoryManager': Invocation of init method failed; nested exception is com.cenqua.fisheye.config.ConfigException: Configuration contains duplicate <repository>, named: TESTREPO [...] Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'repositoryManager': Invocation of init method failed; nested exception is com.cenqua.fisheye.config.ConfigException: Configuration contains duplicate <repository>, named: TESTREPO

Cause

There is a duplicate repository named TESTREPO in config.xml file.

Resolution

  1. Stop Fisheye/Crucible server

  2. Edit FISHEYE_INST/config.xml file and remove one of the duplicate repo eg:

    1 2 3 4 5 6 7 8 <repository name="TESTREPO" description="" store-diff="true" enabled="true"> <git location="https://github.com/xx/test.git/" renames="none" path=""/> <linker/> <security use-defaults="true" allow-anon="false" allow-logged-in="false" allow-anon-write="false" allow-logged-in-write="false"> <required-groups/> <required-write-groups/> </security> </repository> 
  3. Start Fisheye/Crucible

Updated on April 15, 2025

Still need help?

The Atlassian Community is here for you.