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

how to determine my hash? #22

Closed
anarcat opened this issue May 31, 2015 · 3 comments · May be fixed by #28
Closed

how to determine my hash? #22

anarcat opened this issue May 31, 2015 · 3 comments · May be fixed by #28

Comments

@anarcat
Copy link

anarcat commented May 31, 2015

so one thing that's still not clear to me is how to announce my gittorrent urls. i understand there's some magic stuff going on on the side of bitcoin, but i don't really care about that - i'm fine with the hash for now.

(besides, it's not clear to me how gittorrentd talks to bitcoin and how i tell it which username i want, but that's another bug report. :)

if i run bittorrentd in a git repository, it seems to do something but I don't know how to do anything after that.

it would be nice if bittorrentd had some sort of usage (-h) or would at least tell the url we can use to fetch from the repo later...

@cjb
Copy link
Owner

cjb commented May 31, 2015

Good idea. I ran gittorrentd in a directory containing multiple git repos, and see:

{"repositories":{"gittorrent":{"master":"3c29320fd5c9e9d4ea2b4936fead9046b6a96534"},"recursers":{"master":"5fbfea8de70ddc686dafdd24b690893f98eb9475"}}}
...
errors= []
hash= 81e24205d4bac8496d3e13282c90ead5045f09ea

This means that my repos are available at:

gittorrent://81e24205d4bac8496d3e13282c90ead5045f09ea/recursers
gittorrent://81e24205d4bac8496d3e13282c90ead5045f09ea/gittorrent

@anarcat
Copy link
Author

anarcat commented May 31, 2015

hmm... is this a new feature or something? i don't see this here, and i have a directory with a single git repo here:

