-
Notifications
You must be signed in to change notification settings - Fork 72
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
error waiting for container: context canceled #284
Comments
Your network seems to be quite big (~26 running docker containers in total). Please check if you have enough RAM available for Docker (I would say 10-12GB). If the issue remains, please send us full Fablo output |
I am running 4 orgs with 1 peer each and couchdb for each peer and I am using 3 orderers with raft and but when tls : 'true', Error :: Please Help |
{ ], |
Hi @jerry-98
|
Hi @Hejwo Command: docker exec cli.org1.com peer chaincode invoke peer0.org1.com -C "my-channel1" -n "chaincode1" -c '{"Args":["KVContract:put", "nameField", "Random Person"]}' --tls --cafile "/var/hyperledger/cli/crypto-orderer/tlsca.orderer.com-cert.pem" Output : 2022-02-08 13:24:34.196 UTC 0001 INFO [chaincodeCmd] InitCmdFactory -> Retrieved channel (my-channel1) orderer endpoint: orderer0.group1.orderer.com:7030 BUT Command docker exec cli.org1.com peer chaincode invoke peer0.org1.com -C "my-channel1" -n "chaincode1" -c '{"Args":["KVContract:get", "nameField"]}' --tls --cafile "/var/hyperledger/cli/crypto-orderer/tlsca.orderer.com-cert.pem" Output THe asset is not being added to world state |
ah, my bad - In your case another subtlety of Hyperledger Fabric is important:
last flag ensures that we wait for response event. It also guarantees more verbose output. With it response is:
Which is normal - default endorsement policy requires majority of organizations to approve transaction. It's not happening because we must list other org peers and their certificates. |
So finally in your case you should execute:
for query i would recommend not using
|
Thanks for guidance |
Thanks for your comment. We will continue this discussion about compatibility with Fabric samples in #285 |
occur frequently :error waiting for container: context canceled
my conifg:
{
"$schema": "https://github.com/softwaremill/fablo/releases/download/1.0.0/schema.json",
"global": {
"fabricVersion": "2.3.2",
"tls": false,
"tools": {
"explorer": true
}
},
"orgs": [
{
"organization": {
"name": "Orderer",
"domain": "orderer.qhd.com"
},
"orderers": [
{
"groupName": "group1",
"type": "solo",
"instances": 1
}
]
},
{
"organization": {
"name": "Org1",
"domain": "org1.qhd.com"
},
"peer": {
"instances": 1,
"db": "LevelDb"
},
"orderers": [
{
"groupName": "group1",
"type": "solo",
"instances": 1
}
]
},
{
"organization": {
"name": "Org2",
"domain": "org2.qhd.com"
},
"peer": {
"instances": 1,
"db": "LevelDb"
},
"orderers": [
{
"groupName": "group1",
"type": "solo",
"instances": 1
}
]
},
{
"organization": {
"name": "Org3",
"domain": "org3.qhd.com"
},
"peer": {
"instances":1,
"db": "LevelDb"
},
"orderers": [
{
"groupName": "group1",
"type": "solo",
"instances": 1
}
]
},
{
"organization": {
"name": "Org4",
"domain": "org4.qhd.com"
},
"peer": {
"instances":1,
"db": "LevelDb"
},
"orderers": [
{
"groupName": "group1",
"type": "solo",
"instances": 1
}
]
},
{
"organization": {
"name": "Org5",
"domain": "org5.qhd.com"
},
"peer": {
"instances":1,
"db": "LevelDb"
},
"orderers": [
{
"groupName": "group1",
"type": "solo",
"instances": 1
}
]
}
],
"channels": [
{
"name": "my-channelqhd",
"orgs": [
{
"name": "Org1",
"peers": [
"peer0"
]
},{
"name": "Org2",
"peers": [
"peer0"
]
},{
"name": "Org3",
"peers": [
"peer0"
]
},{
"name": "Org4",
"peers": [
"peer0"
]
},{
"name": "Org5",
"peers": [
"peer0"
]
}
]
}
],
"chaincodes": [
{
"name": "chaincodeqhd",
"version": "0.0.1",
"lang": "java",
"channel": "my-channelqhd",
"directory": "./chaincodes/chaincode-java-simple"
}
]
}
The text was updated successfully, but these errors were encountered: