Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tendermint version supported in Bigchaindb 2.2.2 #2722

Open
rupam150 opened this issue Mar 30, 2021 · 11 comments
Open

Tendermint version supported in Bigchaindb 2.2.2 #2722

rupam150 opened this issue Mar 30, 2021 · 11 comments

Comments

@rupam150
Copy link

Hi , i have started a network in Bigchaindb 2.2.2. server verison , and the tendermint version i am using is 0.31.5-d2eab536

Just wanted to know is this version enough or do i have to upgrade to some newer version of tendermint to work with bigchaindb 2.2.2

@davie0
Copy link
Contributor

davie0 commented Apr 1, 2021

Hello! Currently two Tendermint versions are supported via bigchaindb-abci: 0.22.8 and 0.31.5

@rupam150
Copy link
Author

rupam150 commented Apr 2, 2021

hi @zzappie
I am facing some issue with bigchaindb's tendermint node command , can you please help me out of this , i have also opened the issue wih tendermint but they closed it and asked to open the issue in bigchaindb ,

Hi i have created a 4 node setup in bigchaindb using tendermint
But when i tried to execute tendermint node command in the 4 nodes it is showing some error and blocks are not generated .

Specifications -
Operating sysytem - UBUNTU
Bigchaindb version - 2.2.2
Tendermint versio n - 0.31.5-d2eab536 ( its a earlier version but in bigchiandb doc it is the supported one )

Here i am attaching the snippet of the four nodes ----

  1. While running tendermint node in node 1

tendermint node error node 1

  1. While running tendermint node in node 2

tendermint node error node 2

  1. While running tendermint node in node 3

tendermint node eroor node 3

  1. While running tendermint node in node 4

tendermint out log of peer 4

please help stuck from weeks ,
Thank you !

@davie0
Copy link
Contributor

davie0 commented Apr 2, 2021

It seems like you have number of unrelated issues. But it certain that things are messed up :)

  1. This means that there are more committed blocks in bigchaindb database than in tendermint blockchain. Not sure what the most probable cause of this. Maybe server was crushed or killed.
  2. This is due to you have tendermin already running on this node. killall -r tendermint?
  3. I don't know whats up with dialing issue to be honest. Maybe check that you can ping those hosts. The error following after is probably due same synchronization problem on the first node.
  4. This means that bigchaindb proxy app is not listening on port 26658. Check that bigchaindb instance is running first.

Hope this helps. If you deploying test net you can use bigchaindb-node-ansible this will simplify things.

@rupam150
Copy link
Author

rupam150 commented Apr 2, 2021

Hi @zzappie
After executing the above mentioned steps i am getting this when i tried executing Tendermint node command --

tendermint node error final

Morever can you share some Bigchaindb2.2.2 version codes as all ones given in the document are from old version and i just wanted to know is it possible to POST a transaction to the network without the execution of the Tendermint node command ..

@davie0
Copy link
Contributor

davie0 commented Apr 2, 2021

Ok. I didn't provide any steps. The 1..4 enumeration was referring to enumeration in your previous message.
So its not clear to me what you did exactly.
The worst thing that has happened here is height mismatch. You can drop the database on the node where it happened (backup if you need the last unsynced transactions). In theory it should resync with tendermint upon block replay during startup.

Make sure that bigchaindb is running before tendermint node is started.

From the last log I see that there is also a problem with wall cache. Don't know what to do with that. If it messes with block replay the node will not be synced.

Concerning Dialing fail I think its either because other nodes are down or you have networking issues

From number of blocks (3) I suspect you don't have anything important stored in the database. So my suggestion is to erase the state data (drop mongodb erase tendermint data) try to run it again.

@davie0
Copy link
Contributor

davie0 commented Apr 2, 2021

What is Bigchaindb2.2.2 version codes? :)

@rupam150
Copy link
Author

rupam150 commented Apr 4, 2021

Hi @zzappie Thanks for the reply , will definitely try your steps and will share updates regarding that .
and about the bigchaindb 2.2.2 codes i am just enquiring about that, as per document the CREATE and TRASNFER transactions given , are for earlier versions of bigchaindb , but i have update the bogchaindb to 2.2.2 version so is their any kind of change i have to make or i can use the same sort of CREATE and TRANSFER given .

