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

Cannot clone repo #64

Closed
pditommaso opened this issue Sep 12, 2015 · 6 comments
Closed

Cannot clone repo #64

pditommaso opened this issue Sep 12, 2015 · 6 comments

Comments

@pditommaso
Copy link

I'm playing with gittorrent. Trying to clone a repository it hung reporting the following output:

$ git clone gittorrent://github.com/cbcrg/ampa-nf/
Cloning into 'ampa-nf'...
Okay, we want to get HEAD: 3c2bce5f758585fe3e0bf23df77f6f53853bc3b8
Okay, we want to get master: 3c2bce5f758585fe3e0bf23df77f6f53853bc3b8
Okay, we want to get tags/v1.0: ca3d597ea2149978840d5c7a43e3149079fab184

Any clue what it could be the problem?

@cjb
Copy link
Owner

cjb commented Sep 13, 2015

@pditommaso I think it just means that no-one's hosting that repo on gittorrent. #5 handles falling back to talking to github directly in the case where no-one's seeding. (Feel free to pitch in!)

@pditommaso
Copy link
Author

I see. It makes sense, however I'm still confused.

How I can manage to host that repo on gittorrent? I've tried to clone it locally and then to run the gittorrentd daemon, as show below:

$ git clone git@github.com:cbcrg/ampa-nf.git
$ touch ampa-nf/.git/git-daemon-export-ok
$ gittorrentd
in repo ampa-nf/.git/git-daemon-export-ok
ampa-nf/.git/
Announcing 3c2bce5f758585fe3e0bf23df77f6f53853bc3b8 for HEAD on repo ampa-nf/.git/
{"repositories":{"ampa-nf":{"HEAD":"3c2bce5f758585fe3e0bf23df77f6f53853bc3b8","refs/heads/master":"3c2bce5f758585fe3e0bf23df77f6f53853bc3b8"}}}
errors= []

However I'm still unable to clone it by using the gittorrent protocol. What I'm missing ?

@cjb
Copy link
Owner

cjb commented Sep 13, 2015

That's surprising, it should work, perhaps a firewall problem?

@pditommaso
Copy link
Author

Yes, I think it was the firewall. Trying on another machine it worked. Thanks.

@alexgleason
Copy link

Running into this problem too. Here's the output from gittorrentd

alex@Starman:~/GitTorrent$ gittorrentd 
in repo pig-latin/.git/git-daemon-export-ok
pig-latin/.git/
Announcing f29e764924c016d20db226078f3dcd3d901e7de9 for HEAD on repo pig-latin/.git/
{"repositories":{"pig-latin":{"HEAD":"f29e764924c016d20db226078f3dcd3d901e7de9","refs/heads/master":"f29e764924c016d20db226078f3dcd3d901e7de9"}}}
errors= [ { [Error: 203 invalid token] address: '41.100.181.230:10219' },
  { [Error: 203 invalid token] address: '123.18.113.210:21136' },
  { [Error: 204 Unknown query type.] address: '50.81.81.196:6881' },
  { [Error: query timed out] address: '95.134.168.96:35691' },
  { [Error: query timed out] address: '183.82.243.49:58105' },
  { [Error: query timed out] address: '109.60.193.167:62529' },
  { [Error: query timed out] address: '191.177.186.254:5724' },
  { [Error: query timed out] address: '143.248.11.25:27798' },
  { [Error: query timed out] address: '177.135.62.202:18800' },
  { [Error: query timed out] address: '1.253.134.226:45682' },
  { [Error: query timed out] address: '177.133.50.163:41846' },
  { [Error: query timed out] address: '187.207.27.100:12026' },
  { [Error: query timed out] address: '75.158.30.194:20165' },
  { [Error: query timed out] address: '82.27.165.143:52439' },
  { [Error: query timed out] address: '59.97.60.219:15609' },
  { [Error: query timed out] address: '173.60.69.97:80' },
  { [Error: query timed out] address: '117.197.178.163:22236' },
  { [Error: query timed out] address: '83.85.167.138:34478' },
  { [Error: query timed out] address: '145.53.184.204:60286' },
  { [Error: query timed out] address: '185.74.221.102:1049' } ]
hash= 2a0d643de89314ec56f749a851a3807edbdac6b5

Any ideas? Thanks!

@alexpear
Copy link

alexpear commented Jun 3, 2016

If it's a firewall problem, which process should we tell the firewall to allow? git?

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

4 participants