datalad / datalad-deprecated

DataLad extension for functionality that has been phased out of the core package
Other
0 stars 3 forks source link

publish should run post-update hook if published anything for subdatasets #43

Open yarikoptic opened 5 years ago

yarikoptic commented 5 years ago

If publish only uploaded sub-datasets (with data or not) we need to run post-update hook (if web UI is installed) so it could update "web metadata" to reflect sizes etc

related was (and fixed): https://github.com/datalad/datalad/issues/1658 - to run the hook if just publishing the data

ted-strauss-K1 commented 5 years ago

Is there another way to force the run of post-update hook, in this circumstance?

yarikoptic commented 5 years ago

The only workaround is to login to the remote host and run the hook manually. Did you hit the same problem I guess @tedstrauss ?

ted-strauss-K1 commented 5 years ago

Ya we're testing something out that extracts no metadata, and the web UI shows this:

ERROR: Could not find any metadata directory. Sorry. Most probably cause is that 'publish' didn't run the post-update hook

yarikoptic commented 5 years ago

hm, I received notification of the post , but no comment is any longer posted here. So -- if you ran ./post-update from under the hooks and "it didn't help" - check out the logs it created in that repo in files .git/datalad/logs/datalad-publish-hook-201* - they might tell what went wrong

paiva commented 5 years ago

Hi, I took down the post because when I checked the logs I found out that my git-annex version was not updated. Upgrading it fixed the issue. Thanks!

paiva commented 5 years ago

Actually, it solved part of the issue, the new error says

[ERROR] 'Tree' object has no attribute '_name' [base.py:iter_items:1193] (AttributeError)
E: no datalad found - skipping generation of indexes for web frontend
fatal: Needed a single revision

Basically, I am unable to run the datalad ls -a --json file . command. Any ideas as to why this could be happening? The frontend looks like this:

screencapture-datalad-conp-io-2019-03-06-22_57_14

It could also be related to this: https://github.com/rtfd/readthedocs.org/issues/4371, maybe I am missing something related to the git submodule?

Thank you so much

yarikoptic commented 5 years ago

could you share output of git status in that repo? is it on a branch and if everything "kosher"

yarikoptic commented 5 years ago

indeed might relate to submodules - please verify that you have them consistent as well (all listed in .gitmodules are installed etc)

paiva commented 5 years ago

Hi! Thanks for your quick reply. Highly appreciated it!

Here is the output for git status and git branch:

