-
-
Notifications
You must be signed in to change notification settings - Fork 557
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
OrbitDB can't be opened - AggregateError: All promises were rejected #1173
Comments
At a glance, the aggregate error would suggest an issue from reading records from the underlying IPFS blockstore. My hunch is that, for whatever reason, the in-memory blockstore is being unloaded and reloaded resulting in the inability for OrbitDB to read the blocks. Deleting a record may trigger a re-read of the blocks (perhaps for re-indexing). Can I replicate the issue from deContact? If not, I'll hopefully have some time to try and set up a test to isolate the problem. |
I'll try to give you some more info on how to reproduce it:
|
I can't reproduce it anymore. But I guess it is hiding somewhere around the corner. But until then I'll close the issue to reduce the whole noise it makes. ;) |
Just made another test with two Brave browsers (one Mac - one Linux) with a collegue and could reproduce the problem one more time in the following scenario:
I will try now to reproduce this with another person! At least this proofs now that my Chrome is not some sort of strangely misconfigured since I used a completely empty Brave for that. |
After testing with both @silkroadnomad and the libp2p devs, we are thinking the problem is related to the stream returned by libp2p.dial() prematurely breaking. According to the libp2p devs, the a connection should be re-established but this does not seem to be the case. The workaround suggestion is to provide some kind of keep-alive to ensure two peers are reconnected if the connection prematurely ends. |
From time to time in my Chrome browser (and also in an Opera instance) after deleting a record from a document type db, records of the db can't be read anymore. Reloading the browser doesn't help, no records can't be read at all.
An excecption is thrown, after db.all()
"AggregateError: All promises were rejected "
@orbitdb/core 2.1.0
helia 4.1.0
Current Workaround:
The text was updated successfully, but these errors were encountered: