I'm new to git annex, but I couldn't find any other posts describing this error. I just set up repositories on two external 1TB, NTFS formatted hard drives and I'm working on a windows 10 os. I followed the walkthrough, setting the repository up on one drive, then cloning it on the other, and now I'm syncing the content (I first sync then get, but the problem occurs when I use the --content flag on sync as well). After a few files are successfully transferred, the process stalls part way through a file saying an "scp error writing 'file': Permission denied"??? Git annex and git processes don't end and I need to forcefully close the terminal and unplug and replug the drive back in before I can resume. I don't know if it is something with using git annex on Windows(I was automatically put on an adjusted branch, which I don't fully understand), or the NTFS drives, or maybe the hard drive is failing. Any advice people can give would be appreciated as this issue is persistent enough (every ~3 files) that it is making git annex unusable.
Hi, What version of git-annex are you using (Output of
git annex version
)? And since you are on windows, did you follow the install instructions here or are you using wsl or something else? Finally, can you run the failing command with--debug
and post the output here?I ran the get command with the debug flag and the output is pretty extensive. It successfully transferred two files before it failed, so I'm posting from the 'ok' of the last success. Here is the command and output:
$ git annex get . --debug ... ok get recorder/2020-philippines/20200906_165152.mp4 (from avi...) [2021-02-19 11:11:22.1489056] call: cp ["--reflink=auto","--preserve=timestamps","E:\video\.git\annex\objects\d88\080\SHA256E-s493726419--95dd6a377dce064935ab2e8c0dda2f3c4d9d2b33e0efaca34fceda200cbee249.mp4\SHA256E-s493726419--95dd6a377dce064935ab2e8c0dda2f3c4d9d2b33e0efaca34fceda200cbee249.mp4",".git\annex\tmp\SHA256E-s493726419--95dd6a377dce064935ab2e8c0dda2f3c4d9d2b33e0efaca34fceda200cbee249.mp4"] 10% 46.12 MiB 87 MiB/s 4scp: error writing '.git\annex\tmp\SHA256E-s493726419--95dd6a377dce064935ab2e8c0dda2f3c4d9d2b33e0efaca34fceda200cbee249.mp4': Permission denied
Sorry, formatting: