A Git backup job fails with the error: 10264 36c4 06/28 07:25:45 9776970 CGitCmdUtils::ShouldIgnoreError(211) - [[git-lfs-push] failed with [error: failed to fetch some objects from 'https://dev.azure.com/company/projectA.git/info/lfs']]"

Article ID: 83346

Article Type: Troubleshooting

Last Modified:

Git backup jobs fail.

Symptoms

A Git backup jobs fail with the following error message in the Command Center: 10264 36c4 06/28 07:25:45 9776970 CGitCmdUtils::ShouldIgnoreError(211) - [[git-lfs-push] failed with [error: failed to fetch some objects from 'https://dev.azure.com/company/projectA.git/info/lfs']]"

Causes

Git backup jobs fail while fetching Large File Storage (LFS) objects from Git.

Resolution

  1. Make sure that  Git & Git LFS are using recent versions (3.4.1 and higher). To check the versions of Git and Git LFS, run the commands: git lfs -version git --version
  2. To create a local bare repository, and to fetch and push all LFS objects to/from the remote repository, run the following commands on the access node: git clone -bare https://Token:< Access >@dev.azure.com/Company/Projects/_git/ProjectA cd ProjectA git config http.version HTTP/1.1 git lfs fetch --all https://Token:< Access Token >@dev.azure.com/Company/Projects/_git/ProjectA git lfs push --all https://Token:< Access Token >@dev.azure.com/Company/Projects/_git/ProjectA Replace < Access Token >with your PAT and validate that the Git LFS commands do not fail. If the repositories were migrated from another source, it's possible that the LFS objects were not properly copied or pushed. Therefore, the “git lfs fetch –all” command could fail with the error: “[404] LFS object not found”. This error means that the server does not have some LFS objects. If the source repository is somewhere where all the LFS objects are intact , running the “git lfs push --all https://Token:< Access Token >@dev.azure.com/Company/Projects/_git/ProjectA" command with the appropriate repository URL can fix this.
  3. If the highest file size is 1GB, then configure buffer size to 1GB. To set the buffer size for Git POST operationsto the maximum file size available in the repository, run the commands: git config --global http.postBuffer 1024000000 git config --system http.postBuffer 1024000000
1 Commvault Way, Tinton Falls, NJ 07724 Sitemap | Legal Notices | Trademarks | Privacy Policy
Copyright © 2022 Commvault | All Rights Reserved.