long output of git status ```shell root@datalad:/var/www/html# ls -la total 64 drwxr-xr-x 13 root root 4096 Mar 7 03:47 . drwxr-xr-x 3 root root 4096 Mar 4 02:12 .. drwxrwxr-x 2 root root 4096 Mar 6 20:20 .datalad drwxr-xr-x 10 root root 4096 Mar 7 03:51 .git -rw-rw-r-- 1 root root 55 Mar 6 20:20 .gitattributes -rw-rw-r-- 1 root root 520 Mar 6 20:20 .gitmodules drwxrwxr-x 4 root root 4096 Mar 7 03:50 397552 drwxrwxr-x 4 root root 4096 Mar 7 03:50 421863 drwxrwxr-x 4 root root 4096 Mar 7 03:50 435668 drwxrwxr-x 4 root root 4096 Mar 7 03:50 623541 drwxrwxr-x 4 root root 4096 Mar 7 03:49 698527 drwxrwxr-x 4 root root 4096 Mar 7 03:49 833826 drwxrwxr-x 4 root root 4096 Mar 7 03:49 963271 drwxrwxr-x 4 root root 4096 Mar 7 03:49 992086 drwxrwxr-x 4 root root 4096 Mar 7 03:48 999876 -rw-r--r-- 1 root root 1953 Mar 7 03:44 index.html root@datalad:/var/www/html# git status On branch master Changes not staged for commit: (use "git add/rm ..." to update what will be committed) (use "git checkout -- ..." to discard changes in working directory) deleted: 964522/.datalad/.gitattributes deleted: 964522/.datalad/config deleted: 964522/.gitattributes deleted: 964522/PH1_20081029/mri/native/phantom_964522_PH1_20081029_t1w_001.mnc deleted: 964522/PH1_20081029/mri/native/phantom_964522_PH1_20081029_t1w_001.nii deleted: 964522/PH1_20081029/mri/native/phantom_964522_PH1_20081029_t2w_001.mnc deleted: 964522/PH1_20081029/mri/native/phantom_964522_PH1_20081029_t2w_001.nii deleted: 964522/PH1_20090121/mri/native/phantom_964522_PH1_20090121_t1w_001.mnc deleted: 964522/PH1_20090121/mri/native/phantom_964522_PH1_20090121_t1w_001.nii deleted: 964522/PH1_20090121/mri/native/phantom_964522_PH1_20090121_t2w_001.mnc deleted: 964522/PH1_20090121/mri/native/phantom_964522_PH1_20090121_t2w_001.nii deleted: 964522/PH1_20090406/mri/native/phantom_964522_PH1_20090406_t1w_001.mnc deleted: 964522/PH1_20090406/mri/native/phantom_964522_PH1_20090406_t1w_001.nii deleted: 964522/PH1_20090406/mri/native/phantom_964522_PH1_20090406_t1w_002.mnc deleted: 964522/PH1_20090406/mri/native/phantom_964522_PH1_20090406_t1w_002.nii deleted: 964522/PH1_20090406/mri/native/phantom_964522_PH1_20090406_t2w_001.mnc deleted: 964522/PH1_20090406/mri/native/phantom_964522_PH1_20090406_t2w_001.nii deleted: 964522/PH1_20090406/mri/native/phantom_964522_PH1_20090406_t2w_002.mnc deleted: 964522/PH1_20090406/mri/native/phantom_964522_PH1_20090406_t2w_002.nii deleted: 964522/PH1_20090506/mri/native/phantom_964522_PH1_20090506_t1w_001.mnc deleted: 964522/PH1_20090506/mri/native/phantom_964522_PH1_20090506_t1w_001.nii deleted: 964522/PH1_20090506/mri/native/phantom_964522_PH1_20090506_t1w_002.mnc deleted: 964522/PH1_20090506/mri/native/phantom_964522_PH1_20090506_t1w_002.nii deleted: 964522/PH1_20090506/mri/native/phantom_964522_PH1_20090506_t2w_001.mnc deleted: 964522/PH1_20090506/mri/native/phantom_964522_PH1_20090506_t2w_001.nii deleted: 964522/PH1_20090506/mri/native/phantom_964522_PH1_20090506_t2w_002.mnc deleted: 964522/PH1_20090506/mri/native/phantom_964522_PH1_20090506_t2w_002.nii deleted: 964522/PH1_20090615/mri/native/phantom_964522_PH1_20090615_t1w_001.mnc deleted: 964522/PH1_20090615/mri/native/phantom_964522_PH1_20090615_t1w_001.nii deleted: 964522/PH1_20090615/mri/native/phantom_964522_PH1_20090615_t1w_002.mnc deleted: 964522/PH1_20090615/mri/native/phantom_964522_PH1_20090615_t1w_002.nii deleted: 964522/PH1_20090615/mri/native/phantom_964522_PH1_20090615_t2w_001.mnc deleted: 964522/PH1_20090615/mri/native/phantom_964522_PH1_20090615_t2w_001.nii deleted: 964522/PH1_20090615/mri/native/phantom_964522_PH1_20090615_t2w_002.mnc deleted: 964522/PH1_20090615/mri/native/phantom_964522_PH1_20090615_t2w_002.nii deleted: 964522/PH1_20091119/mri/native/phantom_964522_PH1_20091119_t1w_001.mnc deleted: 964522/PH1_20091119/mri/native/phantom_964522_PH1_20091119_t1w_001.nii deleted: 964522/PH1_20091119/mri/native/phantom_964522_PH1_20091119_t1w_002.mnc deleted: 964522/PH1_20091119/mri/native/phantom_964522_PH1_20091119_t1w_002.nii deleted: 964522/PH1_20091119/mri/native/phantom_964522_PH1_20091119_t2w_001.mnc deleted: 964522/PH1_20091119/mri/native/phantom_964522_PH1_20091119_t2w_001.nii deleted: 964522/PH1_20091119/mri/native/phantom_964522_PH1_20091119_t2w_002.mnc deleted: 964522/PH1_20091119/mri/native/phantom_964522_PH1_20091119_t2w_002.nii deleted: 964522/PH1_20100308/mri/native/phantom_964522_PH1_20100308_t1w_001.mnc deleted: 964522/PH1_20100308/mri/native/phantom_964522_PH1_20100308_t1w_001.nii deleted: 964522/PH1_20100308/mri/native/phantom_964522_PH1_20100308_t1w_002.mnc deleted: 964522/PH1_20100308/mri/native/phantom_964522_PH1_20100308_t1w_002.nii deleted: 964522/PH1_20100308/mri/native/phantom_964522_PH1_20100308_t2w_001.mnc deleted: 964522/PH1_20100308/mri/native/phantom_964522_PH1_20100308_t2w_001.nii deleted: 964522/PH1_20100308/mri/native/phantom_964522_PH1_20100308_t2w_002.mnc deleted: 964522/PH1_20100308/mri/native/phantom_964522_PH1_20100308_t2w_002.nii deleted: 964522/PH1_20100429/mri/native/phantom_964522_PH1_20100429_t1w_001.mnc deleted: 964522/PH1_20100429/mri/native/phantom_964522_PH1_20100429_t1w_001.nii deleted: 964522/PH1_20100429/mri/native/phantom_964522_PH1_20100429_t1w_002.mnc deleted: 964522/PH1_20100429/mri/native/phantom_964522_PH1_20100429_t1w_002.nii deleted: 964522/PH1_20100429/mri/native/phantom_964522_PH1_20100429_t2w_001.mnc deleted: 964522/PH1_20100429/mri/native/phantom_964522_PH1_20100429_t2w_001.nii deleted: 964522/PH1_20100429/mri/native/phantom_964522_PH1_20100429_t2w_002.mnc deleted: 964522/PH1_20100429/mri/native/phantom_964522_PH1_20100429_t2w_002.nii deleted: 964522/PH1_20100708/mri/native/phantom_964522_PH1_20100708_t1w_001.mnc deleted: 964522/PH1_20100708/mri/native/phantom_964522_PH1_20100708_t1w_001.nii deleted: 964522/PH1_20100708/mri/native/phantom_964522_PH1_20100708_t1w_002.mnc deleted: 964522/PH1_20100708/mri/native/phantom_964522_PH1_20100708_t1w_002.nii deleted: 964522/PH1_20100708/mri/native/phantom_964522_PH1_20100708_t2w_001.mnc deleted: 964522/PH1_20100708/mri/native/phantom_964522_PH1_20100708_t2w_001.nii deleted: 964522/PH1_20100708/mri/native/phantom_964522_PH1_20100708_t2w_002.mnc deleted: 964522/PH1_20100708/mri/native/phantom_964522_PH1_20100708_t2w_002.nii deleted: 964522/PH1_20100920/mri/native/phantom_964522_PH1_20100920_t1w_001.mnc deleted: 964522/PH1_20100920/mri/native/phantom_964522_PH1_20100920_t1w_001.nii deleted: 964522/PH1_20100920/mri/native/phantom_964522_PH1_20100920_t1w_002.mnc deleted: 964522/PH1_20100920/mri/native/phantom_964522_PH1_20100920_t1w_002.nii deleted: 964522/PH1_20100920/mri/native/phantom_964522_PH1_20100920_t2w_001.mnc deleted: 964522/PH1_20100920/mri/native/phantom_964522_PH1_20100920_t2w_001.nii deleted: 964522/PH1_20100920/mri/native/phantom_964522_PH1_20100920_t2w_002.mnc deleted: 964522/PH1_20100920/mri/native/phantom_964522_PH1_20100920_t2w_002.nii deleted: 964522/PH1_20101129/mri/native/phantom_964522_PH1_20101129_t1w_001.mnc deleted: 964522/PH1_20101129/mri/native/phantom_964522_PH1_20101129_t1w_001.nii deleted: 964522/PH1_20101129/mri/native/phantom_964522_PH1_20101129_t1w_002.mnc deleted: 964522/PH1_20101129/mri/native/phantom_964522_PH1_20101129_t1w_002.nii deleted: 964522/PH1_20101129/mri/native/phantom_964522_PH1_20101129_t2w_001.mnc deleted: 964522/PH1_20101129/mri/native/phantom_964522_PH1_20101129_t2w_001.nii deleted: 964522/PH1_20101129/mri/native/phantom_964522_PH1_20101129_t2w_002.mnc deleted: 964522/PH1_20101129/mri/native/phantom_964522_PH1_20101129_t2w_002.nii deleted: 964522/PH1_20110131/mri/native/phantom_964522_PH1_20110131_t1w_001.mnc deleted: 964522/PH1_20110131/mri/native/phantom_964522_PH1_20110131_t1w_001.nii deleted: 964522/PH1_20110131/mri/native/phantom_964522_PH1_20110131_t1w_002.mnc deleted: 964522/PH1_20110131/mri/native/phantom_964522_PH1_20110131_t1w_002.nii deleted: 964522/PH1_20110131/mri/native/phantom_964522_PH1_20110131_t2w_001.mnc deleted: 964522/PH1_20110131/mri/native/phantom_964522_PH1_20110131_t2w_001.nii deleted: 964522/PH1_20110131/mri/native/phantom_964522_PH1_20110131_t2w_002.mnc deleted: 964522/PH1_20110131/mri/native/phantom_964522_PH1_20110131_t2w_002.nii deleted: 964522/PH1_20110314/mri/native/phantom_964522_PH1_20110314_t1w_001.mnc deleted: 964522/PH1_20110314/mri/native/phantom_964522_PH1_20110314_t1w_001.nii deleted: 964522/PH1_20110314/mri/native/phantom_964522_PH1_20110314_t1w_002.mnc deleted: 964522/PH1_20110314/mri/native/phantom_964522_PH1_20110314_t1w_002.nii deleted: 964522/PH1_20110314/mri/native/phantom_964522_PH1_20110314_t2w_001.mnc deleted: 964522/PH1_20110314/mri/native/phantom_964522_PH1_20110314_t2w_001.nii deleted: 964522/PH1_20110314/mri/native/phantom_964522_PH1_20110314_t2w_002.mnc deleted: 964522/PH1_20110314/mri/native/phantom_964522_PH1_20110314_t2w_002.nii deleted: 964522/PH1_20110510/mri/native/phantom_964522_PH1_20110510_t1w_001.mnc deleted: 964522/PH1_20110510/mri/native/phantom_964522_PH1_20110510_t1w_001.nii deleted: 964522/PH1_20110510/mri/native/phantom_964522_PH1_20110510_t1w_002.mnc deleted: 964522/PH1_20110510/mri/native/phantom_964522_PH1_20110510_t1w_002.nii deleted: 964522/PH1_20110510/mri/native/phantom_964522_PH1_20110510_t2w_001.mnc deleted: 964522/PH1_20110510/mri/native/phantom_964522_PH1_20110510_t2w_001.nii deleted: 964522/PH1_20110510/mri/native/phantom_964522_PH1_20110510_t2w_002.mnc deleted: 964522/PH1_20110510/mri/native/phantom_964522_PH1_20110510_t2w_002.nii deleted: 964522/PH1_20111029/mri/native/phantom_964522_PH1_20111029_t1w_001.mnc deleted: 964522/PH1_20111029/mri/native/phantom_964522_PH1_20111029_t1w_001.nii deleted: 964522/PH1_20111029/mri/native/phantom_964522_PH1_20111029_t1w_002.mnc deleted: 964522/PH1_20111029/mri/native/phantom_964522_PH1_20111029_t1w_002.nii deleted: 964522/PH1_20111029/mri/native/phantom_964522_PH1_20111029_t2w_001.mnc deleted: 964522/PH1_20111029/mri/native/phantom_964522_PH1_20111029_t2w_001.nii deleted: 964522/PH1_20111029/mri/native/phantom_964522_PH1_20111029_t2w_002.mnc deleted: 964522/PH1_20111029/mri/native/phantom_964522_PH1_20111029_t2w_002.nii deleted: 964522/PH1_20111209/mri/native/phantom_964522_PH1_20111209_t1w_001.mnc deleted: 964522/PH1_20111209/mri/native/phantom_964522_PH1_20111209_t1w_001.nii deleted: 964522/PH1_20111209/mri/native/phantom_964522_PH1_20111209_t1w_002.mnc deleted: 964522/PH1_20111209/mri/native/phantom_964522_PH1_20111209_t1w_002.nii deleted: 964522/PH1_20111209/mri/native/phantom_964522_PH1_20111209_t2w_001.mnc deleted: 964522/PH1_20111209/mri/native/phantom_964522_PH1_20111209_t2w_001.nii deleted: 964522/PH1_20111209/mri/native/phantom_964522_PH1_20111209_t2w_002.mnc deleted: 964522/PH1_20111209/mri/native/phantom_964522_PH1_20111209_t2w_002.nii deleted: 964522/PH1_20111231/mri/native/phantom_964522_PH1_20111231_t1w_001.mnc deleted: 964522/PH1_20111231/mri/native/phantom_964522_PH1_20111231_t1w_001.nii deleted: 964522/PH1_20111231/mri/native/phantom_964522_PH1_20111231_t1w_002.mnc deleted: 964522/PH1_20111231/mri/native/phantom_964522_PH1_20111231_t1w_002.nii deleted: 964522/PH1_20111231/mri/native/phantom_964522_PH1_20111231_t2w_001.mnc deleted: 964522/PH1_20111231/mri/native/phantom_964522_PH1_20111231_t2w_001.nii deleted: 964522/PH1_20111231/mri/native/phantom_964522_PH1_20111231_t2w_002.mnc deleted: 964522/PH1_20111231/mri/native/phantom_964522_PH1_20111231_t2w_002.nii deleted: 964522/PH1_20120107/mri/native/phantom_964522_PH1_20120107_t1w_001.mnc deleted: 964522/PH1_20120107/mri/native/phantom_964522_PH1_20120107_t1w_001.nii deleted: 964522/PH1_20120107/mri/native/phantom_964522_PH1_20120107_t1w_002.mnc deleted: 964522/PH1_20120107/mri/native/phantom_964522_PH1_20120107_t1w_002.nii deleted: 964522/PH1_20120107/mri/native/phantom_964522_PH1_20120107_t2w_001.mnc deleted: 964522/PH1_20120107/mri/native/phantom_964522_PH1_20120107_t2w_001.nii deleted: 964522/PH1_20120107/mri/native/phantom_964522_PH1_20120107_t2w_002.mnc deleted: 964522/PH1_20120107/mri/native/phantom_964522_PH1_20120107_t2w_002.nii deleted: 964522/PH1_20120227/mri/native/phantom_964522_PH1_20120227_t1w_001.mnc deleted: 964522/PH1_20120227/mri/native/phantom_964522_PH1_20120227_t1w_001.nii deleted: 964522/PH1_20120227/mri/native/phantom_964522_PH1_20120227_t1w_002.mnc deleted: 964522/PH1_20120227/mri/native/phantom_964522_PH1_20120227_t1w_002.nii deleted: 964522/PH1_20120227/mri/native/phantom_964522_PH1_20120227_t2w_001.mnc deleted: 964522/PH1_20120227/mri/native/phantom_964522_PH1_20120227_t2w_001.nii deleted: 964522/PH1_20120227/mri/native/phantom_964522_PH1_20120227_t2w_002.mnc deleted: 964522/PH1_20120227/mri/native/phantom_964522_PH1_20120227_t2w_002.nii deleted: 964522/PH1_20120414/mri/native/phantom_964522_PH1_20120414_t1w_001.mnc deleted: 964522/PH1_20120414/mri/native/phantom_964522_PH1_20120414_t1w_001.nii deleted: 964522/PH1_20120414/mri/native/phantom_964522_PH1_20120414_t1w_002.mnc deleted: 964522/PH1_20120414/mri/native/phantom_964522_PH1_20120414_t1w_002.nii deleted: 964522/PH1_20120414/mri/native/phantom_964522_PH1_20120414_t2w_001.mnc deleted: 964522/PH1_20120414/mri/native/phantom_964522_PH1_20120414_t2w_001.nii deleted: 964522/PH1_20120414/mri/native/phantom_964522_PH1_20120414_t2w_002.mnc deleted: 964522/PH1_20120414/mri/native/phantom_964522_PH1_20120414_t2w_002.nii deleted: 964522/PH1_20120512/mri/native/phantom_964522_PH1_20120512_t1w_001.mnc deleted: 964522/PH1_20120512/mri/native/phantom_964522_PH1_20120512_t1w_001.nii deleted: 964522/PH1_20120512/mri/native/phantom_964522_PH1_20120512_t1w_002.mnc deleted: 964522/PH1_20120512/mri/native/phantom_964522_PH1_20120512_t1w_002.nii deleted: 964522/PH1_20120512/mri/native/phantom_964522_PH1_20120512_t2w_001.mnc deleted: 964522/PH1_20120512/mri/native/phantom_964522_PH1_20120512_t2w_001.nii deleted: 964522/PH1_20120512/mri/native/phantom_964522_PH1_20120512_t2w_002.mnc deleted: 964522/PH1_20120512/mri/native/phantom_964522_PH1_20120512_t2w_002.nii deleted: 964522/PH1_20120615/mri/native/phantom_964522_PH1_20120615_t1w_001.mnc deleted: 964522/PH1_20120615/mri/native/phantom_964522_PH1_20120615_t1w_001.nii deleted: 964522/PH1_20120615/mri/native/phantom_964522_PH1_20120615_t1w_002.mnc deleted: 964522/PH1_20120615/mri/native/phantom_964522_PH1_20120615_t1w_002.nii deleted: 964522/PH1_20120615/mri/native/phantom_964522_PH1_20120615_t2w_001.mnc deleted: 964522/PH1_20120615/mri/native/phantom_964522_PH1_20120615_t2w_001.nii deleted: 964522/PH1_20120615/mri/native/phantom_964522_PH1_20120615_t2w_002.mnc deleted: 964522/PH1_20120615/mri/native/phantom_964522_PH1_20120615_t2w_002.nii deleted: 964522/PH1_20120730/mri/native/phantom_964522_PH1_20120730_t1w_001.mnc deleted: 964522/PH1_20120730/mri/native/phantom_964522_PH1_20120730_t1w_001.nii deleted: 964522/PH1_20120730/mri/native/phantom_964522_PH1_20120730_t1w_002.mnc deleted: 964522/PH1_20120730/mri/native/phantom_964522_PH1_20120730_t1w_002.nii deleted: 964522/PH1_20120730/mri/native/phantom_964522_PH1_20120730_t2w_001.mnc deleted: 964522/PH1_20120730/mri/native/phantom_964522_PH1_20120730_t2w_001.nii deleted: 964522/PH1_20120730/mri/native/phantom_964522_PH1_20120730_t2w_002.mnc deleted: 964522/PH1_20120730/mri/native/phantom_964522_PH1_20120730_t2w_002.nii deleted: 964522/PH1_20120813/mri/native/phantom_964522_PH1_20120813_t1w_001.mnc deleted: 964522/PH1_20120813/mri/native/phantom_964522_PH1_20120813_t1w_001.nii deleted: 964522/PH1_20120813/mri/native/phantom_964522_PH1_20120813_t1w_002.mnc deleted: 964522/PH1_20120813/mri/native/phantom_964522_PH1_20120813_t1w_002.nii deleted: 964522/PH1_20120813/mri/native/phantom_964522_PH1_20120813_t2w_001.mnc deleted: 964522/PH1_20120813/mri/native/phantom_964522_PH1_20120813_t2w_001.nii deleted: 964522/PH1_20120813/mri/native/phantom_964522_PH1_20120813_t2w_002.mnc deleted: 964522/PH1_20120813/mri/native/phantom_964522_PH1_20120813_t2w_002.nii deleted: 964522/PH1_20120911/mri/native/phantom_964522_PH1_20120911_t1w_001.mnc deleted: 964522/PH1_20120911/mri/native/phantom_964522_PH1_20120911_t1w_001.nii deleted: 964522/PH1_20120911/mri/native/phantom_964522_PH1_20120911_t1w_002.mnc deleted: 964522/PH1_20120911/mri/native/phantom_964522_PH1_20120911_t1w_002.nii deleted: 964522/PH1_20120911/mri/native/phantom_964522_PH1_20120911_t2w_001.mnc deleted: 964522/PH1_20120911/mri/native/phantom_964522_PH1_20120911_t2w_001.nii deleted: 964522/PH1_20120911/mri/native/phantom_964522_PH1_20120911_t2w_002.mnc deleted: 964522/PH1_20120911/mri/native/phantom_964522_PH1_20120911_t2w_002.nii deleted: 964522/PH1_20121029/mri/native/phantom_964522_PH1_20121029_t1w_001.mnc deleted: 964522/PH1_20121029/mri/native/phantom_964522_PH1_20121029_t1w_001.nii deleted: 964522/PH1_20121029/mri/native/phantom_964522_PH1_20121029_t1w_002.mnc deleted: 964522/PH1_20121029/mri/native/phantom_964522_PH1_20121029_t1w_002.nii deleted: 964522/PH1_20121029/mri/native/phantom_964522_PH1_20121029_t2w_001.mnc deleted: 964522/PH1_20121029/mri/native/phantom_964522_PH1_20121029_t2w_001.nii deleted: 964522/PH1_20121029/mri/native/phantom_964522_PH1_20121029_t2w_002.mnc deleted: 964522/PH1_20121029/mri/native/phantom_964522_PH1_20121029_t2w_002.nii deleted: 964522/PH1_20121118/mri/native/phantom_964522_PH1_20121118_t1w_001.mnc deleted: 964522/PH1_20121118/mri/native/phantom_964522_PH1_20121118_t1w_001.nii deleted: 964522/PH1_20121118/mri/native/phantom_964522_PH1_20121118_t1w_002.mnc deleted: 964522/PH1_20121118/mri/native/phantom_964522_PH1_20121118_t1w_002.nii deleted: 964522/PH1_20121118/mri/native/phantom_964522_PH1_20121118_t2w_001.mnc deleted: 964522/PH1_20121118/mri/native/phantom_964522_PH1_20121118_t2w_001.nii deleted: 964522/PH1_20121118/mri/native/phantom_964522_PH1_20121118_t2w_002.mnc deleted: 964522/PH1_20121118/mri/native/phantom_964522_PH1_20121118_t2w_002.nii deleted: 964522/PH1_20130131/mri/native/phantom_964522_PH1_20130131_t1w_001.mnc deleted: 964522/PH1_20130131/mri/native/phantom_964522_PH1_20130131_t1w_001.nii deleted: 964522/PH1_20130131/mri/native/phantom_964522_PH1_20130131_t1w_002.mnc deleted: 964522/PH1_20130131/mri/native/phantom_964522_PH1_20130131_t1w_002.nii deleted: 964522/PH1_20130131/mri/native/phantom_964522_PH1_20130131_t2w_001.mnc deleted: 964522/PH1_20130131/mri/native/phantom_964522_PH1_20130131_t2w_001.nii deleted: 964522/PH1_20130131/mri/native/phantom_964522_PH1_20130131_t2w_002.mnc deleted: 964522/PH1_20130131/mri/native/phantom_964522_PH1_20130131_t2w_002.nii deleted: 964522/PH1_20130216/mri/native/phantom_964522_PH1_20130216_t1w_001.mnc deleted: 964522/PH1_20130216/mri/native/phantom_964522_PH1_20130216_t1w_001.nii deleted: 964522/PH1_20130216/mri/native/phantom_964522_PH1_20130216_t1w_002.mnc deleted: 964522/PH1_20130216/mri/native/phantom_964522_PH1_20130216_t1w_002.nii deleted: 964522/PH1_20130216/mri/native/phantom_964522_PH1_20130216_t2w_001.mnc deleted: 964522/PH1_20130216/mri/native/phantom_964522_PH1_20130216_t2w_001.nii deleted: 964522/PH1_20130216/mri/native/phantom_964522_PH1_20130216_t2w_002.mnc deleted: 964522/PH1_20130216/mri/native/phantom_964522_PH1_20130216_t2w_002.nii deleted: 964522/PH1_20130316/mri/native/phantom_964522_PH1_20130316_t1w_001.mnc deleted: 964522/PH1_20130316/mri/native/phantom_964522_PH1_20130316_t1w_001.nii deleted: 964522/PH1_20130316/mri/native/phantom_964522_PH1_20130316_t1w_002.mnc deleted: 964522/PH1_20130316/mri/native/phantom_964522_PH1_20130316_t1w_002.nii deleted: 964522/PH1_20130316/mri/native/phantom_964522_PH1_20130316_t2w_001.mnc deleted: 964522/PH1_20130316/mri/native/phantom_964522_PH1_20130316_t2w_001.nii deleted: 964522/PH1_20130316/mri/native/phantom_964522_PH1_20130316_t2w_002.mnc deleted: 964522/PH1_20130316/mri/native/phantom_964522_PH1_20130316_t2w_002.nii deleted: 964522/PH1_20130531/mri/native/phantom_964522_PH1_20130531_t1w_001.mnc deleted: 964522/PH1_20130531/mri/native/phantom_964522_PH1_20130531_t1w_001.nii deleted: 964522/PH1_20130531/mri/native/phantom_964522_PH1_20130531_t1w_002.mnc deleted: 964522/PH1_20130531/mri/native/phantom_964522_PH1_20130531_t1w_002.nii deleted: 964522/PH1_20130531/mri/native/phantom_964522_PH1_20130531_t2w_001.mnc deleted: 964522/PH1_20130531/mri/native/phantom_964522_PH1_20130531_t2w_001.nii deleted: 964522/PH1_20130531/mri/native/phantom_964522_PH1_20130531_t2w_002.mnc deleted: 964522/PH1_20130531/mri/native/phantom_964522_PH1_20130531_t2w_002.nii deleted: 964522/PH1_20130731/mri/native/phantom_964522_PH1_20130731_t1w_001.mnc deleted: 964522/PH1_20130731/mri/native/phantom_964522_PH1_20130731_t1w_001.nii deleted: 964522/PH1_20130731/mri/native/phantom_964522_PH1_20130731_t1w_002.mnc deleted: 964522/PH1_20130731/mri/native/phantom_964522_PH1_20130731_t1w_002.nii deleted: 964522/PH1_20130731/mri/native/phantom_964522_PH1_20130731_t2w_001.mnc deleted: 964522/PH1_20130731/mri/native/phantom_964522_PH1_20130731_t2w_001.nii deleted: 964522/PH1_20130731/mri/native/phantom_964522_PH1_20130731_t2w_002.mnc deleted: 964522/PH1_20130731/mri/native/phantom_964522_PH1_20130731_t2w_002.nii deleted: 964522/PH1_20130831/mri/native/phantom_964522_PH1_20130831_t1w_001.mnc deleted: 964522/PH1_20130831/mri/native/phantom_964522_PH1_20130831_t1w_001.nii deleted: 964522/PH1_20130831/mri/native/phantom_964522_PH1_20130831_t1w_002.mnc deleted: 964522/PH1_20130831/mri/native/phantom_964522_PH1_20130831_t1w_002.nii deleted: 964522/PH1_20130831/mri/native/phantom_964522_PH1_20130831_t2w_001.mnc deleted: 964522/PH1_20130831/mri/native/phantom_964522_PH1_20130831_t2w_001.nii deleted: 964522/PH1_20130831/mri/native/phantom_964522_PH1_20130831_t2w_002.mnc deleted: 964522/PH1_20130831/mri/native/phantom_964522_PH1_20130831_t2w_002.nii deleted: 964522/PH1_20130927/mri/native/phantom_964522_PH1_20130927_t1w_001.mnc deleted: 964522/PH1_20130927/mri/native/phantom_964522_PH1_20130927_t1w_001.nii deleted: 964522/PH1_20130927/mri/native/phantom_964522_PH1_20130927_t1w_002.mnc deleted: 964522/PH1_20130927/mri/native/phantom_964522_PH1_20130927_t1w_002.nii deleted: 964522/PH1_20130927/mri/native/phantom_964522_PH1_20130927_t2w_001.mnc deleted: 964522/PH1_20130927/mri/native/phantom_964522_PH1_20130927_t2w_001.nii deleted: 964522/PH1_20130927/mri/native/phantom_964522_PH1_20130927_t2w_002.mnc deleted: 964522/PH1_20130927/mri/native/phantom_964522_PH1_20130927_t2w_002.nii deleted: 964522/PH1_20131026/mri/native/phantom_964522_PH1_20131026_t1w_001.mnc deleted: 964522/PH1_20131026/mri/native/phantom_964522_PH1_20131026_t1w_001.nii deleted: 964522/PH1_20131026/mri/native/phantom_964522_PH1_20131026_t1w_002.mnc deleted: 964522/PH1_20131026/mri/native/phantom_964522_PH1_20131026_t1w_002.nii deleted: 964522/PH1_20131026/mri/native/phantom_964522_PH1_20131026_t2w_001.mnc deleted: 964522/PH1_20131026/mri/native/phantom_964522_PH1_20131026_t2w_001.nii deleted: 964522/PH1_20131026/mri/native/phantom_964522_PH1_20131026_t2w_002.mnc deleted: 964522/PH1_20131026/mri/native/phantom_964522_PH1_20131026_t2w_002.nii deleted: 964522/PH1_20131127/mri/native/phantom_964522_PH1_20131127_t1w_001.mnc deleted: 964522/PH1_20131127/mri/native/phantom_964522_PH1_20131127_t1w_001.nii deleted: 964522/PH1_20131127/mri/native/phantom_964522_PH1_20131127_t1w_002.mnc deleted: 964522/PH1_20131127/mri/native/phantom_964522_PH1_20131127_t1w_002.nii deleted: 964522/PH1_20131127/mri/native/phantom_964522_PH1_20131127_t2w_001.mnc deleted: 964522/PH1_20131127/mri/native/phantom_964522_PH1_20131127_t2w_001.nii deleted: 964522/PH1_20131127/mri/native/phantom_964522_PH1_20131127_t2w_002.mnc deleted: 964522/PH1_20131127/mri/native/phantom_964522_PH1_20131127_t2w_002.nii deleted: 964522/PH1_20140131/mri/native/phantom_964522_PH1_20140131_t1w_001.mnc deleted: 964522/PH1_20140131/mri/native/phantom_964522_PH1_20140131_t1w_001.nii deleted: 964522/PH1_20140131/mri/native/phantom_964522_PH1_20140131_t1w_002.mnc deleted: 964522/PH1_20140131/mri/native/phantom_964522_PH1_20140131_t1w_002.nii deleted: 964522/PH1_20140131/mri/native/phantom_964522_PH1_20140131_t2w_001.mnc deleted: 964522/PH1_20140131/mri/native/phantom_964522_PH1_20140131_t2w_001.nii deleted: 964522/PH1_20140131/mri/native/phantom_964522_PH1_20140131_t2w_002.mnc deleted: 964522/PH1_20140131/mri/native/phantom_964522_PH1_20140131_t2w_002.nii deleted: 964522/PH1_20140412/mri/native/phantom_964522_PH1_20140412_t1w_001.mnc deleted: 964522/PH1_20140412/mri/native/phantom_964522_PH1_20140412_t1w_001.nii deleted: 964522/PH1_20140412/mri/native/phantom_964522_PH1_20140412_t1w_002.mnc deleted: 964522/PH1_20140412/mri/native/phantom_964522_PH1_20140412_t1w_002.nii deleted: 964522/PH1_20140412/mri/native/phantom_964522_PH1_20140412_t2w_001.mnc deleted: 964522/PH1_20140412/mri/native/phantom_964522_PH1_20140412_t2w_001.nii deleted: 964522/PH1_20140412/mri/native/phantom_964522_PH1_20140412_t2w_002.mnc deleted: 964522/PH1_20140412/mri/native/phantom_964522_PH1_20140412_t2w_002.nii deleted: 964522/PH1_20140529/mri/native/phantom_964522_PH1_20140529_t1w_001.mnc deleted: 964522/PH1_20140529/mri/native/phantom_964522_PH1_20140529_t1w_001.nii deleted: 964522/PH1_20140529/mri/native/phantom_964522_PH1_20140529_t1w_002.mnc deleted: 964522/PH1_20140529/mri/native/phantom_964522_PH1_20140529_t1w_002.nii deleted: 964522/PH1_20140529/mri/native/phantom_964522_PH1_20140529_t2w_001.mnc deleted: 964522/PH1_20140529/mri/native/phantom_964522_PH1_20140529_t2w_001.nii deleted: 964522/PH1_20140529/mri/native/phantom_964522_PH1_20140529_t2w_002.mnc deleted: 964522/PH1_20140529/mri/native/phantom_964522_PH1_20140529_t2w_002.nii Untracked files: (use "git add ..." to include in what will be committed) index.html no changes added to commit (use "git add" and/or "git commit -a") root@datalad:/var/www/html# git branch git-annex * master ```

