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

cloning a previously created repo on osf failing with exitcode 128 #205

Open
hvgazula opened this issue Sep 23, 2024 · 7 comments
Open

cloning a previously created repo on osf failing with exitcode 128 #205

hvgazula opened this issue Sep 23, 2024 · 7 comments

Comments

@hvgazula
Copy link

Hello, I created a project on osf using datalad in the past and trying to clone the repo withdatalad clone osf://2xmau elife-data throws the following error. I am unsure what step I am skipping.

install(error): /Users/harsha/Downloads/elife-data (dataset) [Failed to clone from any candidate source URL. Encountered errors per each url were:
- osf://2xmau/
  CommandError: 'git -c diff.ignoreSubmodules=none -c core.quotepath=false clone --progress osf://2xmau/ /Users/harsha/Downloads/elife-data' failed with exitcode 128 [err: 'Cloning into '/Users/harsha/Downloads/elife-data'...
[DATALAD-ANNEX] fatal: couldn't find remote refs (repository deposit does not exist, or is inaccessible']]

I'd appreciate any tips/suggestions.

@adswa
Copy link
Member

adswa commented Sep 24, 2024

This sounds just like #202 - do you have the next extension configured to be loaded? If not, please do

@hvgazula
Copy link
Author

Thanks for responding, @adswa. Sorry, I did not mention that before. I did configure the extension and that did not cut it. I'll give this another go and keep you updated.

@adswa
Copy link
Member

adswa commented Sep 24, 2024

Can you post the output of datalad wtf and git config --list?

@adswa
Copy link
Member

adswa commented Oct 2, 2024

Hey, just a quick ping on this issue. Do you still see the problem, and if so, could you provide more information?

@Gilles86
Copy link

I keep running into the very same issue. I installed datalad-osf both in my base Python environment and a dedicated conda environment. I ran git config --global --add datalad.extensions.load next multiple times. Rebooted the computer.

Whatever OSF repo I try to clone, I keep getting this error:

datalad clone osf://grqv8 ben
install(error): /data/ben (dataset) [Failed to clone from any candidate source URL. Encountered errors per each url were:
- osf://grqv8
  CommandError: 'git -c diff.ignoreSubmodules=none -c core.quotepath=false clone --progress osf://grqv8 /data/ben' failed with exitcode 128 [err: 'Cloning into '/data/ben'...
[DATALAD-ANNEX] fatal: couldn't find remote refs (repository deposit does not exist, or is inaccessible']]

@adswa
Copy link
Member

adswa commented Jan 16, 2025

hey @Gilles86, thanks for chiming in! I looked at https://osf.io/grqv8, which looks like the project you are cloning - it does not look like a DataLad dataset, or am I missing something? If it is just a regularly created OSF project, then there is no way of cloning it with datalad-osf

@Gilles86
Copy link

Gilles86 commented Jan 16, 2025

Ah, sorry about that. I'm afraid this stuff is a bit above my pay grade. So if you upload a datalad dataset like this you cannot see the original filenames, etc. in the OSF Files web interface? It's always this sea of MD5 hashes?

In any case, I try to clone the repo of the original issue opener I get the same issue

datalad clone osf://2xmau elife-data
install(error): /data/elife-data (dataset) [Failed to clone from any candidate source URL. Encountered errors per each url were:
- osf://2xmau
  CommandError: 'git -c diff.ignoreSubmodules=none -c core.quotepath=false clone --progress osf://2xmau /data/elife-data' failed with exitcode 128 [err: 'Cloning into '/data/elife-data'...
[DATALAD-ANNEX] fatal: couldn't find remote refs (repository deposit does not exist, or is inaccessible']]

The same happens when I try this with a private repository of my own that I created using datalad create-sibling-osf .... The creation of that dataset was successful since I can see it on osf.io...

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