cli icon indicating copy to clipboard operation
cli copied to clipboard

Invalid checksum in gitIndex

Open hmultaniucop opened this issue 7 months ago • 4 comments

Getting below error even after updating to latest sf cli

Error (InternalError): An internal error caused this command to fail. isomorphic-git error: Invalid checksum in GitIndex buffer: expected 44b53f7ed7c05ccc9c922f479d524a607a4d64d9 but saw fb1eab1b06136705b614238e0b303ee46cfff8f3

hmultaniucop avatar Jun 27 '25 13:06 hmultaniucop

Hello @hmultaniucop :wave: It looks like you didn't include the full Salesforce CLI version information in your issue. Please provide the output of version --verbose --json for the CLI you're using (sf or sfdx).

A few more things to check:

  • Make sure you've provided detailed steps to reproduce your issue.
    • A repository that clearly demonstrates the bug is ideal.
  • Make sure you've installed the latest version of Salesforce CLI. (docs)
    • Better yet, try the rc or nightly versions. (docs)
  • Try running the doctor command to diagnose common issues.
  • Search GitHub for existing related issues.

Thank you!

github-actions[bot] avatar Jun 27 '25 13:06 github-actions[bot]

Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.

github-actions[bot] avatar Jun 27 '25 13:06 github-actions[bot]

version 2.94.6-724977b

hmultaniucop avatar Jun 27 '25 13:06 hmultaniucop

Hey @hmultaniucop, we have had occasional reports of this over the years. We were able to resolve a related issue in 2023, but haven't seen this much since.

Do you remember which version of the CLI you updated from? Was it a really old version?

Generally, deleting the source tracking files in you projects .sf folder will resolve the issue. Please let me know if you a consistent way to reproduce this error, and we can debug further

iowillhoit avatar Jun 30 '25 15:06 iowillhoit

I've been having this issue suddenly too; never had it before. The only fix for me was to delete the ENTIRE .sf/orgs folder, sign out of the orgs and back in again; restarting the IDE between each step. I also updated git for good measure. Tracking was messed up after this so ran sf project tracking reset, now it seems to be functional again

ministe2003 avatar Jul 03 '25 08:07 ministe2003

In recent times we have been seeing similar issues on an intermittent basis. We have not been able to identify any particular circumstances to reproduce the problem.

geoffswift avatar Jul 03 '25 10:07 geoffswift

This issue has not received a response in 7 days. It will auto-close in 7 days unless a response is posted.

github-actions[bot] avatar Jul 11 '25 02:07 github-actions[bot]