-
Notifications
You must be signed in to change notification settings - Fork 44
FAQ: Database replication is not working #64
Comments
I ran into this same problem, trying to get a DB to replicate across IPFS nodes running the node.js implementation of js-IPFS and Orbit-DB. I was trying to get a locally running node.js app (Node A) to talk with another peer running in a Virtual Machine (VM) (Node B). They did not appear to be communicating and the DB was not getting replicated. Here is how I went about debugging. I started by adding an
Running the software again, I could see that the replication event never fired. I set up a third node on a Digital Ocean Droplet cloud server (Node C). After running the software I could also see the replication event was not firing. I copied the multiaddr for Node C and added it to the first two nodes with this code:
I was able to ensure that Node C was in the bootstrap list with this command:
As soon as I added the |
To help myself understand the intricacies of libp2p and orbit-db replication, I created this Check out the README in that folder. It describes the various network configurations. The code is currently replicating the example database across firewalled peers. |
@christroutner That is super cool - do you want to add that repo to the https://github.com/orbitdb/awesome-orbitdb repo in the Tools section? |
Moving this to the Field Manual Repo |
Can the answer be updated already on https://github.com/orbitdb/orbit-db/blob/master/FAQ.md#database-replication-is-not-working-why? |
This is probably the most frequently asked question and it needs canonical answer as well as detailed "troubleshooting" steps as the reasons seem to vary. However, there are two major ones that I seen constantly popping up: using orbitdb in app code (eg. calling
load()
or listening forreplicated
event) and IPFS problems (which can be due to many reasons).Leaving this open to collect all the relevant issues and answers as I'm pretty sure this has been answered in the past by multiple people to multiple questions around the topic.
Would love comments and contributions to link to the issues or a PR to gather the information to a document directly.
Possibly related issues orbitdb/orbitdb#264, orbitdb/orbit-db#349, orbitdb/orbitdb#315 and orbitdb/orbit-db#442. There may be others.
The text was updated successfully, but these errors were encountered: