Skip to content
This repository has been archived by the owner on Jul 11, 2019. It is now read-only.

Connected to 0 peers #156

Open
hsribei opened this issue Mar 7, 2016 · 12 comments
Open

Connected to 0 peers #156

hsribei opened this issue Mar 7, 2016 · 12 comments

Comments

@hsribei
Copy link

hsribei commented Mar 7, 2016

Hi! Just trying to run friends for the first time. Started it fine, but I'm still "connected to 0 peers" and I see no way of finding an initial set of peers. Do I have to set that up somewhere? Thanks!

@ungoldman
Copy link
Member

It's quite possible that no one else is on the network :(

@hsribei
Copy link
Author

hsribei commented Mar 7, 2016

So it is a single network that everyone connects to? How does peer discovery work? Could it be some NAT traversal issue?

@ungoldman
Copy link
Member

The logic is here: https://github.com/moose-team/friends-swarm/blob/master/swarm.js. Sorry the repo is not very well documented. Short answer is WebRTC swarm (https://github.com/mafintosh/webrtc-swarm) plus a signal hub (https://github.com/mafintosh/signalhub).

@hsribei
Copy link
Author

hsribei commented Mar 7, 2016

Great, thanks for the refs. I guess there's no actual error, will just lurk longer :)

@hsribei hsribei closed this as completed Mar 7, 2016
@wking
Copy link

wking commented Mar 7, 2016

On Mon, Mar 07, 2016 at 09:52:10AM -0800, Helder Ribeiro wrote:

I guess there's no actual error, will just lurk longer :)

I'd had this problem earlier as well. Since @obvio171 is presumably
lurking, I thought I'd fire up friends locally and see if I could
connect to him, but I'm also seeing “0 peers”. Looking at the network
logs, it looks like the only requests my instance is making is to
GitHub (for my user and avatar). Should I be seeing a request to
https://github.com/mafintosh/signalhub in there?

@hsribei
Copy link
Author

hsribei commented Mar 8, 2016

Ok, I thought I wasn't seeing anyone because no one else was using it, but I just tested it live with @virgilio and we both had 0 peers and couldn't see each other's messages. How can we go about debugging this?

@hsribei hsribei reopened this Mar 8, 2016
@somebody1234
Copy link

@wking Mafintosh's signalhub is still up.

@rschulman
Copy link

I'm seeing the same issue, though I don't know if anyone else is trying to use friends right now. Happy to help out in debugging if I can in any way.

@hemanth
Copy link
Contributor

hemanth commented Apr 25, 2016

No one is active these days?

screen shot 2016-04-25 at 11 25 13 am

@bnolan
Copy link

bnolan commented Oct 19, 2016

😿

@billiegoose
Copy link

So it is pretty lonely on the #friends channel, which is a shame since it was so hard to compile and install. 😝 I spent the day dockerizing peerbot with the intention of leaving one or two around on a free webservice. Unfortunately, the peer-to-peer thing has some feisty networking curiousness and I could only get it to work if I used docker run --net=host which probably precludes it from working in shared hosting environment. I'm currently running it on one of my existing DigitalOcean droplets.

image

I'm hoping that as long as one peer (the peerbot) is always online, the message history will be preserved. Is that assumption correct?

@ungoldman
Copy link
Member

ungoldman commented Jan 9, 2017

@wmhilton yes, message history is preserved and gossiped exclusively between peers. no peers, no history. so peerbot can act as a sort of chanserv / channel history server peer.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants