Please describe the problem.
git annex move --unused
is not moving some of the files git annex unused
reports:
Calibre Library % git annex unused
unused . (checking for unused data...) (checking master...) (checking refs/annex/last-index...)
Some annexed data is no longer used by any files:
NUMBER KEY
1 SHA256E-s182401--1c42279d1ea477f2a1831a3f7543481e7d5c72cbbeffdd0442918253b4f3ecc9.jpg
2 SHA256E-s127374--17bfedf7453382df04a58d9c508d82285970148e49a84c488a728f7f770d8cc3.jpg
[...]
56 SHA256E-s427315--3617fae344fb4fbc825963ee0ddfc5a31f1000c8d1c61ce3955bc16ae625e207.epub
(To see where this data was previously used, run: git annex whereused --historical --unused
To remove unwanted data: git-annex dropunused NUMBER
ok
Calibre Library % git annex move --unused -t bims
Calibre Library %
Is there anything that explains this behavior?
What steps will reproduce the problem?
I am not sure how to reproduce this in another repo.
What version of git-annex are you using? On what operating system?
git-annex version: 8.20210803
Have you had any luck using git-annex before? (Sometimes we get tired of reading bug reports all day and a lil' positive end note does wonders)
Sure, I use it every day for various tasks! Great software!
(checking refs/annex/last-index...)
anymore.I have not been able to reproduce this, it works for me.
You did say it's not moving "some files" which suggests maybe it is moving other ones? Do you see it move any unused files at all?
Do other commands that use the same --unused option work? Eg, does
git annex whereis --unused
list them?The only way I can reproduce this behavior is if the remote has the same uuid as the current repository. Then any move is a no-op and it avoids operating on the files at all, the same as your output shows. So it seems possible that could be your real problem.
It's moving most of it, just not all of them!
git annex whereis --unused
lists the files.git annex copy --unused -t bims
OTOH does not do anything. I also triedgit annex drop --unused --in=bims
in an attempt to emulategit annex move --unused -t bims
, but this also does not do anything.I don't think that's the issue: If you look above,
here
andbims
have different UUIDs. (I also notice the files are already on thebims
remote.)Well it's not surprising that
git annex copy -t bims
does nothing when the files are in the remote. Although it would normally display each unused key and just say "ok" when it verifies that the remote has the content.But move and drop doing nothing while whereis does is strange. It must not be a problem with getting the list of unused keys, since whereis works.
You showed
git annex move
not displaying any output, which is what's really weird. Doesgit annex drop --unused --in bims
display any output? What aboutgit annex copy -t bims
?