Git repository indexing fails due to "fatal: bad config line 1 in file ./config"
プラットフォームについて: Server と Data Center のみ - この記事は、サーバーおよびデータセンター プラットフォームのアトラシアン製品にのみ適用されます。
For an undetermined reason so far, but most likely due to an instance crash or abrupt shutdown, Fisheye fails to index a Git repository and the following message is written in the
2017-10-18 00:00:05,697 WARN [IncrPing2 gitrepo ] fisheye IndexingPingRequest-doRequest - Exception during FishEye Incremental Indexing of gitrepo (gitrepo): com.cenqua.fisheye.config.ConfigException: com.atlassian.fisheye.dvcs.handler.DvcsProcessException: Error while communicating with VCS: fatal: bad config line 1 in file ./config
<FISHEYE_INST>/var/cache/<repo_name>/clone/config file got corrupted.
A few things can be done:
- Compare this corrupted file with the same file from another repository that is not facing the problem and see what the differences are in order to fix the corrupted one.
- If this repository is configured in any other Fisheye instance by any chance, and that instance is indexing the repository as expected, the
configfile could copied from the instance that is indexing the repository just fine into this instance that is failing to index that repository. This should be done after shutting down both instances in order to avoid corruption.
- If there is a recent Fisheye backup which includes repository caches, the backup zip could be expanded into somewhere outside of Fisheye directories (e.g. Desktop) and then the
configfile could copied from there into <FISHEYE_INST>/var/cache/<repo_name>/clone/config.
- If there aren't any backups nor other Fisheye instances with that file, the only option left seems to be deleting the repository caches and re-indexing it from scratch by following these steps:
- Shutdown Fisheye
- Delete the
- Start Fisheye.