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

failed to push to demo.dataverse.org #304

Closed
pdurbin opened this issue Apr 6, 2024 · 1 comment · Fixed by #305
Closed

failed to push to demo.dataverse.org #304

pdurbin opened this issue Apr 6, 2024 · 1 comment · Fixed by #305

Comments

@pdurbin
Copy link

pdurbin commented Apr 6, 2024

I'm probably doing something wrong but here's the error I'm getting:

(venv) HMDC-beamish:alt pdurbin$ 
(venv) HMDC-beamish:alt pdurbin$ datalad add-sibling-dataverse https://demo.dataverse.org doi:10.70122/FK2/BUOCCS
A dataverse API token is required for access. Find it at https://demo.dataverse.org by clicking on your name at the top right corner and then clicking on API Token
token: 
A dataverse API token is required for access. Find it at https://demo.dataverse.org by clicking on your name at the top right corner and then clicking on API Token
token (repeat): 
Enter a name to save the credential securely for future reuse, or 'skip' to not save the credential
name: pdurbintoken

add_sibling_dataverse.storage(ok): . [dataverse-storage: https://demo.dataverse.org (DOI: doi:10.70122/FK2/BUOCCS)]
[INFO   ] Configure additional publication dependency on "dataverse-storage" 
add_sibling_dataverse(ok): . [dataverse: datalad-annex::?type=external&externaltype=dataverse&encryption=none&exporttree=no&url=https%3A//demo.dataverse.org&doi=doi:10.70122/FK2/BUOCCS (DOI: doi:10.70122/FK2/BUOCCS)]
(venv) HMDC-beamish:alt pdurbin$ 
(venv) HMDC-beamish:alt pdurbin$ datalad push --to dataverse
copy(ok): README.md (file) [to dataverse-storage...]                                                       
Update availability for 'dataverse':  75%|██████████████████▊      | 3.00/4.00 [00:00<00:00, 18.3k Steps/s]CommandError: 'git -c diff.ignoreSubmodules=none -c core.quotepath=false fetch dataverse git-annex' failed with exitcode 128
[DATALAD-ANNEX] fatal: couldn't find remote refs (repository deposit does not exist, or is inaccessible
(venv) HMDC-beamish:alt pdurbin$ 

I'm following https://docs.datalad.org/projects/dataverse/en/latest/tutorial.html

A single file was pushed to Dataverse but we expect more:

Screenshot 2024-04-06 at 10 49 45 AM

https://demo.dataverse.org/dataset.xhtml?persistentId=doi:10.70122/FK2/BUOCCS

I'm talking to @bpoldrack at the Distribits hackathon. We also looked at datalad -l debug push --to dataverse but the output above is sufficient.

We tried git config --global --add datalad.extensions.load next and that helped! All three files:

Screenshot 2024-04-06 at 11 08 58 AM
$ git remote -v
dataverse	datalad-annex::?type=external&externaltype=dataverse&encryption=none&exporttree=no&url=https%3A//demo.dataverse.org&doi=doi:10.70122/FK2/BUOCCS (fetch)
dataverse	datalad-annex::?type=external&externaltype=dataverse&encryption=none&exporttree=no&url=https%3A//demo.dataverse.org&doi=doi:10.70122/FK2/BUOCCS (push)
dataverse-storage
@bpoldrack
Copy link
Member

Caveat: The trouble is that loading the next and dataverse extensions for patching datalad push and datalad clone respectively isn't properly pointed out in the docs.
With that, it turned out fine.

bpoldrack added a commit to bpoldrack/datalad-dataverse that referenced this issue Apr 6, 2024
bpoldrack added a commit to bpoldrack/datalad-dataverse that referenced this issue Apr 6, 2024
@adswa adswa closed this as completed in #305 Apr 7, 2024
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

Successfully merging a pull request may close this issue.

2 participants