Tribler/dispersy

No localhost communication

qstokkink opened this issue · 8 comments

Problem

Ever since updating to the latest commit (from 01c6d01 to 9cf7d17) this morning, my localhost nodes are no longer communicating.
To be precise, the only communication is in the DiscoveryCommunity overlay between 2 nodes (out of many in the overlay).

Environment/runtime

estimate someones WAN address is ('X', 7759) (WAN was ('X', 6603), LAN stays ('192.168.0.47', 7759))
estimate someones WAN address is ('X', 7759) (WAN was ('X', 6603), LAN stays ('192.168.0.47', 7759))
estimate someones WAN address is ('Y', 10004) (WAN was ('Y', 54421), LAN stays ('Y', 10004))
estimate someones WAN address is ('X', 7759) (WAN was ('X', 6603), LAN stays ('192.168.0.47', 7759))
estimate someones WAN address is ('Y', 10003) (WAN was ('Y', 54422), LAN stays ('Y', 10003))
estimate someones WAN address is ('Y', 10000) (WAN was ('Y', 54419), LAN stays ('Y', 10000))
estimate someones WAN address is ('Y', 10004) (WAN was ('Y', 54421), LAN stays ('Y', 10004))
estimate someones WAN address is ('Y', 10004) (WAN was ('Y', 54421), LAN stays ('Y', 10004))
estimate someones WAN address is ('X', 7759) (WAN was ('X', 6603), LAN stays ('192.168.0.47', 7759))
estimate someones WAN address is ('Y', 10002) (WAN was ('Y', 54420), LAN stays ('Y', 10002))
estimate someones WAN address is ('Y', 10001) (WAN was ('Y', 54423), LAN stays ('Y', 10001))
estimate someones WAN address is ('Z', 1197) (WAN was ('Z', 7759), LAN stays ('192.168.0.100', 7759))
estimate someones WAN address is ('Z', 1197) (WAN was ('Z', 7759), LAN stays ('192.168.0.100', 7759))
estimate someones WAN address is ('Y', 10002) (WAN was ('Y', 54420), LAN stays ('Y', 10002))
estimate someones WAN address is ('Z', 1197) (WAN was ('Z', 7759), LAN stays ('192.168.0.100', 7759))
estimate someones WAN address is ('Z', 1197) (WAN was ('Z', 7759), LAN stays ('192.168.0.100', 7759))

Does anyone know what could be causing this or does anyone have any pointers where I could insert some debugging statements?

whirm commented

@pimveldhuisen Please, have a look at this, It seems related to your fallback refactor.

interesting. So when running 16-ish Dispersy nodes on a single server it fails. Indeed looks like localhost network 192.168.0.xx detection problem.

@qstokkink Weird, the commit --shouldn't-- change anything unless you previously had issues with netifaces.
Could you check the value of self._netifaces_failed in dispersy.py?

@pimveldhuisen _netifaces_failed stays False the entire time.

@qstokkink Could you try this fix: pimveldhuisen@011e8a9
Either checkout my netifaces_fallback branch (should be up to date with Tribler/devel, except for this commit), or just cherry-pick the commit.

Great! #477 should fix this issue then.

@whirm this can be closed