I am using the git annex assistant between two linux machines. Sometimes, it seems to "lose" a file, having a dangling symlink of it. Fsck shows that there are no known copies of the file in the repositories, but if I do a search in .git/annex/objects, I'm able to find the file.
I'm using git annex 6.20160923+gitgd1dabb3-1~ndall+1 and direct mode repositories thanks to the assistant.
Any advice would be highly appreciated. Right now, I can't get it to consistently do this behavior, but any help would be appreciated, including what I should post, look for, etc. for more troubleshooting.
Thanks again, Ryan
You say you can find the file in .git/annex/objects. Have you tried running
git annex fsck
on the file? If it can also find the file there, it should fix the working tree up to have a copy of it.Direct mode is known to have the odd bug in this area.
I did try running fsck, which gave a message about not being able to find the file.
That's too bad that there are these types of bugs in direct mode. I find it really nice to be able to just throw all my stuff in the git annex and not worry about the state and have it synced everywhere.
Thanks again for making such a wonderful tool and helping me troubleshoot.
If fsck couldn't find the file, but you could, that begs the question: What was the filename of the file that you found?
Something like SHA256E-s146706--ee3814f2a8c017d1a8c2af39124f107a8a663ed00a13757f6e328bd652ecba1b.txt in /.git/annex/objects/...
I didn't take very good notes, but it seemed to have the same filename as everything else. I was able to find it by doing an ag (grep) search for a string I knew was in the file.