-
Notifications
You must be signed in to change notification settings - Fork 11
Cannot open document with fresh installation #1482
Comments
the problem with that document is that the gateway does not provide it according to the DHT: Only one peer provides it (
Since there is One peer claiming to have it maybe peerswap does not ask direct connected peers.
|
What if we fail to find it in the DHT we fallback to ask the gateway instead of all connected peers? But we only want that document not all the documents the provider has so we sill have to pass |
I think the reproviding problem has to do with WHO reprovides rather than WHAT is being reprovided. Here is the experiment.
Reprovide as a new peer
For this reason, I think DHT is banning gateway peerID maybe they think we are a bad actor, constantly flooding the DHT network? WDYT @burdiyan ? |
@juligasa Thanks for the feedback! I would hope that if a DHT node would not accept the providing record we’d get some error logged, but we don’t see any. That is what concerns me and seems weird. Have you seen any weird errors when providing as a gateway? Maybe try redirecting stdout logs to a file, because DHT logs like crazy and the terminal buffer overflows too quickly to be able to see anything. |
@burdiyan After inspecting the logs I only see one type of logs coming from the
|
@juligasa I was talking about DHT logs, not the providing logs. I'm hoping that if DHT providing request fails for some reason we'd get a log about it. |
@burdiyan Now I repeated the experiment again and the CID has been successfully provided by both the gateway and the fresh new peer 😞 But it wasn't until I used the gateway database that the CID appeared in the DHT so for some reason, the Real gateway still does not provide it (in local tests, I tweaked the code so
and even in the runs that providing ended up working I also saw a lot of these traces:
This resource limit exceeded comes from the resource manager But I already set:
I don't know what is causing that resource limit exceeded. and if that is causing dht providing is sues. Actually, I don't even know why dht needs to connect peer to peer to thousands of peers. Leterally within 5 minutes, I get 94386 traces saying |
Are you setting the resource limit in both I think we should open an issue with: https://github.com/libp2p/go-libp2p-kad-dht |
That part is in the common code shared by both
Which should be enough for the |
Now the document seems to be provided by a lot of peers:
but when putting it on the quick switcher of a fresh new app (ghost town) we can't open it and the errors are:
No matter how many times I retry. Seems like the problem is in the |
Two problems here:
|
I think we should focus first on providing and discovering providers. The fact that we can't connect to peers after we've discovered them I think is either a separate issue, or something that we could tackle ourselves. Could be something related to relays or hole-punching, etc. The first and the most mysterious issues IMO is that DHT providing/discovery works unreliably. |
After the user enters the app for the first time and tries to open a document by URL in the quick-switcher, the document cannot load
This will result in bad experiences when people click "open in mintter app" from the website, even after they have the app running
For example try this document url, which loads fine in the gateway: https://hyper.media/d/FHD735zUfVznrESN5s9JMz
The text was updated successfully, but these errors were encountered: