git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Git annex possible bug

From
RCRobert Cathles <rjc.live@gmail.com>
Date
Jan 31, 2019, 16:48 UTC
Message-ID
<CANny=+C+yj6J0P-W91kR2ehxLcT44pMOCzg=u+gpEiiCpQLaHg@mail.gmail.com>

We use git annex and found an issue where one machine that had run 'git annex sync' and 'git annex sync --content' was not reporting any issues, but any other machines were report 99 issues when running 'git annex get'.

The message for each file was that it was not known to exist on any repo. doing some searching I found 'git annex fsck' so ran that in the following fashion on the 'broken' machines: 'git annex fsck --from=LocalMirrorName --fast'. During this we saw git was updating the location log for nearly all the missing files. Running 'git annex get' afterwards resolved the issue and got the files. We found we had to repeat this on all affected machines.

The machine that did the original sync was running git 2.7.4 and other machines were either running the same, or 2.17.1.

A test I also tried: I copied one annex file from inside the .git folder of the original machine that ran the sync, and added it to the same location on a broken machine, then ran sync and get, and it reported 98 issues instead.

Does this seem like a bug with git annex? Is there a possible gap in the way that git annex reports that all is fine - perhaps to do with the index? Or does this seem to be more likely an issue we created ourselves? Would there have been any other commands we could have run to resolve this issue or should have tried out first? (Apart from just deleting each of our clones and starting again)

Robert
Next: Ævar Arnfjörð Bjarmason
Message 1 of 2 in “Git annex possible bug”
  1. Robert CathlesJan 31, 2019
  2. Ævar Arnfjörð BjarmasonJan 31, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.