Repository Will Not Start Due To "Bad file format"
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
When attempting to start a given repository, the following WARN message is displayed in the logs:
1
2
3
4
5
6
7
8
2011-04-26 15:08:26,450 INFO [main ] fisheye.app InfinityDbHandle-open - opening /usr/local/fisheye/current/var/cache/testrepo/revcache/data.bin with cachesize=700929365
2011-04-26 15:08:26,452 WARN [main ] fisheye.app DefaultRepositoryManager-runRepositories - Problem starting repository
com.cenqua.fisheye.rep.DbException: java.io.IOException: Bad file format (file truncated.)
at com.cenqua.fisheye.infinitydb.InfinityDbHandle.get(InfinityDbHandle.java:46)
at com.cenqua.fisheye.rep.impl.CommonUtilDAO.hasProperty(CommonUtilDAO.java:147)
at com.cenqua.fisheye.rep.impl.CommonUtilDAO.hasProperty(CommonUtilDAO.java:38)
at com.cenqua.fisheye.cache.BaseRevisionCache.hasScanProperty(BaseRevisionCache.java:608)
at com.cenqua.fisheye.cache.BaseDirInfoCache.loadIndexingFeatures(BaseDirInfoCache.java:67)
The repository will fail to start.
Cause
The repository caches have become corrupted and will need to be recreated.
Resolution
Please initiate a re-index of your problematic repository to resolve the issue.
Was this helpful?