cjb / GitTorrent

A decentralization of GitHub using BitTorrent and Bitcoin
MIT License
4.75k stars 264 forks source link

can't seed multiple repos on the same machine #23

Closed anarcat closed 9 years ago

anarcat commented 9 years ago

i have gittorrentd running in one git repo. i want to seed another:

anarcat@marcos:~$ git init test
Dépôt Git existant réinitialisé dans /home/anarcat/test/.git/
anarcat@marcos:~$ cd test
anarcat@marcos:test$ touch .git/git-daemon-export-ok
anarcat@marcos:test$ gittorrentd

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: listen EADDRINUSE
    at errnoException (net.js:901:11)
    at Server._listen2 (net.js:1039:14)
    at listen (net.js:1061:10)
    at Server.listen (net.js:1127:5)
    at DHT.<anonymous> (/home/anarcat/node_modules/gittorrent/gittorrentd:195:6)
    at DHT.EventEmitter.emit (events.js:117:20)
    at /home/anarcat/node_modules/gittorrent/node_modules/bittorrent-dht/client.js:799:16
    at f (/home/anarcat/node_modules/gittorrent/node_modules/bittorrent-dht/node_modules/once/once.js:17:25)
    at onResponse (/home/anarcat/node_modules/gittorrent/node_modules/bittorrent-dht/client.js:987:7)
    at onResponse (/home/anarcat/node_modules/gittorrent/node_modules/bittorrent-dht/client.js:1188:21)

boom.

cjb commented 9 years ago

The way to do this is to run gittorrentd once, from a directory that is the parent of both repos.

anarcat commented 9 years ago

i see, thanks!