@rupam150
Copy link
Author

rupam150 commented Apr 4, 2021

hi @zzappie and can please share me the steps of execution like which one should be started initialized first ( wheather its bigchaindb ot tendermint or mongoDB) as i think that i may have mismatch the steps and things might be messing up there also
It would be very helpful for me. Thank you , appreciate your help :-)

@davie0
Copy link
Contributor

davie0 commented Apr 7, 2021

Hi again! Sorry I wasn't available yesterday.

about the bigchaindb 2.2.2 codes i am just enquiring about that, as per document the CREATE and TRASNFER transactions given , are for earlier versions of bigchaindb , but i have update the bogchaindb to 2.2.2 version so is their any kind of change i have to make or i can use the same sort of CREATE and TRANSFER given

BigchainDB 2.2.2 uses 2.0 tx specification that can be found here: https://github.com/bigchaindb/BEPs/tree/master/13
So no changes. There is also VALIDATOR_ELECTION, CHAIN_MIGRATION_ELECTION and VOTE codes/operations but they are only used for adding validators and moving to new chain.

can please share me the steps of execution like which one should be started initialized first

It should be Mongo then BigchainDB then Tendermint
Which deployment template are you using by the way? Or you doing it manually?

@rupam150
Copy link
Author

rupam150 commented Apr 8, 2021

hi @zzappie Thanks for the reply , i am following the steps in simple demployment template given in Bigchaindb doc and installing them as per given in the document , with that i have already Bigchaindb server in 4 my nodes i have created but i am having issue with executing tendermint node command ( may be my nodes are communicating well)

i am updating my genesis.json file for information

{
"genesis_time": "2021-03-11T06:12:00.851676087Z",
"chain_id": "test-chain-ULmGQu",
"consensus_params": {
"block": {
"max_bytes": "22020096",
"max_gas": "-1",
"time_iota_ms": "1000"
},
"evidence": {
"max_age": "100000"
},
"validator": {
"pub_key_types": [
"ed25519"
]
}
},
"validators": [
{
"address": "0C9D9FB3107DCE8714131556B4DA07F2B00EF833",
"pub_key": {
"type": "tendermint/PubKeyEd25519",
"value": "8uXIALV9Q+gg6zJt/IDgxBt8Hp/ajNZNyoCHVX46uKo="
},
"power": "10",
"name": "Node_1"
},
{
"address": "6E0476AAA6B2B0017F8128D5BF1F6458668366FB",
"pub_key": {
"type": "tendermint/PubKeyEd25519",
"value": "SvJNIzuuWoJNokWzfcRR8nBM3WMP3OhSsFGZAlzeE0M="
},
"power": "10",
"name": "Node_2"
},
{
"address": "30F0193A802D6176A1E676399CF32A55D934646F",
"pub_key": {
"type": "tendermint/PubKeyEd25519",
"value": "yZHktDxNKVrzM7GPgSLzcGdnj72KDnGRkOsheMBViQw="
},
"power": "10",
"name": "Node_3"
},
{
"address": "5C3CE187297EF14CB9D7849A5BB81A6DCF803F8B",
"pub_key": {
"type": "tendermint/PubKeyEd25519",
"value": "NNEr+P/WB6TfSag79KKDu3s+jtZiRiC3bLd2RbUh9S8="
},
"power": "10",
"name": "Node_4"
}
],
"app_hash": ""
}

And here is my config.toml file snippet

config toml

And here is the error i am facing while executing tndermint node command

t node

When i tried with proxy_app==kvstore

proxy

i can also provide you any other information regarding the setup , please let me know what may be wrong with the network and how to fix it .?

@davie0
Copy link
Contributor

davie0 commented Apr 12, 2021

Hey!
Your configuration is looking good.
But you need to specify bigchaindb as abci aplication.

Given BigchainDB is already running and listening on 0.0.0.0:26658 you need to run tendermint like so:

tendermint node \
                   --p2p.laddr "tcp://0.0.0.0:26656" \
                   --proxy_app="tcp://0.0.0.0:26658" \
                   --consensus.create_empty_blocks=false \
                   --p2p.pex=false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants