[SGVLUG] A command I hope you *never* have to run
Matthew Campbell via SGVLUG
sgvlug at sgvlug.net
Tue Mar 26 21:47:28 PDT 2019
matt at rocket:202% git clone githost:/Data/git/wikidbs
Cloning into 'wikidbs'...
error: object file ./objects/d3/3fdfb4c993cccc51e2c13f8da9e11a640a50a5 is
empty
error: unable to find d33fdfb4c993cccc51e2c13f8da9e11a640a50a5
error: object file ./objects/d3/3fdfb4c993cccc51e2c13f8da9e11a640a50a5 is
empty
error: unable to find d33fdfb4c993cccc51e2c13f8da9e11a640a50a5
error: object file ./objects/d3/3fdfb4c993cccc51e2c13f8da9e11a640a50a5 is
empty
fatal: loose object d33fdfb4c993cccc51e2c13f8da9e11a640a50a5 (stored in
./objects/d3/3fdfb4c993cccc51e2c13f8da9e11a640a50a5) is corrupt
fatal: The remote end hung up unexpectedly
matt at rocket:203% ssh githost
matt at githost:1% cd /Data/git/wikidbs
matt at githost:2% cp -R . `pwd`.corrupt
matt at githost:3% git fsck --full
error: object file ./objects/7a/b8ef6e1ed699731b7915d8547b411628e93a0e is
empty
error: unable to mmap ./objects/7a/b8ef6e1ed699731b7915d8547b411628e93a0e:
No such file or directory
error: 7ab8ef6e1ed699731b7915d8547b411628e93a0e: object corrupt or missing:
./objects/7a/b8ef6e1ed699731b7915d8547b411628e93a0e
error: object file ./objects/d3/3fdfb4c993cccc51e2c13f8da9e11a640a50a5 is
empty
error: unable to mmap ./objects/d3/3fdfb4c993cccc51e2c13f8da9e11a640a50a5:
No such file or directory
error: d33fdfb4c993cccc51e2c13f8da9e11a640a50a5: object corrupt or missing:
./objects/d3/3fdfb4c993cccc51e2c13f8da9e11a640a50a5
error: object file ./objects/db/dc3f1387e9d130fa9f6a9b565ba93ac025c80b is
empty
error: unable to mmap ./objects/db/dc3f1387e9d130fa9f6a9b565ba93ac025c80b:
No such file or directory
error: dbdc3f1387e9d130fa9f6a9b565ba93ac025c80b: object corrupt or missing:
./objects/db/dc3f1387e9d130fa9f6a9b565ba93ac025c80b
Checking object directories: 100% (256/256), done.
Checking objects: 100% (89181/89181), done.
error: object file ./objects/d3/3fdfb4c993cccc51e2c13f8da9e11a640a50a5 is
empty
error: object file ./objects/d3/3fdfb4c993cccc51e2c13f8da9e11a640a50a5 is
empty
fatal: loose object d33fdfb4c993cccc51e2c13f8da9e11a640a50a5 (stored in
./objects/d3/3fdfb4c993cccc51e2c13f8da9e11a640a50a5) is corrupt
205.409u 25.446s 3:53.95 98.6% 0+0k 0+0io 113550pf+0w
matt at githost:4% sudo cross_fingers --force --quiet \
>> # --quiet included as I do not want to know what actually happens here
command failed
As the master repo was corrupted as well as the local copy the solution was
to fix the local copy, create a new bare repo and push the cleaned local
copy to the new master. Once done we cloned the master and compared to the
cleaned local copy to validate we got a good new master repo.
https://stackoverflow.com/questions/11706215/how-to-fix-git-error-object-file-is-empty
Big public thank you to Michael Starch for the pointer to this site and to
double check the recovery.
Matt
---------
Matthew Campbell
Architect Lead, Office of the CTO
Kaiser Permanente
Green Center 041R08
99 S. Oakland
Pasadena, CA 91101
626-564-7228 (office)
8-338-7228 (tie-line)
626-460-9781 (mobile)
---------
kp.org/thrive
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sgvlug.net/pipermail/sgvlug/attachments/20190326/14c62ba2/attachment.html>
More information about the SGVLUG
mailing list