VCS for many builds has randomly stopped working: org.eclipse.jgit.errors.ConfigInvalidException
Answered
Test connection failed in Local Projects / RTLS Server [Motive] [OF] [Develop]
The repository at directory 'C:\ProgramData\JetBrains\TeamCity\system\caches\git\git-859B1FB5.git' cannot be opened or created, reason: org.eclipse.jgit.errors.ConfigInvalidException: Cannot read file C:\ProgramData\JetBrains\TeamCity\system\caches\git\git-859B1FB5.git\config
This connection error has popped up on more than half my builds. I tried changing the account that was being used to check git, and that worked momentarily, but overnight, the errors are back. Is there any way to fix this? Or do I have to remake every build?
Please sign in to leave a comment.
Hello!
May I ask you to reach out to us via "Submit a request" form above? This will allow you to send over any of the config files affected by the issue in a private manner.
I would appreciate if you could provide:
1) your TeamCity version;
2) any of the config files in question ;
3) if available, teamcity-vcs.log covering the date/time when the config was corrupted (may be found at <TeamCity Server>/logs) folder.
Please also leave a reference to this thread so that a request will be routed to me. Thank you!
Hello,
Just a quick follow-up; this has been confirmed as 2020.1 bug which is already fixed in 2020.1.1 release (https://youtrack.jetbrains.com/issue/TW-66253). If you see this issue on 2020.1 installation, I suggest to upgrade to the bugfix version (should be available on this week); a quick workaround is to access Administration - Diagnostics - Caches and click on "Reset" next to "git". This will reset all Git caches and force TeamCity to rebuild them (along with the config file).