Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication issues with nda #5

Open
gkiar opened this issue Jan 12, 2022 · 4 comments
Open

Authentication issues with nda #5

gkiar opened this issue Jan 12, 2022 · 4 comments

Comments

@gkiar
Copy link

gkiar commented Jan 12, 2022

Hey,

thanks for the collection and helper utility tool! I'm trying to download some of the collection, but seem to be hitting an authentication issue:

$ python download.py -i ../abcc/datastructure_manifest.txt -o ../abcc_dat/ -s ../abcc/sublist_tmp.txt -d ../abcc/data_subsets.txt
Derivatives downloader called at 2022:01:12 17:55 with:
ERROR:root:response had error message: Invalid username and/or password
Failed to create NDA token.
Failed to create NDA token using the username and decrypted password from /home/gkiar/.abcd2bids/config.ini.

I have confirmed that the password I entered works to log in to both DEAP and NDA, but, alas, it doesn't let me download the data here. Any ideas? Thanks!

@LiuYunjia
Copy link

I also have the same problem, have you solve this?

@gkiar
Copy link
Author

gkiar commented Jan 25, 2022

Yes, actually. It appears this repository is forked from another, https://github.com/DCAN-Labs/nda-abcd-s3-downloader, and that other version has 2 new commits which "patch" this bug. I followed the README from this repository, but used the tool from the other.

The solution from the developers' point of view would just be to merge the changes on the other branch back-in, so I've opened a PR to do that: #7.

@LiuYunjia
Copy link

Thank you so much!
It works!

@WillForan
Copy link

I'm getting 404 from https://nda.nih.gov/DataManager/dataManager

maybe the same issue as https://github.com/DCAN-Labs/nda-abcd-s3-downloader/issues/35 and https://github.com/DCAN-Labs/nda-abcd-s3-downloader/issues/36

I made a few changes to get more verbose error messaging (master...WillForan:nda-abcd-s3-downloader:master)

export LOGLEVEL=debug 
./download.py -i datastructure_manifest.txt -o ../mni -s 31682 -d mni_conn_subset.txt -c config$(date +%F).ini
DEBUG:root:b'<ns0:Envelope xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://gov/nih/ndar/ws/datamanager/server/bean/jaxb"><ns0:Body><ns1:UserElement><user><id>0</id><name>XXXXXXX</name><password>XXXXXXXXXXXXXXXXX</password><threshold>0</threshold></user></ns1:UserElement></ns0:Body></ns0:Envelope>'
DEBUG:root:making post request to https://nda.nih.gov/DataManager/dataManager
DEBUG:root:<urllib.request.Request object at 0x7f134330ad68>
Failed to create NDA token using https://nda.nih.gov/DataManager/dataManager.
        HTTP Error 404: 
Failed to create NDA token using the username and decrypted password from ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants