summaryrefslogtreecommitdiff
path: root/doc/bugs/fsck_reports_unsolvable_problem.mdwn
blob: 56c794422939d8b408b0844ae3b68a50adbbc5f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
### Please describe the problem.

On my bare git-annex repo, `git annex fsck -q` reports:

    ** No known copies exist of SHA256E-s1212237--d2edd369f6a9005e23f022c7d797b166c66b90defc561329dbafab9a0fc0c7fc.jpg

`git log -SSA256E...` returns nothing. `git annex repair` and `git annex forget` do not fix the problem.

This means that running `fsck` from cron or a script will now always fail. There should be a way to recover from this situation.

### What steps will reproduce the problem?

According to IRC this "can happen if you annexed a file and then deleted it without ever committing to git".


### What version of git-annex are you using? On what operating system?

5.20140717 from Ubuntu utopic

[[!tag confirmed]]

> [[done]] -- fsck --all or in a bare repo will skip over keys that have
> been marked dead, which can be done with `git annex dead --key`.
> 
> Might go further later, and make `git annex drop --force`, when removing
> the last copy of a key, mark it as dead. But maybe that is too DWIM.
> --[[Joey]]