Closed Vectorrent closed 1 month ago
I found a solution to this problem. Long story short, if you call dht.get_visible_maddrs()
before attempting to start the server, it will never hang. Clearly, this is not intended behavior, and this method should have no bearing on server bootstrapping... but it does. So, we fixed it with a hack, until upstream fixes this.
I have no idea why this happens. Even when bootstrapping from a local DHT node, initialization may fail with all kinds of errors:
I was sort of able to make this problem less frequent by adding a delay to startup, but it honestly doesn't work very well, if at all.
Could use some help with this one. I've been running into issues like this in Hivemind for years.