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

Host a Git-style repo #456

Closed
jamiehewitt15 opened this issue Sep 19, 2020 · 7 comments · Fixed by #457
Closed

Host a Git-style repo #456

jamiehewitt15 opened this issue Sep 19, 2020 · 7 comments · Fixed by #457
Assignees
Labels
kind/support A question or request for support status/in-progress In progress

Comments

@jamiehewitt15
Copy link

When following the Git-style repo tutorial, I have successfully uploaded my repo to IFPS with ipfs add -r . However, when I try to download it with git clone I am getting the error message below.

Is anyone able to help me with this? I'm not sure what I have done wrong.

git clone http://localhost:8080/ipfs/QmYgyahQoikJEbZEkiubwxm16xjCAZs2RUd1qfuus2Zyeq
Cloning into 'QmYgyahQoikJEbZEkiubwxm16xjCAZs2RUd1qfuus2Zyeq'...
fatal: unable to access 'http://localhost:8080/ipfs/QmYgyahQoikJEbZEkiubwxm16xjCAZs2RUd1qfuus2Zyeq/': Failed to connect to localhost port 8080: Connection refused
@jamiehewitt15 jamiehewitt15 added the need/triage Needs initial labeling and prioritization label Sep 19, 2020
@welcome
Copy link

welcome bot commented Sep 19, 2020

Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review.
In the meantime, please double-check that you have provided all the necessary information to make this process easy! Any information that can help save additiona round trips is useful! We currently aim to give initial feedback within two business days. If this does not happen, feel free to leave a comment.
Please keep an eye on how this issue will be labeled, as labels give an overview of priorities, assignments and additional actions requested by the maintainers:

  • "Priority" labels will show how urgent this is for the team.
  • "Status" labels will show if this is ready to be worked on, blocked, or in progress.
  • "Need" labels will indicate if additional input or analysis is required.

Finally, remember to use https://discuss.ipfs.io if you just need general support.

@johnnymatthews
Copy link
Contributor

Hmm, that's odd. Just to double check, can you make sure that you've got an IPFS daemon running? Either using Go-IPFS or IPFS Desktop.

This tutorial is fairly old (in IPFS terms), so it likely needs a revision. I'll run through today to make sure nothing's completely broken.

@johnnymatthews johnnymatthews self-assigned this Sep 21, 2020
@johnnymatthews johnnymatthews added kind/support A question or request for support status/in-progress In progress and removed need/triage Needs initial labeling and prioritization labels Sep 21, 2020
@johnnymatthews
Copy link
Contributor

johnnymatthews commented Sep 21, 2020

Never mind! It's because the URL structure changed. So instead of

git clone http://localhost:8080/ipfs/QmYgyahQoikJEbZEkiubwxm16xjCAZs2RUd1qfuus2Zyeq

It should be

git clone http://QmYgyahQoikJEbZEkiubwxm16xjCAZs2RUd1qfuus2Zyeq.ipfs.localhost:8080/

@jamiehewitt15 Give that a try. I'll change the tutorial :)

@jamiehewitt15
Copy link
Author

Thank you for your help @johnnymatthews I really appreciate it. Although, unfortunately there is still an issue here.

If I run:
git clone http://QmYgyahQoikJEbZEkiubwxm16xjCAZs2RUd1qfuus2Zyeq.ipfs.localhost:8080/

I get the following error message:
fatal: unable to access 'http://QmYgyahQoikJEbZEkiubwxm16xjCAZs2RUd1qfuus2Zyeq.ipfs.localhost:8080/': Could not resolve host: QmYgyahQoikJEbZEkiubwxm16xjCAZs2RUd1qfuus2Zyeq.ipfs.localhost

However, I have managed to get it working by running:
git clone http://127.0.0.1:8080/ipfs/QmYgyahQoikJEbZEkiubwxm16xjCAZs2RUd1qfuus2Zyeq

I have got the daemon running. Could the issue be due to the fact that I'm running the commands on windows?

@johnnymatthews
Copy link
Contributor

It's unlikely this is a Windows issue. Do you know which version of IPFS you're running? You can find out by running ipfs --version in a terminal:

$ ipfs --version

ipfs version 0.6.0

@jamiehewitt15
Copy link
Author

I'm running ipfs version 0.6.0

I think the problem must be due to the redirect, as it worked fine when I requested from the IP address. I think it might be related to this issue: https://github.com/ipfs/go-ipfs/issues/7527

@johnnymatthews
Copy link
Contributor

Ah, I think you're right. I'm gonna leave this issue as closed for now then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support A question or request for support status/in-progress In progress
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants