Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Sandip
@ssk-git

[2019-11-10 20:06:31] [INFO] (bigchaindb.core) Tendermint version: 0.31.5-d2eab536 (MainProcess - pid: 11713) [2019-11-10 20:06:31] [ERROR] (bigchaindb.core) Got invalid InitChain ABCI request (time { seconds: 1573405062 nanos: 883873095 } chain_id: "test-chain-XlsY5T" consensus_params { block { max_bytes: 22020096 max_gas: -1 } evidence { max_age: 100000 } validator { pub_key_types: "ed25519" } } validators { pub_key { type: "ed25519" data: "\337LM:X\302\030\257\251e\305\262\231jm\030\306\260\305\366\340\374\377e\367\343\352O\376\310W>" } power: 10 } validators { pub_key { type: "ed25519" data: "\360_\340\355\364\247\215\204<mP\326W.\316\360\250i=\201\225\\\004\376\330\204\0003\016p\254\222" } power: 10 } validators { pub_key { type: "ed25519" data: "B\303R\353J\273\363\212\315\266;\330\320\343=\211.\333\262t\370\035\361\353\020\033\225\322\341\267\231o "

might be the genesis.json files not matching on all nodes.also check for config.toml files too.

Sandip
@ssk-git
@BleoceanTech_gitlab first check chain_id: "test-chain-XlsY5T" is same or not on all nodes or run http://0.0.0.0:26657/status? in browser
Sandip
@ssk-git

Fresh Deployment

fuser -k 9984/tcp
fuser -k 26656/tcp
fuser -k 26657/tcp

1.rm -rf ~/.tendermint/*
2.bigchaindb -y drop
3.bigchaindb configure
a. API Server bind :0.0.0.0:9984
4.bigchaindb start

* first run all above steps on all nodes

5.tendermint testnet
6.cd mytestnet
7.on node0

     * cp  -r node0/* ~/.tendermint/
     * scp -r node1/* node1user@<node1-ip-address>:/home/node1user/.tendermint/
     * scp -r node2/* node2user@<node2-ip-address>:/home/node2user/.tendermint/
     * scp -r node3/* node3user@<node3-ip-address>:/home/node3user/.tendermint/ 

+Run Following command on all nodes
8.tendermint node --consensus.create_empty_blocks=false --proxy_app=tcp://0.0.0.0:26658

  • check tendermint logs
Kirill Matrosov
@kdmatrosov
Is any guide to config docker-compose with bigchain for production?
I know about this https://docs.bigchaindb.com/projects/server/en/latest/appendices/all-in-one-bigchaindb.html but it is not recommended
mnugent3
@mnugent3
Can anyone guide me to query a block, i.e I want to get the contents of the block? I can use either mongo shell or mongodb compass
mnugent3
@mnugent3
just want to clarify what I want to do. I know I can query assets, and find blocks, but as part of my last testing phase I want to query to the contents of a block. I can't find any information regarding this? or does BigchainDB only allow to query assets?
And a final question, if the assets were to disappear but you have your blocks, how do the assets get re-created? or is this possible?
Kirill Matrosov
@kdmatrosov
Can I reinit ApiEndpoints for bigchain in any way?
David Dashyan
@davie-lab
@gelinger777 Yep it is operational list organizations use it in production. There is no enterprise level support
@kdmatrosov Production ready deployment scheme is on the way. At the moment there are reference templates only.
David Dashyan
@davie-lab
@mnugent3 You can use tendermint API to get block contents. They are stored in leveldb by tendermint in .tendermint/data folder by default. You can inspect it using drivers to leveldb.
@mnugent3 what do you mean by "dissapeared"? Like you dropped the db?
sddophin
@dolphinsd
@jrb0043 - we run into the issue, as a latest tendermint version has a new private key file in data directory which does not exist on previous installation, it would not start, as it is looking for it.
Sandip
@ssk-git
@dolphinsd priv_validator_state.json it's only to maintain block height or state. If you are using fresh bigchaindb setup then first you have to run tendermint unsafe_reset_all and tendermint unsafe_reset_priv_validator .after start with tendermint init
David Dashyan
@davie-lab
@dolphinsd Did you say latest tm versio? Bcdb 2.0.0 supports tendermint v0.31.5
Bleocean
@BleoceanTech_gitlab

@ssk-git @davie-lab Thanks for your help. I am able to deploy the network. But now wen I am trying to send the transaction I am getting error as :
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/cruzz/.local/lib/python3.6/site-packages/bigchaindb_driver/driver.py", line 375, in send_commit headers=headers) File "/home/cruzz/.local/lib/python3.6/site-packages/bigchaindb_driver/transport.py", line 82, in forward_request backoff_cap=backoff_cap, File "/home/cruzz/.local/lib/python3.6/site-packages/bigchaindb_driver/connection.py", line 91, in request **kwargs, File "/home/cruzz/.local/lib/python3.6/site-packages/bigchaindb_driver/connection.py", line 128, in _request raise exc_cls(response.status_code, text, json, kwargs['url']) bigchaindb_driver.exceptions.TransportError: (500, '{"message":"Internal error - Error on broadcastTxCommit: EOF","status":500}\n', {'message': 'Internal error - Error on broadcastTxCommit: EOF', 'status': 500}, 'https://node0.bleocean.com:443/api/v1/transactions/')
when I again send the same traansaction it gives error as:
bigchaindb_driver.exceptions.BadRequest: (400, '{"message":"Internal error - Error on broadcastTxCommit: Tx already exists in cache","status":400}\n', {'message': 'Internal error - Error on broadcastTxCommit: Tx already exists in cache', 'status': 400}, 'https://node0.bleocean.com:443/api/v1/transactions/')

However the transaction is not reflecting in mongodb. can you please help why this is happening? first 2-3 transaction committed properly. Now it is giving error.

Sandip
@ssk-git
@BleoceanTech_gitlab check last height of block using mongo shell and 0.0.0.0:26657/status. might be it's not matching.try to create new 'create transaction' or 'transfer' any of the previous transaction.
Jazek
@jrb0043
just a theorical question, is bigchaindb a distributed ledger or a full blockchain ecosystem?? From what i have read a ledger has a DB meanwhile a blockchain has blocks,right?
But bigchain has both
kalyanipullela
@kalyanipullela

Hello Everyone,

While working with BigchainDB test network, we have a collection of blocks in the BigchainDB(nothing but mongoDB).For every transaction, its generating two blocks
So I have doubt, why its generating two blocks for every transaction and how to find the exact height of the block.

Thank you

kalyanipullela
@kalyanipullela

Another question

The BigchainDB doesn't have any exposed API to get all assets and some other APIs, and if I directly do a query to a node's MongoDB, it's possible. So should I do that, or my idea is wrong in mind?

And what will happen if I do some changes directly on a node's MongoDB, will it be recovered by other nodes (auto - synchronous) or just become an invalid node (no more a validator)?

Bleocean
@BleoceanTech_gitlab
Yes. I also have similar query as @kalyanipullela . As data stored as metadata can be edited, If i want to update the metadata how can I do it? As asked by @kalyanipullela directly querying mongodb to update the metadata is surely not the solution. Are there any APIs available to update metadata. Or should i need to transfer the asset Everytime i need to update the metadata?
kalyanipullela
@kalyanipullela

Hello @mnugent3

Could you please suggest how to deploy the BigchainDB in the cloud. I'm using GCP and created an instance and followed the below docs
http://docs.bigchaindb.com/projects/server/en/latest/simple-deployment-template/index.html
While setting up the tendermint, tendermint init is initialized successfully but the tendermint node is not running

Am I doing anything wrong?
Could you please help me out how to deploy BigchainDB in an instance?

Thanks in Advance

execc
@execc
Hi, guys. I've been working with BigchainDB, and run into a bug with it's development all-in-one image. I'm unable to connect to a mongodb from host machine.
Apparenyly, it's fixed in bigchaindb/bigchaindb#2674
Any chance of merging it?
David Dashyan
@davie-lab
@execc merged!
David Dashyan
@davie-lab
@BleoceanTech_gitlab @kalyanipullela Hi! Transactions are stored in tendermint blockchain.You can't edit metadata once it has been registered in blockchain. Block id is calculated using hash function on transaction body+metadata.
@kalyanipullela regarding your question on accidentlal change in database... There might be some corner cases (I am not sure) but generally it sycnchronizes with peers right away.
kalyanipullela
@kalyanipullela

Hello Everyone,

Is there any blog/repo that will make understand to use the bigchaindb with hyperledger fabric
I have found https://github.com/bigchaindb/bigchaindb-hyperledger.git. Other than this, is there any links available?

Bhanu Kandregula
@bhanukandregula

@kalyanipullela https://blog.bigchaindb.com/bigchaindb-hyperledger-fabric-integration-4c65e5811671

And this is pretty much same as your repo content owners. Hope it helps.

Giovanni Rosa
@grosa1_gitlab
Hello Everyone, I'm new to b
Hello Everyone, I'new to bigchaindb. I read the documentation and did some tests, but the API are always publicly accessible. is there a possibility to limit access, like an api key?
kalyanipullela
@kalyanipullela
@bhanukandregula Thank you
Junwei
@junwei0117
Is it possible to change the mongoDB to SQL?
Twizzes
@Twizzes
@junwei0117 you would have to do this yourself. At that point, though, you'd almost be better off starting from scratch
Divyani
@Divyani_gitlab
Hello everyone, how to install bigchaindb on a VM without any internet access. Though files can be copied to the VM
Sandip
@ssk-git
@Divyani_gitlab If u want to setup using python driver then VM required an internet access.
Divyani
@Divyani_gitlab
I am trying using bigchain tar
but thats not working
Divyani
@Divyani_gitlab
Please help with the setup
Sandip
@ssk-git
python3.6 setup.py install this also requires an internet.
Divyani
@Divyani_gitlab
@ssk-git Yes thats where I am stuck. You have any reference available?
Sandip
@ssk-git
@Divyani_gitlab No Mam.
David Dashyan
@davie-lab
@Divyani_gitlab There is https://github.com/ipdb/ipdb-guix. You can use it if you have guix package manager together with guix pack command to create self contained bigchaindb distribution. It's a bit tricky and requires some tinkering. But I am going to create ci for that soon.
Divyani
@Divyani_gitlab
Thanks @davie-lab
Henrique Couto
@henriquecouto
Hey. I'm trying add nodes in my local network but I can't find how to do in docs for version 2. How is the best way to add nodes?