darcs

Issue 1038 Hash failure

Title Hash failure
Priority bug Status given-up
Milestone 2.5.2 Resolved in
Superseder Nosy List darcs-devel, dmitry.kurochkin, kowey, thorkilnaur, zooko
Assigned To
Topics

Created on 2008-08-27.20:12:18 by zooko, last changed 2017-07-31.00:29:28 by gh.

Messages
msg5738 (view) Author: zooko Date: 2008-08-27.20:12:16
darcs-2.0.2:
https://dev.allmydata.com/buildbot-tahoe/builders/hardy/builds/166/steps/darcs-exact-version/logs/stdio

Got a bunch of hash failures:

Copying pristine 4/32 : 10.5
Hash failure in /home/buildslave/slave-hardy-tahoe/hardy/build of hash
0000000097-465bacceb452aeb0dc9ef84894a9859149fddb388e94cca5c546634a70708fa8
Copying pristine 6/34 : _fusemodule.so
Hash failure in /home/buildslave/slave-hardy-tahoe/hardy/build of hash
0000000097-8196e5fcfee3c7a88b6dc5c8f78fa6eacc384e1cebe87c359bbf09eb5335b812

etc. etc.

Here is the full log:

https://dev.allmydata.com/buildbot-tahoe/builders/hardy/builds/166/steps/darcs/logs/stdio
msg5739 (view) Author: kowey Date: 2008-08-27.20:19:35
Hi Zooko, That's another link that needs a password.
msg5742 (view) Author: zooko Date: 2008-08-27.20:58:21
Argh.  Sorry about that.  

darcs exact version log:
http://allmydata.org/buildbot/builders/hardy/builds/166/steps/darcs-exact-version/logs/stdio

darcs get log:

http://allmydata.org/buildbot/builders/hardy/builds/166/steps/darcs/logs/stdio
msg5743 (view) Author: kowey Date: 2008-08-27.21:38:41
I seem to remember this having been fixed in unstable (something to do with
fetching patches).  Could you try with a relatively fresh darcs?
msg5744 (view) Author: zooko Date: 2008-08-27.22:17:14
Okay with a newer version of darcs this doesn't happen:

exact-version:
http://allmydata.org/buildbot/builders/hardy/builds/169/steps/darcs-exact-version/logs/stdio

darcs get:
http://allmydata.org/buildbot/builders/hardy/builds/169/steps/darcs/logs/stdio
msg5745 (view) Author: kowey Date: 2008-08-27.22:33:01
Thanks!
msg14783 (view) Author: zooko Date: 2011-10-26.15:51:03
I just reproduced this bug with darcs-2.5.2. I also think I showed that
this bug was triggered by running "darcs optimize" on the server.

I ran a command to "darcs get" (with darcs-2.5.2) a series of closely
related repos over HTTP, and they all succeeded with two warning
messages. I didn't notice the warning messages at the time and only
found them when I reviewed my logs later while writing this bug report.
Those two warnings were:

Hash failure in
/home/source/.darcs/cache/patches/0000011594-d4086ca5795e193c8b7af6bb78970649352d7194270ceeea1933f8b085dd6647
Hash failure in
/home/source/.darcs/cache/patches/0000007091-271f31fa95af13520c6693e24d2fc06ac85ef35f2f10f1028fc35e7f805de5cb


Then I went onto the server and ran this command on all of them,
including on /home/source/darcs/tahoe-lafs/trunk itself:

darcs optimize --reorder-patches
--sibling=/home/source/darcs/tahoe-lafs/trunk --relink  --pristine
--compress

(That's darcs-2.5.0 on the server.)

The command succeeded on each one with no warnings.

Then I went back to the client, did "/bin/rm -rf ~/.darcs" and ran the
exact same series of "darcs gets". This time I got a ton of these
warning messages! Here is a small sample:

Hash failure in
/home/source/.darcs/cache/patches/0000007737-1dce57015e8f61a5bb71c51481fb8ef2b0fe1c0907007453038749fe9447fbaa
Hash failure in
http://old.tahoe-lafs.org/source/tahoe-lafs/sftp/_darcs/patches/0000007737-1dce57015e8f61a5bb71c51481fb8ef2b0fe1c0907007453038749fe9447fbaa

darcs failed:  Couldn't fetch
`0000007737-1dce57015e8f61a5bb71c51481fb8ef2b0fe1c0907007453038749fe9447fbaa'
in subdir patches from sources:

thisrepo:/home/source/darcs/tahoe-lafs/incoming-second-try/sftp
cache:/home/source/.darcs/cache
repo:http://old.tahoe-lafs.org/source/tahoe-lafs/sftp

darcs:
/home/source/.darcs/cache/patches/0000003216-f9fe7c2cbc084e594f176ffbb8829c11b21b58b6072eb7ea1fe3a47fe001d29f-new_ca4808abb334647c865edc1cbd3f31e3:
getSymbolicLinkStatus: does not exist (No such file or directory)
Hash failure in
/home/source/.darcs/cache/patches/0000000436-9e1046d7a4c9d75c981de19258187dedb1044c4a0d7b220b1f68ad9265c737a5


Having seen these scary warnings (and by the way I'm in the process of
moving our canonical darcs repos for the Tahoe-LAFS project to a new
server, so these warnings are quite a concern), I went back and ran
"darcs check --complete" on all the repos on the server. They all
reported that the repository was consistent. I ran darcs checks on the
client on all of the repositories that I had fetched in the first pass
(the pass that included only two warning messages) -- all consistent.
Then I ran darcs checks on the client on all of the repositories that I
had fetched in the second pass (the pass that included zillions of
warning messages) -- all consistent.

So what should I do now ?
History
Date User Action Args
2008-08-27 20:12:18zookocreate
2008-08-27 20:19:37koweysetstatus: unread -> unknown
messages: + msg5739
2008-08-27 20:58:23zookosetmessages: + msg5742
2008-08-27 21:38:43koweysetmessages: + msg5743
2008-08-27 22:17:16zookosetmessages: + msg5744
2008-08-27 22:33:05koweysetstatus: unknown -> resolved-in-unstable
topic: + Target-2.1
messages: + msg5745
2009-04-22 03:33:10twbsetstatus: resolved-in-unstable -> resolved
nosy: + dmitry.kurochkin, simon, thorkilnaur
2009-08-10 23:44:02adminsetnosy: - dagit
2009-08-25 17:44:26adminsetnosy: + darcs-devel, - simon
2009-08-27 14:18:54adminsetnosy: kowey, darcs-devel, zooko, thorkilnaur, dmitry.kurochkin
2010-06-15 21:48:11adminsetmilestone: 2.1.x
2010-06-15 21:48:11adminsettopic: - Target-2.1
2011-10-26 15:51:05zookosetstatus: resolved -> unknown
messages: + msg14783
milestone: 2.1.x -> 2.5.2
2017-07-31 00:29:28ghsetstatus: unknown -> given-up