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

Swarm nodes don't find each other #18182

Closed
petyaracz opened this issue Nov 26, 2018 · 1 comment
Closed

Swarm nodes don't find each other #18182

petyaracz opened this issue Nov 26, 2018 · 1 comment

Comments

@petyaracz
Copy link

System information

Swarm
Version: 0.3.7-unstable
Go Version: go1.10.3
OS: darwin

Expected behaviour

Swarm nodes with the same network id find each other.

Actual behaviour

Sometimes nodes find each other. Sometimes they don't. In that case, sometimes they find each other in a few minutes. Sometimes they don't.

This is a behaviour that is challenging to replicate, even on my own machine.

Steps to reproduce the behaviour

To demonstrate the isue, I used the swarm test network which builds a network in docker using terraform.

But I'm sure I've seen this issue come up (a) outside this setup (b) outside docker.

echo 'did it connect?' > diditconnect.txt

terraform apply -var 'swarm_count=2'
yes
sleep 30
docker exec -it swarm1 geth --exec 'admin.peers' attach /data/bzzd.ipc | wc -l >> diditconnect.txt
terraform destroy
yes

I repeated lines 3-8 a bunch of times (because terraform </3 loops). The resulting file diditconnect.txt looks sg like this: 1,3,1,1,23,22,1,1,1
So no connection the 1st-4th time and so admin.peers returns [] (I have no idea what 3 is!). And then connection the 5th-6th time (so `admin.peers' returns node info on node 2) and then again no connection for 7th-9th.

@zelig
Copy link
Contributor

zelig commented Nov 27, 2018

filed under ethersphere ethersphere/swarm#1020

@zelig zelig closed this as completed Nov 27, 2018
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

3 participants