Giter Club home page Giter Club logo

Comments (9)

haadcode avatar haadcode commented on May 16, 2024 1

Great to hear! Please don't hesitate to open new issues if you come across any.

from orbitdb.

rkyleg avatar rkyleg commented on May 16, 2024

I am confused about this as well. I am using the kvstore and data persists while the app is running; however, when I restart the app, the data is gone. I am using the IpfsBrowserDaemon with the signalling server from the browser example.

from orbitdb.

zabirauf avatar zabirauf commented on May 16, 2024

Following is what I'm seeing, whenever i start in a new incognito window the count starts from beginning i.e. its not syncing.

orbit-db-example-issue

from orbitdb.

haadcode avatar haadcode commented on May 16, 2024

Hi everyone and thanks for reporting the bugs! We just released a new version of orbit-db, including updated examples. Would you care to take another try and see if this bug still happens?

As a clarification, as @zabirauf shows in his screenshots, you'll have to open the second peer in an incognito tab, otherwise the peers won't connect as they use the same ipfs repo (ie. they have the same IPFS peer id).

from orbitdb.

zabirauf avatar zabirauf commented on May 16, 2024

@haadcode When i run the example, i get the following error

TypeError: db.load is not a function
    at IpfsBrowserDaemon.ipfs.on (index.js:100)
    at IpfsBrowserDaemon.EventEmitter.emit (events.js:78)
    at _initDaemon.then.then (ipfs-browser-daemon.js:20)

from orbitdb.

haadcode avatar haadcode commented on May 16, 2024

@zabirauf I believe this is due to not updating node_modules after pulling the latest. Make sure you do rm -rf node_modules && npm install after you've pulled from master in order to get the latest modules. Let me know if this helped.

from orbitdb.

zabirauf avatar zabirauf commented on May 16, 2024

@haadcode Thanks, that solved the issue. I do see the KVStore to be in sync but the log and counter still seem to be unsynced.

orbit-db-example-issue

from orbitdb.

haadcode avatar haadcode commented on May 16, 2024

@zabirauf thank for confirming this fixed your issue.

I see that in your video, the "Peers" at the top says 0 for both. This means that the two peers are not connected and as such, can't sync the databases (any of them). We still have some bugs related to the connectivity, so it might be that the peers don't connect every time. To go around this, I usually restart both peers until I see "Peers: 1" in both :) Let me know if this helps!

from orbitdb.

zabirauf avatar zabirauf commented on May 16, 2024

@haadcode Thanks a lot, it works. Everything syncs now 👍 . Closing the issue now.

from orbitdb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.