How to clean out a missing object?

9 views
Skip to first unread message

Frost

unread,
May 1, 2022, 6:21:40 AM5/1/22
to bup-...@googlegroups.com
When I try to run 'bup gc', it stops with this a short way in:

found 16491663 objects
bup: missing object '5d12a3253ec83bdcad51c360947a8aa896175651'

I don't really mind that there's a missing object, I'm about to run another backup anyway so it can just pull the latest version from the filesystem. But I'm not sure how to remove it so bup can get on with cleaning up. How do you do that?

(Not sure whether a backup would fail with the same error; we're out of disk space on the backup volume so can't really check.)

-- Frost


Rob Browning

unread,
May 2, 2022, 9:07:06 PM5/2/22
to Frost, bup-...@googlegroups.com
"'Frost' via bup-list" <bup-...@googlegroups.com> writes:

> I don't really mind that there's a missing object, I'm about to run
> another backup anyway so it can just pull the latest version from the
> filesystem. But I'm not sure how to remove it so bup can get on with
> cleaning up. How do you do that?
>
> (Not sure whether a backup would fail with the same error; we're out
> of disk space on the backup volume so can't really check.)

Hmm, so that shouldn't be possible. Or rather, if bup's the only thing
that's been messing with the repo, then that probably indicates a bug
somewhere (if someone manually deleted a packfile on the other hand,
that could explain it).

And how serious this is depends on what that object refers to, which we
can probably find out (i.e. maybe via bup gc "-v" or "-vv". In any
case, first I'd recomment that you treat that repo with suspicion and
make sure you have (or make) other copies of any really important data
until we resolve the problem.

You could also try some a restore (or restores) to see if you can find
one that doesn't need the missing object, and if so, then it should be
possible to eventually drop the broken ones one way or another.

If you don't have enough space, and if it's not too expensive (depends
on the save sizes vs your IO bandwidth), one way to test a restore
without actually restoring might be to use "bup join
SOME_SAVE_REF_OR_HASH > /dev/null" and wait.

Oh, and what version of bup are you running, and what filesystem type
hosts the repo?

Thanks
--
Rob Browning
rlb @defaultvalue.org and @debian.org
GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4
Reply all
Reply to author
Forward
0 new messages