Meadville Space Center
Welcome, Guest. Please login or register.
October 30, 2020, 07:59:04 PM

Login with username, password and session length
Search:     Advanced search
Welcome to the new Meadville Space Center forums!
25068 Posts in 2094 Topics by 2266 Members
Latest Member: twa517
* Home Help Search Login Register
+  Meadville Space Center
|-+  Project Apollo - NASSP
| |-+  Project Apollo - NASSP Development (Moderators: movieman, Tschachim, Swatch, lassombra)
| | |-+  Dangling blobs on Git
« previous next »
Pages: [1] Print
Author Topic: Dangling blobs on Git  (Read 2053 times)
eddievhfan1984
Hero Member
*****
Posts: 737



View Profile
« on: May 16, 2017, 08:27:25 PM »

After doing some merges from the main 2016 build, my Git database appears to be a bit corrupt-y. Here's the results from fsck-objects:
Code:
error: .git/objects/pack/pack-9b8e56d560091888b66c1264742355b3ba886a49.pack SHA1 checksum mismatch
error: index CRC mismatch for object d38f2bed42b04c06678dabb1f260313618574db9 from .git/objects/pack/pack-9b8e56d560091888b66c1264742355b3ba886a49.pack at offset 350205790
error: inflate: data stream error (incorrect data check)
error: failed to unpack compressed delta at offset 350205797 from .git/objects/pack/pack-9b8e56d560091888b66c1264742355b3ba886a49.pack
dangling blob 2e00bbbba226f69a69c584f48ca00b7297915433
dangling blob 80001f06c6735aa3beb20d441c9fc96820091f2d
dangling blob b700d44bc6eeb6ef23491d6c99f87a3878e7a0d0
dangling blob e100beb626ee9ea1b15293416040e3aa19b80df1
dangling blob ef009e5e473b14b168e9c65bb970f3c9a3b80872
dangling blob 3801373d161c8429dbd45aabf373a61f6f3420b6
(etc.)
error: cannot unpack d38f2bed42b04c06678dabb1f260313618574db9 from .git/objects/pack/pack-9b8e56d560091888b66c1264742355b3ba886a49.pack at offset 350205790

Can I recover from this, or do I have to delete my .git folder and re-checkout my repository all over again?
Logged
indy91
Hero Member
*****
Posts: 1316


View Profile
« Reply #1 on: May 17, 2017, 03:48:57 AM »

Hmm, difficult to say if you can recover. I'm sure the Internet has some better ideas than I have. If you think you can't recover, try:

git fetch origin
git reset --hard origin/Orbiter2015
Logged
eddievhfan1984
Hero Member
*****
Posts: 737



View Profile
« Reply #2 on: May 17, 2017, 09:23:51 AM »

Well, cleaning out the objects folder and doing a fetch worked to clear the dangling blobs, but there's a hash mismatch for certain packs...
Code:
$ git fsck-objects
Checking object directories: 100% (256/256), done.
error: .git/objects/pack/pack-304d0344a70a6ce76d57e757cc05b6aed3d81e49.pack SHA1 checksum mismatch
error: index CRC mismatch for object 4e27a1ae2ead74051539a117efe2d5d9467bbf3f from .git/objects/pack/pack-304d0344a70a6ce76d57e757cc05b6aed3d81e49.pack at offset 76117779
error: inflate: data stream error (incorrect data check)
error: cannot unpack 4e27a1ae2ead74051539a117efe2d5d9467bbf3f from .git/objects/pack/pack-304d0344a70a6ce76d57e757cc05b6aed3d81e49.pack at offset 76117779
Checking objects: 100% (28954/28954), done.
« Last Edit: May 17, 2017, 09:29:35 AM by eddievhfan1984 » Logged
dseagrav
Project Admin
Hero Member
*****
Posts: 1118


View Profile
« Reply #3 on: May 17, 2017, 02:14:20 PM »

Check your Windows system logs (see Event Viewer) for messages about disk errors. You may be looking at a disk failure in progress. Once you start seeing corruption it usually starts spreading fast.
Logged
eddievhfan1984
Hero Member
*****
Posts: 737



View Profile
« Reply #4 on: May 17, 2017, 06:18:17 PM »

Clean for disk errors.
Logged
rcflyinghokie
Hero Member
*****
Posts: 580


View Profile Email
« Reply #5 on: May 17, 2017, 09:20:23 PM »

Disk repair can help, also there is a free program called crystal disk info that can give you a drive overview and will read things such as the SMART status to warn of pending drive failure.  It saved me from an SSD failure a few years back.

http://crystalmark.info/?lang=en

EDIT: Link
« Last Edit: May 17, 2017, 09:24:12 PM by rcflyinghokie » Logged
eddievhfan1984
Hero Member
*****
Posts: 737



View Profile
« Reply #6 on: May 17, 2017, 09:53:15 PM »

SMART data indicates no problems.

(In any case, my Orbiter stuff is on a platter drive and my SSDs are RAID 1 anyways. Wink)
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!