datalad-handbook / book

Sources for the DataLad handbook
http://handbook.datalad.org
Other
147 stars 55 forks source link

[BUG] Datalad on WSL 2 - "datalad save" not always working #819

Closed jhpb7 closed 2 years ago

jhpb7 commented 2 years ago

Current behavior

I’m currently working my way through the handbook and while most of it works, there is one error occurring. When trying to save the books (pdfs in folder books) in section 1.2, using datalad save -m "add books on Python and Unix to read later"

the following error occurs: add(ok): somedataset (file) add(ok): .gitmodules (file)

[ERROR ] git-annex: .git/annex/othertmp/TLCL.pdf.0/TLCL.pdf: rename: permission denied (Permission denied) [add(/mnt/c/Users/++USERNAME++/Documents/datalab/test/DataLad-101/books/TLCL.pdf)] add(error): books/TLCL.pdf (file) [git-annex: .git/annex/othertmp/TLCL.pdf.0/TLCL.pdf: rename: permission denied (Permission denied)] [ERROR ] git-annex: .git/annex/othertmp/byte-of-python.pdf.0/byte-of-python.pdf: rename: permission denied (Permission denied) [add(/mnt/c/Users/++USERNAME++/Documents/datalab/test/DataLad-101/books/byte-of-python.pdf)] add(error): books/byte-of-python.pdf (file) [git-annex: .git/annex/othertmp/byte-of-python.pdf.0/byte-of-python.pdf: rename: permission denied (Permission denied)] save(ok): . (dataset) action summary: add (error: 2, ok: 2) save (ok: 1)

After that everything works fine until at section 5.3, I tried to use the “write your own procedures” and then again saving the python code yields this permission denied error. Between all this, saving (e.g. to the notes.txt) works fine.

Operating system

DataLad information

WTF

configuration <SENSITIVE, report disabled by configuration>

datalad

Browser

No response

Additional context

welcome[bot] commented 2 years ago

Welcome Banner (Image: CC-BY license, The Turing Way Community, & Scriberia. Zenodo. http://doi.org/10.5281/zenodo.3332808) Hi there, and welcome to the DataLad Handbook! :orange_book: :wave: Thank you for filing an issue. We're excited to have your input and welcome your idea! :blush: If you haven't done so already, please make sure you check out our Code of Conduct.

adswa commented 2 years ago

Hi @jhpb7 , thanks for the detailed report! I can't help much right away, I'm on vacation with limited internet access. There are two things I recommend doing: Can you update datalad and git-annex and check if the problem persists? Both of your versions are more 2 years old, and more recent versions have seen improvements that may at least produce more informative errors. Try to get versions along the lines of datalad 0.15.x and git-annex 10.xxx. If this doesn't help, could you open an issue in github.com/datalad/datalad and link your report?

jhpb7 commented 2 years ago

Hi @adswa, thanks for your quick reply! I updated to datalad 0.15.x but was not able to find a proper git-annex version > 8.20. However, you were right about a more insightful message. I reported an issue here. I would keep the issue open here until it is fixed, ok? Thank you + have a nice vacation :)

jhpb7 commented 2 years ago

Issue is closed due to a workaround posted here.