anarcat@marcos:gittorrent$ DEBUG='*' gittorrentd
  bittorrent-dht [4325e72] new DHT 4325e72fd446507acf886162539e27626434265c +0ms
  bittorrent-dht [4325e72] listen 6881 +22ms
  bittorrent-dht [4325e72] bootstrap with ["dht.gittorrent.org:6881","core.gittorrent.org:6881"] +4ms
  bittorrent-dht [4325e72] emit listening 6881 +3ms
  bittorrent-dht [4325e72] lookup (find_node) 4325e72fd446507acf886162539e27626434265c +2ms
  bittorrent-dht [4325e72] sent find_node 4325e72fd446507acf886162539e27626434265c to 192.34.86.36:6881 +1ms
  bittorrent-dht [4325e72] sent find_node 4325e72fd446507acf886162539e27626434265c to 192.34.86.38:6881 +2ms
  bittorrent-dht [4325e72] addNode c10923add1abbbfe336647762199873147977432 192.34.86.36:6881 discovered from 192.34.86.36:6881 +30ms
  bittorrent-dht [4325e72] skip addNode 72.0.72.144:59319 4325e72fd446507acf886162539e27626434265c; that is us! +1ms
  bittorrent-dht [4325e72] addNode ba244346641826772119ed089ce5f5a2670e2a55 72.0.72.144:59319 discovered from 192.34.86.36:6881 +0ms
  bittorrent-dht [4325e72] addNode 1721eafd0e5c9ab92a685c8034997ee57d775660 71.82.56.112:6881 discovered from 192.34.86.36:6881 +0ms
  bittorrent-dht [4325e72] addNode 43364f76876c346654de705917239954f1811711 192.34.86.36:33978 discovered from 192.34.86.36:6881 +0ms
  bittorrent-dht [4325e72] addNode 09875a346cfb3e464b93a3a9575427fb3683fbfc 71.82.56.112:6881 discovered from 192.34.86.36:6881 +0ms
  bittorrent-dht [4325e72] skip addNode 127.0.0.1:6881 81e24205d4bac8496d3e13282c90ead5045f09ea; that is us! +0ms
  bittorrent-dht [4325e72] addNode ad243753f8ccb7efc5eed33bfa1085d04ce1ce92 37.165.101.42:61405 discovered from 192.34.86.36:6881 +1ms
  bittorrent-dht [4325e72] addNode 5de9094f8098bba4eb9570618974e818190fd381 71.82.56.112:54118 discovered from 192.34.86.36:6881 +0ms
  bittorrent-dht [4325e72] addNode 05766cf2894a8b1d309ce4ae603717bd4fc594f9 37.165.101.42:61482 discovered from 192.34.86.36:6881 +0ms
  bittorrent-dht [4325e72] addNode db5d92d00063b3383a9bd56b3633ba5a81e00a92 71.82.56.112:49333 discovered from 192.34.86.36:6881 +0ms
  bittorrent-dht [4325e72] addNode 5aa7be3d49b3446216c151b98879398a5fc9fcde 192.34.86.45:6881 discovered from 192.34.86.36:6881 +0ms
  bittorrent-dht [4325e72] addNode 1bb51cfc419f17f28017a4d870cf98f356e117f9 127.0.0.1:32817 discovered from 192.34.86.36:6881 +0ms
  bittorrent-dht [4325e72] addNode 207bffca2a799f418f47360b12d44df5b1cfdd81 71.82.56.112:57438 discovered from 192.34.86.36:6881 +0ms
  bittorrent-dht [4325e72] addNode 98e7f34e2bf620ce1278da96ccc7a0544976677d 71.82.56.112:38627 discovered from 192.34.86.36:6881 +0ms
  bittorrent-dht [4325e72] got lookup response from c10923add1abbbfe336647762199873147977432 +0ms
  bittorrent-dht [4325e72] sent find_node 4325e72fd446507acf886162539e27626434265c to 71.82.56.112:38627 +1ms
  bittorrent-dht [4325e72] sent find_node 4325e72fd446507acf886162539e27626434265c to 71.82.56.112:57438 +1ms
  bittorrent-dht [4325e72] sent find_node 4325e72fd446507acf886162539e27626434265c to 127.0.0.1:32817 +0ms
  bittorrent-dht [4325e72] sent find_node 4325e72fd446507acf886162539e27626434265c to 192.34.86.45:6881 +0ms
  bittorrent-dht [4325e72] sent find_node 4325e72fd446507acf886162539e27626434265c to 71.82.56.112:49333 +1ms
  bittorrent-dht [4325e72] addNode 5aa7be3d49b3446216c151b98879398a5fc9fcde 192.34.86.45:6881 discovered from 192.34.86.45:6881 +29ms
  bittorrent-dht [4325e72] skip addNode 72.0.72.144:61218 4325e72fd446507acf886162539e27626434265c; that is us! +0ms
  bittorrent-dht [4325e72] addNode ba244346641826772119ed089ce5f5a2670e2a55 72.0.72.144:61218 discovered from 192.34.86.45:6881 +0ms
  bittorrent-dht [4325e72] addNode 1721eafd0e5c9ab92a685c8034997ee57d775660 71.82.56.112:6881 discovered from 192.34.86.45:6881 +0ms
  bittorrent-dht [4325e72] addNode 43364f76876c346654de705917239954f1811711 192.34.86.36:33978 discovered from 192.34.86.45:6881 +0ms
  bittorrent-dht [4325e72] addNode 09875a346cfb3e464b93a3a9575427fb3683fbfc 71.82.56.112:6881 discovered from 192.34.86.45:6881 +0ms
  bittorrent-dht [4325e72] addNode c10923add1abbbfe336647762199873147977432 192.34.86.36:6881 discovered from 192.34.86.45:6881 +0ms
  bittorrent-dht [4325e72] addNode ad243753f8ccb7efc5eed33bfa1085d04ce1ce92 37.165.101.42:61407 discovered from 192.34.86.45:6881 +0ms
  bittorrent-dht [4325e72] addNode 5de9094f8098bba4eb9570618974e818190fd381 71.82.56.112:54118 discovered from 192.34.86.45:6881 +0ms
  bittorrent-dht [4325e72] addNode 05766cf2894a8b1d309ce4ae603717bd4fc594f9 37.165.101.42:61486 discovered from 192.34.86.45:6881 +1ms
  bittorrent-dht [4325e72] addNode db5d92d00063b3383a9bd56b3633ba5a81e00a92 71.82.56.112:49333 discovered from 192.34.86.45:6881 +0ms
  bittorrent-dht [4325e72] addNode 1bb51cfc419f17f28017a4d870cf98f356e117f9 192.34.86.36:32817 discovered from 192.34.86.45:6881 +0ms
  bittorrent-dht [4325e72] addNode 207bffca2a799f418f47360b12d44df5b1cfdd81 71.82.56.112:57438 discovered from 192.34.86.45:6881 +0ms
  bittorrent-dht [4325e72] addNode 98e7f34e2bf620ce1278da96ccc7a0544976677d 71.82.56.112:38627 discovered from 192.34.86.45:6881 +0ms
  bittorrent-dht [4325e72] got lookup response from 5aa7be3d49b3446216c151b98879398a5fc9fcde +0ms
  bittorrent-dht [4325e72] sent find_node 4325e72fd446507acf886162539e27626434265c to 192.34.86.36:32817 +1ms
  bittorrent-dht [4325e72] addNode 1bb51cfc419f17f28017a4d870cf98f356e117f9 192.34.86.36:32817 discovered from 192.34.86.36:32817 +28ms
  bittorrent-dht [4325e72] skip addNode 72.0.72.144:54465 4325e72fd446507acf886162539e27626434265c; that is us! +0ms
  bittorrent-dht [4325e72] addNode 1721eafd0e5c9ab92a685c8034997ee57d775660 71.82.56.112:6881 discovered from 192.34.86.36:32817 +0ms
  bittorrent-dht [4325e72] addNode 43364f76876c346654de705917239954f1811711 127.0.0.1:33978 discovered from 192.34.86.36:32817 +0ms
  bittorrent-dht [4325e72] addNode 09875a346cfb3e464b93a3a9575427fb3683fbfc 71.82.56.112:6881 discovered from 192.34.86.36:32817 +0ms
  bittorrent-dht [4325e72] addNode c10923add1abbbfe336647762199873147977432 192.34.86.36:6881 discovered from 192.34.86.36:32817 +0ms
  bittorrent-dht [4325e72] skip addNode 127.0.0.1:6881 81e24205d4bac8496d3e13282c90ead5045f09ea; that is us! +0ms
  bittorrent-dht [4325e72] addNode ad243753f8ccb7efc5eed33bfa1085d04ce1ce92 37.165.101.42:61408 discovered from 192.34.86.36:32817 +0ms
  bittorrent-dht [4325e72] addNode 5de9094f8098bba4eb9570618974e818190fd381 71.82.56.112:54118 discovered from 192.34.86.36:32817 +0ms
  bittorrent-dht [4325e72] addNode 05766cf2894a8b1d309ce4ae603717bd4fc594f9 37.165.101.42:61493 discovered from 192.34.86.36:32817 +2ms
  bittorrent-dht [4325e72] addNode db5d92d00063b3383a9bd56b3633ba5a81e00a92 71.82.56.112:49333 discovered from 192.34.86.36:32817 +0ms
  bittorrent-dht [4325e72] addNode 5aa7be3d49b3446216c151b98879398a5fc9fcde 192.34.86.45:6881 discovered from 192.34.86.36:32817 +0ms
  bittorrent-dht [4325e72] addNode 207bffca2a799f418f47360b12d44df5b1cfdd81 71.82.56.112:57438 discovered from 192.34.86.36:32817 +0ms
  bittorrent-dht [4325e72] addNode 98e7f34e2bf620ce1278da96ccc7a0544976677d 71.82.56.112:38627 discovered from 192.34.86.36:32817 +0ms
  bittorrent-dht [4325e72] got lookup response from 1bb51cfc419f17f28017a4d870cf98f356e117f9 +0ms
  bittorrent-dht [4325e72] sent find_node 4325e72fd446507acf886162539e27626434265c to 37.165.101.42:61493 +1ms
  bittorrent-dht [4325e72] got lookup error: query timed out +2s
  bittorrent-dht [4325e72] sent find_node 4325e72fd446507acf886162539e27626434265c to 71.82.56.112:54118 +1ms
  bittorrent-dht [4325e72] got lookup error: query timed out +11ms
  bittorrent-dht [4325e72] sent find_node 4325e72fd446507acf886162539e27626434265c to 37.165.101.42:61408 +1ms
  bittorrent-dht [4325e72] got lookup error: query timed out +0ms
  bittorrent-dht [4325e72] sent find_node 4325e72fd446507acf886162539e27626434265c to 71.82.56.112:6881 +1ms
  bittorrent-dht [4325e72] got lookup error: query timed out +0ms
  bittorrent-dht [4325e72] sent find_node 4325e72fd446507acf886162539e27626434265c to 127.0.0.1:33978 +0ms
  bittorrent-dht [4325e72] got lookup error: query timed out +1ms
  bittorrent-dht [4325e72] sent find_node 4325e72fd446507acf886162539e27626434265c to 72.0.72.144:61218 +0ms
  bittorrent-dht [4325e72] got lookup error: query timed out +61ms
  bittorrent-dht [4325e72] got lookup error: query timed out +2s
  bittorrent-dht [4325e72] got lookup error: query timed out +34ms
  bittorrent-dht [4325e72] got lookup error: query timed out +0ms
  bittorrent-dht [4325e72] got lookup error: query timed out +0ms
  bittorrent-dht [4325e72] got lookup error: query timed out +1ms
  bittorrent-dht [4325e72] terminating lookup (find_node) 4325e72fd446507acf886162539e27626434265c +0ms
  bittorrent-dht [4325e72] K closest nodes are: +0ms
  bittorrent-dht [4325e72]   72.0.72.144:61218 ba244346641826772119ed089ce5f5a2670e2a55 +0ms
  bittorrent-dht [4325e72]   71.82.56.112:6881 1721eafd0e5c9ab92a685c8034997ee57d775660 +0ms
  bittorrent-dht [4325e72]   127.0.0.1:33978 43364f76876c346654de705917239954f1811711 +0ms
  bittorrent-dht [4325e72]   71.82.56.112:6881 09875a346cfb3e464b93a3a9575427fb3683fbfc +0ms
  bittorrent-dht [4325e72]   192.34.86.36:6881 c10923add1abbbfe336647762199873147977432 +0ms
  bittorrent-dht [4325e72]   37.165.101.42:61408 ad243753f8ccb7efc5eed33bfa1085d04ce1ce92 +0ms
  bittorrent-dht [4325e72]   71.82.56.112:54118 5de9094f8098bba4eb9570618974e818190fd381 +0ms
  bittorrent-dht [4325e72]   37.165.101.42:61493 05766cf2894a8b1d309ce4ae603717bd4fc594f9 +1ms
  bittorrent-dht [4325e72]   71.82.56.112:49333 db5d92d00063b3383a9bd56b3633ba5a81e00a92 +0ms
  bittorrent-dht [4325e72]   192.34.86.45:6881 5aa7be3d49b3446216c151b98879398a5fc9fcde +0ms
  bittorrent-dht [4325e72]   192.34.86.36:32817 1bb51cfc419f17f28017a4d870cf98f356e117f9 +0ms
  bittorrent-dht [4325e72]   71.82.56.112:57438 207bffca2a799f418f47360b12d44df5b1cfdd81 +0ms
  bittorrent-dht [4325e72]   71.82.56.112:38627 98e7f34e2bf620ce1278da96ccc7a0544976677d +0ms
  bittorrent-dht [4325e72] emit ready +0ms

doesn't look like it's doing anything (although it did seem to create ed25519.key)...

@anarcat
Copy link
Author

anarcat commented May 31, 2015

oh i see, i need to touch .git/git-daemon-export-ok...

@anarcat anarcat closed this as completed May 31, 2015
anarcat added a commit to anarcat/GitTorrent that referenced this issue May 31, 2015
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