You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Kenneth Jensen <xm...@gmail.com> on 2005/05/04 17:52:18 UTC
Checksum mismatch in repo: how to fix?
Hello,
I have been committing my masters thesis to a partially corrupt
repository for a few days now, only just discovering it today. :(
When I try to checkout or update i get the message:
svn: Checksum mismatch on rep '3h':
expected: 241309c1a14a94940f57af83d76038d8
actual: c6838e324679044d56ac1217df9036ec
But if I run verify or dump I get this:
* Verified revision 0.
svn: Checksum mismatch on rep '0':
expected: 5bbf6a265ebefcae6fd4da35458fefcf
actual: 7a118105e6c365008af862a184214cfe
I asked the almighty Google, and tried some of its recommendations.
Thus running a svnadmin recover on the repository gives this:
Repository lock acquired.
Please wait; recovering the repository may take some time...
Recovery completed.
The latest repos revision is 116.
This looks fine, except it doesn't change much.
When I committed my changes yesterday, I didn't get error messages,
and the revision bumped 1 up, as expected. Although the svn status did
show a few !-marks...
I have a cron job that takes a full dump of the repo every night (only
a few MB's), and I can see that the last successful dump was the 26.
of april, and the rest of the dumps are only few bytes long. This
kinda sucks, since the thesis is due in less than a month - don't
really need to learn too much about versioning tools right now. :-)
Does anybody have hints to how I restore the sanity in my repo? Or
should I just throw it out, load the last backup and commit my local
changes? I won't miss any work, but lose the history of the last week
or so.
Thanks.
---
Cheers,
Kenneth
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Checksum mismatch in repo: how to fix?
Posted by Kenneth Jensen <xm...@gmail.com>.
On 5/5/05, Kenneth Jensen <xm...@gmail.com> wrote:
>
> I guess I'll load the backup at revision 110, and try and commit my
> local copy into that... I don't have enough time to spend fixing the
> borked repo right now. :-)
OK, next question...
Now my working copy thinks it is at revision 116, while the repository
is "rolled back" to revision 110. So now, an "svn status
--show-updates" says "ERRRR! No such revision as 116".
Is there a smoother way of merging the two, other than check-out the
newly restored repo at rev 110, copy the files from the working copy
at rev 116 to the corresponding places in the new working copy, and
then committing?
---
Cheers,
Kenneth
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Checksum mismatch in repo: how to fix?
Posted by Kenneth Jensen <xm...@gmail.com>.
On 5/4/05, Max Bowsher <ma...@ukf.net> wrote:
> Kenneth Jensen wrote:
> > Hello,
> >
> > I have been committing my masters thesis to a partially corrupt
> > repository for a few days now, only just discovering it today. :(
<snip>
> > Does anybody have hints to how I restore the sanity in my repo? Or
> > should I just throw it out, load the last backup and commit my local
> > changes? I won't miss any work, but lose the history of the last week
> > or so.
>
> I suggest finding the highest revision number in your last good dump, then
> trying:
>
> svnadmin dump --incremental -r <that-revnum-plus-1>:head myrepos >
> myextradump
>
> If that works, you can then load your backup, and myextradump, one after
> the other into a new repository.
Thanks for the suggestion.
My repo is at revision 116, and the highest revision in the latest
"working" dump is 110. I tried dumping rev 110:111 but it failed. As
did 109:110, and almost any of the other combos I tried. Stangely,
dumping incrementally from 95:96 works, though 94:95 fails, just like
96:97 - even dumping from revision 1:2 fails...
The errors thrown are these (in random order):
svn: Invalid diff stream: insn 0 cannot be decoded
svn: Invalid diff stream: insn 0 overflows the target view
svn: Unexpected end of svndiff input
I guess I'll load the backup at revision 110, and try and commit my
local copy into that... I don't have enough time to spend fixing the
borked repo right now. :-)
The repository has survived upgrading the server OS from Mandrake 9.2
to 10.1, including the trouble with changing from the old subversion
RPMs from Ben Resers urpmi-site to the new included-with-Mandrake
subversion packages, and also upgrading the Berkeley DB libs from v.
4.1 to 4.2, so I guess it was bound to go wrong at some point. ;-)
Thanks again.
---
Cheers,
Kenneth
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Checksum mismatch in repo: how to fix?
Posted by Max Bowsher <ma...@ukf.net>.
Kenneth Jensen wrote:
> Hello,
>
> I have been committing my masters thesis to a partially corrupt
> repository for a few days now, only just discovering it today. :(
>
> When I try to checkout or update i get the message:
>
> svn: Checksum mismatch on rep '3h':
> expected: 241309c1a14a94940f57af83d76038d8
> actual: c6838e324679044d56ac1217df9036ec
>
> But if I run verify or dump I get this:
>
> * Verified revision 0.
> svn: Checksum mismatch on rep '0':
> expected: 5bbf6a265ebefcae6fd4da35458fefcf
> actual: 7a118105e6c365008af862a184214cfe
>
> I asked the almighty Google, and tried some of its recommendations.
> Thus running a svnadmin recover on the repository gives this:
>
> Repository lock acquired.
> Please wait; recovering the repository may take some time...
>
> Recovery completed.
> The latest repos revision is 116.
>
> This looks fine, except it doesn't change much.
> When I committed my changes yesterday, I didn't get error messages,
> and the revision bumped 1 up, as expected. Although the svn status did
> show a few !-marks...
>
> I have a cron job that takes a full dump of the repo every night (only
> a few MB's), and I can see that the last successful dump was the 26.
> of april, and the rest of the dumps are only few bytes long. This
> kinda sucks, since the thesis is due in less than a month - don't
> really need to learn too much about versioning tools right now. :-)
>
> Does anybody have hints to how I restore the sanity in my repo? Or
> should I just throw it out, load the last backup and commit my local
> changes? I won't miss any work, but lose the history of the last week
> or so.
I suggest finding the highest revision number in your last good dump, then
trying:
svnadmin dump --incremental -r <that-revnum-plus-1>:head myrepos >
myextradump
If that works, you can then load your backup, and myextradump, one after
the other into a new repository.
Max.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org