Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    anders
    @tabcat00:matrix.org
    [m]
    unless that is a different node than the one the manifest was created on
    but you still cant fetch it from ipfs/ipld
    Seven Zant (Disco Time)
    @f:matrix.thedisco.zone
    [m]
    it is on a different node
    anders
    @tabcat00:matrix.org
    [m]
    the nodes arent able to communicate
    Seven Zant (Disco Time)
    @f:matrix.thedisco.zone
    [m]
    ah
    anders
    @tabcat00:matrix.org
    [m]
    they cant find each other
    can you still not load anything on the node that wrote the entries in the first place
    Seven Zant (Disco Time)
    @f:matrix.thedisco.zone
    [m]
    im using orbitdb control center to create to try to reduce the amount of potentially wrong things
    ill try using my apps creation settings and seeing what happens
    still times out if i set a timeout
    otherwise hangs?
    anders
    @tabcat00:matrix.org
    [m]
    it wont timeout if its using go-ipfs
    its broken for the block api + ipfs http api
    Seven Zant (Disco Time)
    @f:matrix.thedisco.zone
    [m]
    i set it to time out after 5 seconds so i wouldnt be sitting for hours haha
    but trying to access a local store does not hang!
    but still no writes
    is orbit address supposed to be all lowercase, actually
    anders
    @tabcat00:matrix.org
    [m]
    i dont know what you mean
    Seven Zant (Disco Time)
    @f:matrix.thedisco.zone
    [m]
    i noticed when i created a db in control center it was mixed case
    anders
    @tabcat00:matrix.org
    [m]
    they may use different encoding
    i dont know
    Seven Zant (Disco Time)
    @f:matrix.thedisco.zone
    [m]
    ah
    anders
    @tabcat00:matrix.org
    [m]
    orbitdb control center doesnt use the latest orbitdb version
    Seven Zant (Disco Time)
    @f:matrix.thedisco.zone
    [m]
    ah, alright
    Seven Zant (Disco Time)
    @f:matrix.thedisco.zone
    [m]
    load isnt timing out, just not writing though
    anders
    @tabcat00:matrix.org
    [m]
    plz send a code snippet of opening a store, writing, closing, opening and loading and then reading there are no entries
    this should all be done from the same orbitdb/ipfs node
    Seven Zant (Disco Time)
    @f:matrix.thedisco.zone
    [m]
    this is all i have right now, sorry about all the helper packages
    Seven Zant (Disco Time)
    @f:matrix.thedisco.zone
    [m]
    but most the moving parts are in internal/app/run.go and internal/pkg/commands
    anders
    @tabcat00:matrix.org
    [m]
    oh i didnt know you were using go-orbitdb
    i dont think i can help with that
    Seven Zant (Disco Time)
    @f:matrix.thedisco.zone
    [m]
    oh
    anders
    @tabcat00:matrix.org
    [m]
    thats a different implentation
    Seven Zant (Disco Time)
    @f:matrix.thedisco.zone
    [m]
    ah
    zestified
    @zestified

    Hi team! I'm implementing a Node app that is backed by an orbitDB keyvalue store. My config looks like this:

        const ipfs = await IpfsHttpClient.create({
            host: 'ipfs',
            port: '5001',
            protocol: 'http'
        }); // We have an IPFS node running in the same docker
    
        const orbitDB = await OrbitDB.createInstance(ipfs);
    
        const options = {};
    
        const metricsDB = await orbitDB.keyvalue('kvDb', options)
        await metricsDB.load()
    
        <do db stuff>

    After this I can set and get data but we can't seem to find the data on IPFS (it seems to me that the data is only coming from orbitdb local storage on node). Maybe there is something missing in the config? :pray: Thank you for your time in advance!

    anders
    @tabcat00:matrix.org
    [m]

    I can set and get data but we can't seem to find the data on IPFS

    can you elaborate @zestified

    zestified
    @zestified
    So essentially i can something like metricsDB.set(key, value) and metricsDB.get(key) and that will return the data. However, im not sure whether these key value pair data is persisted on my ipfs node or just in /orbitdb folder (which is created by default whenever i run the app). So how do i find these data on my ipfs?
    anders
    @tabcat00:matrix.org
    [m]
    the keyvalue store is persisted as entries which are stored in ipfs and reduced into the store state after each update
    2 replies
    the /orbitdb folder mainly persists mutable data like latest head hashes
    thats almost definitely the entry hash
    1 reply
    anders
    @tabcat00:matrix.org
    [m]
    the cid for the entry
    you can use it to fetch the entry for that set operation from ipfs
    zestified
    @zestified
    oh gotcha. lemme try that out
    Found it! thank you! :pray:
    breadhunter
    @EmiM

    Hello, unfortunately I (still) have the replication problem after upgrading orbit-db to 0.28.0. I have a simple test that reproduces it (one node adding entries to the log db, other node connecting and waiting for replication). I can see that they are indeed connecting (orbitdb logs and libp2p events show that), I can also see that heads have been exchanged, however the second db does not receive any replication events, the db is empty.

    2021-11-22T21:53:58.577Z [DEBUG] orbit-db: New peer 'QmUZCtB3p9RPjLfk9LdCYc7bdAmVtzg5Tw9YeiNYYqM4VB' connected to '/orbitdb/zdpuB3VCfydEyPvH8ftmokhK19HW1LHmxAPLM8dAje2caFGMB/092183012'
    2021-11-22T21:53:58.578Z [DEBUG] exchange-heads: Create a channel to QmUZCtB3p9RPjLfk9LdCYc7bdAmVtzg5Tw9YeiNYYqM4VB
    2021-11-22T21:53:58.579Z [DEBUG] exchange-heads: Channel created to QmUZCtB3p9RPjLfk9LdCYc7bdAmVtzg5Tw9YeiNYYqM4VB
    2021-11-22T21:53:58.587Z [DEBUG] pubsub: Peer joined /orbitdb/zdpuAvDtJxmX2PxFFvmGAZTj1QoDvThQgZ64LfSGtWox1qW2J/3479623913-test:

    Usually I would assume that the problem is on our side but we have been running this test for a while now and it has been passing.

    My changes are here: ZbayApp/waggle#152, the test can be run locally
    DEBUG='libp2p:websockets:listener:waggle*,waggle:*' ts-node src/nodeTest/testReplicate.ts --nodesCount 1 --timeThreshold 200 --entriesCount 20 --useTor
    Maybe I am missing something obvious, If you had time to look at this I would really appreciate. We can also DM to not spam here.

    anders
    @tabcat00:matrix.org
    [m]
    hmm
    the only thing i can think of would be that the entries are not able to be fetched from ipld but pubsub is working
    haad
    @haad:matrix.org
    [m]
    @EmiM: hit me up in DM and I can help debug your issue 👌
    haad
    @haad:matrix.org
    [m]
    (send the full debug log, pls. by the looks of ^ there's 2 different DBs/pubsub channels in use there)