Please describe the problem.
I added an adb special remote (to a fresh repo) with androiddirectory=/storage/self/primary/DCIM and while importing fetches all the files from the device, they are not all added to the repo. For example, all the thumbnail files seem to be stored, but of the 9 mp4 files in DCIM/Camera fetched, only 1 is stored.
While git-annex does mention that "there was an error fetching files, rerun to resume", there is no error output anywhere I could see (e.g. with --debug). All the file fetches are shown as "OK".
Making the special remote with androiddirectory=/storage/self/primary/DCIM/Camera instead, results in the 9 files being fetched and stored as expected.
What steps will reproduce the problem?
git init android
git annex init mycomputer
git annex initremote int_dcim type=adb androiddirectory=/storage/self/primary/DCIM encryption=none exporttree=yes importtree=yes
git annex import --from int_dcim master:somedir
What version of git-annex are you using? On what operating system?
- git-annex version: 7.20190503-g4da50456a3
- Operating System: Arch Linux
Have you had any luck using git-annex before?
(in a gamedev IRC channel, discussing my use of git-annex)
> Oh, I know. it is difficult to not notice how much you fangirl over it :p
"Failed to import some files from remotename. Re-run command to resume import."
AFAICS if it displayed that, it would not go on to add any files to the remote's tracking branch. Only when it's been able to import all the files it found on the remote does a commit get made.
I have seen the adb pull of a file fail once or twice (out of several hundred imports so far), and adb did display an error message, and I assume git-annex also then said the import of that file failed.
The other way it could fail to download a file is if the content seems to have changed since file list for the import was built. In that case, there would be no error message, just "import foo failed" rather than "import foo ok"
Can you paste a transcript of the problem?
I'm facing a same issue and it persists (tried to sync a couple of times) for one of my adb remotes (DCIM on SD card, i.e. /storage/[vol_id]/DCIM and wanted expression which excludes thumbs and .emptyshow file).
I get "Failed to import some files from [remotename]. Re-run command to resume import." message and no files are imported. Same as for the reporter of the issue, I get that all the files are pulled ok.
I'm using the latest version of git annex (8.20200309-ga9d56a1ab).
I forgot to mention that I also get:
"Not updating export to [remote] to reflect changes to the tree, because export tracking is not enabled. (Set remote.[remotename].annex-tracking-branch to enable it.)"
But I have this set. Maybe I get it because there was no successful sync yet?