forum/Content not present and get doesn't retrieve itgit-annexhttp://git-annex.branchable.com/forum/Content_not_present_and_get_doesn__39__t_retrieve_it/git-annexikiwiki2022-02-07T16:42:40Zcomment 1http://git-annex.branchable.com/forum/Content_not_present_and_get_doesn__39__t_retrieve_it/comment_1_55e676477623db9e26e871d7189a1a88/joey2022-02-01T17:29:18Z2022-02-01T17:28:29Z
<p>What version of git-annex are you using?</p>
<p>I suggest you run "git-annex fsck" passing it the name of the file your are
having problems with. Show what, if anything, it outputs.</p>
comment 2http://git-annex.branchable.com/forum/Content_not_present_and_get_doesn__39__t_retrieve_it/comment_2_cb404061683de3bfd5c24ce7e5ee6b82/jwrauch2022-02-02T20:48:56Z2022-02-02T20:48:56Z
<p>Hi, thanks! That was just what I was looking for. I haven't had to use that command before but it looks pretty useful. I ended up running on the entire annex and found files that needed "fixing" I wasn't even aware of. Do you recommend periodically running this just to make sure everything checks out, or should I only run it when I discover a problem?</p>
<p>For some of the files, it claims that no known copies exist and there is not .git/annex/bad directory. Is that game over for those files? (Only a handful, so not the end of the world, but would be nice to recover them.)</p>
comment 3http://git-annex.branchable.com/forum/Content_not_present_and_get_doesn__39__t_retrieve_it/comment_3_74055eed54696331af07ba1721055562/joey2022-02-07T16:42:40Z2022-02-07T16:28:49Z
<p>You should not need to fsck regularly. The question is, what happened to
make those files that git-annex thinks are present go missing. One
possible way would be if there was an actual data corruption of files on
the drive.</p>
<p><code>git-annex fsck</code> only mentions <code>.git/annex/bad/</code> when it discovers that a
file's content on disk has gotten corrupted. It then moves it to that
directory, and mentions that it has. So this makes me think your drive must
have data corruption. This is only a guess, since you unfortunately did not
paste the output, like I asked for..</p>