File: fatal_-_corrupt_loose_object.mdwn

package info (click to toggle)
git-annex 10.20250416-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 73,572 kB
  • sloc: haskell: 90,656; javascript: 9,103; sh: 1,469; makefile: 211; perl: 137; ansic: 44
file content (14 lines) | stat: -rw-r--r-- 1,132 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
After an unobserved problem a few days ago, one of my git annex repositories has become corrupt

    [frederik@maui Documents]$ git status
    error: object file .git/objects/e2/98e448aa2473a52c0abaef99aed1bf1a5fe94e is empty
    error: object file .git/objects/e2/98e448aa2473a52c0abaef99aed1bf1a5fe94e is empty
    error: object file .git/objects/e2/98e448aa2473a52c0abaef99aed1bf1a5fe94e is empty
    fatal: loose object e298e448aa2473a52c0abaef99aed1bf1a5fe94e (stored in .git/objects/e2/98e448aa2473a52c0abaef99aed1bf1a5fe94e) is corrupt

Most advice I can find relating to this error centers around re-cloning the repository - as does [this wiki's disaster recovery page](https://git-annex.branchable.com/design/assistant/disaster_recovery/)

I have 2 remotes that should have most if not all of the content of the local one, but they're on the internet and downloading all content will take a while. Are there any steps I can safely take before having to re-clone? I was unable to work out from the above page what the best steps in this particular situation are. `git fsck` also stops with the same fatal error as above.