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]
    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)
    Peter Blockman
    @peterblockman

    Hello, I am building a react app working with orbit-db. I am having this error Error:undefinedis not supported by the IPLD Data Model and cannot be encoded
    I initialize IPFS like this https://github.com/ipfs-shipyard/ipfs-share-files/blob/2d3aecdbc694e41d3151e09526865eb5c88334cb/src/bundles/ipfs-provider.js#L44 with the latest version of ipfs-provider, ipfs-http-client and ipfs-core

    "ipfs-http-client": "^54.0.1",
     "ipfs-provider": "^2.1.0",
    "ipfs-core": "0.12.2"
     "orbit-db": "^0.28.0",
      "orbit-db-store": "^4.3.2",

    Any idea? thank you in advance

    pyc
    @xphorm:matrix.org
    [m]
    hello
    anyone tell me how to make a code block in this chat?
    1 reply
    PeacefulAF
    @PeacefulAF
    can I use web3 storage with orbitdb and how to connect it?
    pyc
    @xphorm:matrix.org
    [m]
    Actually someone told me you can use ```js
    And then in the new line you put code
    anders
    @tabcat00:matrix.org
    [m]
    @peterblockman: that usually happens when you are setting undefined or null to a value that is being encoded and uploaded to ipfs/ipld. you should check to make sure you arent doing that with whatever orbitdb store you are using
    1 reply
    Prasad Karmalkar
    @prasadkarmalkar
    Hello I am new to orbit db. I was trying to build sample application with orbit db but when i create app with node js and try to connect that database with its address using control center data which i had inserted from app is not displaying in control center
    someone please help me with this
    anders
    @tabcat00:matrix.org
    [m]
    you may need to add things to your ipfs config that enable the node to discover and connect to peers
    Prasad Karmalkar
    @prasadkarmalkar
    const ipfsOptions = {
    repo: './ipfs2',
    EXPERIMENTAL: {
    pubsub: true
    }
    }
    THIS IS MY IPFS CONFIG