summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-03-28 08:41:23 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-03-28 08:41:23 -0400
commit02601c6b9f2129e80323abea5ad76bf64c27b574 (patch)
treedea1654cd2e4574c746649997b9767ff012f295f
parent61063dee6cc50652b393979358142f246894de58 (diff)
analysis; workaround
-rw-r--r--doc/bugs/backend_version_upgrade_leaves_repo_unusable.mdwn26
1 files changed, 25 insertions, 1 deletions
diff --git a/doc/bugs/backend_version_upgrade_leaves_repo_unusable.mdwn b/doc/bugs/backend_version_upgrade_leaves_repo_unusable.mdwn
index 1218b0e51..964a176bd 100644
--- a/doc/bugs/backend_version_upgrade_leaves_repo_unusable.mdwn
+++ b/doc/bugs/backend_version_upgrade_leaves_repo_unusable.mdwn
@@ -1,6 +1,10 @@
foo is a local repo, bar is a bare remote.
-I upgraded foo's git-annex to 0.20110325 and upgraded a local repo backend to version 2. I then ran `git annex copy . --to bar` and checked the remote. This created WORM:SHA512--123123 files in annex/objects. Understandable but unwanted. So I upgraded git-annex on bar's machine, as well.
+I upgraded foo's git-annex to 0.20110325 and upgraded a local repo backend
+to version 2. I then ran `git annex copy . --to bar` and checked the
+remote. This created WORM:SHA512--123123 files in annex/objects.
+Understandable but unwanted. So I upgraded git-annex on bar's machine, as
+well.
% git annex copy . --to bar
copy quux (checking bar) git-annex-shell: Repository version 1 is not supported. Upgrade this repository: git-annex upgrade (to bar)
@@ -33,3 +37,23 @@ Running the copy job again, I am still getting the same error as above (as expec
> joey@kitenet.net if you don't want to post them here. --[[Joey]]
>> Sent. -- RichiH
+
+>>> Ok, I'm going to go work on my reading comprehension. I see now
+>>> that you
+>>> explained the problem pretty well. The problem is caused by these
+>>> few weird v1 mixed with v2 keys in the annex.
+>>> Ones like "annex/objects/WORM:SHA512--$sha512".
+>>>
+>>> That's a v1 key, but a corrupt form of the key; it's missing the
+>>> size and mtime fields that all WORM keys have in v1. And
+>>> the filename is itself a key, a v2 SHA512 key. My guess at what
+>>> happened is that these were created when you did the `git annex copy`
+>>> to the v1 bare repo.
+>>>
+>>> So, assuming none of these are the only copy of your data
+>>> (which you should check), the best thing to do is delete those
+>>> keys, and re-run the copy now that it's upgraded. Not sure
+>>> it even makes sense to fix the crash. I should probably focus
+>>> on fixing what let these mixed keys be created by the mixed-version
+>>> copy.
+>>> --[[Joey]]