I don't know why are all these files deleted, I extracted metadata from these files on another server.

paiva commented 5 years ago

Here is the output of .gitmodules:

root@datalad:/var/www/html# cat .gitmodules
[submodule "397552"]
    path = 397552
    url = ./397552
[submodule "421863"]
    path = 421863
    url = ./421863
[submodule "435668"]
    path = 435668
    url = ./435668
[submodule "623541"]
    path = 623541
    url = ./623541
[submodule "698527"]
    path = 698527
    url = ./698527
[submodule "833826"]
    path = 833826
    url = ./833826
[submodule "963271"]
    path = 963271
    url = ./963271
[submodule "964522"]
    path = 964522
    url = ./964522
[submodule "992086"]
    path = 992086
    url = ./992086
[submodule "999876"]
    path = 999876
    url = ./999876
yarikoptic commented 5 years ago

datalad ls -r .

yarikoptic commented 5 years ago

Disregard above request. 964522 is listed as a submodule but also was committed as a directory?

paiva commented 5 years ago

964522 is a subdataset that I added in the end. I used the following commands:

datalad create -f -d . <subdir>/
cd <subdir>/
git config -f .datalad/config --add datalad.metadata.nativetype <nifti1 or minc>
datalad aggregate-metadata --force-extraction -d . -r --update-mode all
datalad -f json_pp metadata --recursive --reporton datasets
datalad save -r -d . --message "some commit message" --all-updated

