Error collecting changes for VCS repository 'git fetch'

Good morning,

I have a teamcity installed in my server in order to deploy a java app to the same server, but when I run thw workflows it says me the following error:
Error collecting changes for VCS repository '"/var/git/kids.git#refs/heads/preprod" {instance id=13, parent internal id=4, parent id=Kids_VarGitKidsGitRefsHeadsPreprod, description: "/var/git/kids.git#refs/heads/preprod"}'
'git fetch' command failed.
stderr: java.io.EOFException: Short read of block.
at org.eclipse.jgit.util.IO.readFully(IO.java:248)
at org.eclipse.jgit.internal.storage.file.UnpackedObject.open(UnpackedObject.java:108)
at org.eclipse.jgit.internal.storage.file.ObjectDirectory.openLooseObject(ObjectDirectory.java:436)
at org.eclipse.jgit.internal.storage.file.ObjectDirectory.openObject(ObjectDirectory.java:368)
at org.eclipse.jgit.internal.storage.file.WindowCursor.open(WindowCursor.java:145)
at org.eclipse.jgit.lib.ObjectReader$1.open(ObjectReader.java:302)
at org.eclipse.jgit.revwalk.RevWalk$2.next(RevWalk.java:921)
at org.eclipse.jgit.transport.UploadPack.parseWants(UploadPack.java:1054)
at org.eclipse.jgit.transport.UploadPack.processHaveLines(UploadPack.java:941)
at org.eclipse.jgit.transport.UploadPack.negotiate(UploadPack.java:921)
at org.eclipse.jgit.transport.UploadPack.service(UploadPack.java:689)
at org.eclipse.jgit.transport.UploadPack.upload(UploadPack.java:628)
at org.eclipse.jgit.transport.TransportLocal$InternalLocalFetchConnection$2.run(TransportLocal.java:258)
internal server error

How can I fix it ?

Thanks and regards!

0
1 comment
Hi,

"Short read of block" could mean a corrupt repository. Please check whether the remote is working properly everywhere else; it could be a remote issue. If it works everywhere else, I suggest you try to reset the TeamCity caches: https://www.jetbrains.com/help/teamcity/teamcity-monitoring-and-diagnostics.html#Caches.

If that doesn't help, please do the following:
1. Reproduce the issue and share the teamcity-vcs.log.
2. Enable the debug-vcs logging profile (https://www.jetbrains.com/help/teamcity/teamcity-server-logs.html#Changing+Logging+Configuration).
3. Reproduce the issue and share the teamcity-vcs.log.
The idea is to have a non-debug and debug log for the same issue. It should give us more information on other possible causes.
You can upload the log files with https://uploads.jetbrains.com/ and share the upload ID.

Best regards,
Anton
0

Please sign in to leave a comment.