It should be a submodule and not a directory. Should I run datalad ls -r?

Thanks again!

yarikoptic commented 5 years ago

those commands look good (no need for datalad ls -r atm) . my point is that I think that the super dataset managed to get <subdir>/ added as a subdirectory at some point somehow. git log <subdir> should tell you when. Might it be a manifestation of https://github.com/datalad/datalad/issues/3139 ?

ted-strauss-K1 commented 5 years ago

@yarikoptic just to clarify: The web UI should display the folders and treat them as submodules if:

Is that right?

yarikoptic commented 5 years ago

That all sounds right. I would advise to give (commit) messages to save in the future. But let me repeat the question: git log <subdir> should (well - might) tell what command added directly to super dataset. If, given that list of commands, you could reproduce it - even better. If not, may be running history in that shell would give a clue how you diverged

paiva commented 5 years ago
Git log command within subdataset: ```shell lorisadmin@phantom-dev:/data/phantom/data/assembly/964522$ git log commit b9d78818039e7794a2ae717114bf8230a0778825 Author: santiago <1534575+paiva@users.noreply.github.com> Date: Wed Mar 6 22:36:49 2019 -0500 update subdataset commit 43fe3de4341cb80e22df9d903f8322886b59fe6f Author: santiago <1534575+paiva@users.noreply.github.com> Date: Wed Mar 6 22:35:40 2019 -0500 [DATALAD] Dataset aggregate metadata update commit e688891ec7f03fd64d28c6456b68af1a7fde2a5b Author: santiago <1534575+paiva@users.noreply.github.com> Date: Wed Mar 6 22:14:37 2019 -0500 [DATALAD] new dataset commit 049827a82ecb225254a45be71853c39c295fd0ff Author: santiago <1534575+paiva@users.noreply.github.com> Date: Wed Mar 6 16:31:44 2019 -0500 [DATALAD] Dataset aggregate metadata update commit 51738dd0d57e07987fb4e5feb704c041e85a500e Author: santiago <1534575+paiva@users.noreply.github.com> Date: Fri Mar 1 15:09:38 2019 -0500 8th commit commit 8a206ffa79c37cdc1a1ab426f9bbbe3aa342b3de Author: santiago <1534575+paiva@users.noreply.github.com> Date: Fri Mar 1 14:54:59 2019 -0500 [DATALAD] new dataset commit d08ed8c00f8998ebc653dbdb641efe0681ca98ce Author: santiago <1534575+paiva@users.noreply.github.com> Date: Fri Mar 1 14:54:49 2019 -0500 [DATALAD] Set default backend for all files to be MD5E ```
yarikoptic commented 5 years ago

Here is the minimalistic script to reproduce the situation (from our online debugging session):

datalad create /tmp/superds
cd /tmp/superds
mkdir subds
touch subds/file
datalad add subds/file
cd subds
datalad create -f .  # That was the point of "crime" -- creating
touch file2
cd ..
datalad add subds  # worked correctly -- added within subds
git status # super still thinks things belong to it (as well)
datalad save -m "saving recursively upstairs" -r .  # saves files also to superdataset
git log --stat

so possible ideas are

yarikoptic commented 5 years ago

We are implementing "prevention" mechanism for such situations to happen: https://github.com/datalad/datalad/pull/3211

yarikoptic commented 5 years ago

@paiva could you please update us either there was success in your endeavor? ;-)