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

Error when trying to create BFT test network #1182

Open
jvallejodiaz opened this issue Feb 29, 2024 · 0 comments
Open

Error when trying to create BFT test network #1182

jvallejodiaz opened this issue Feb 29, 2024 · 0 comments

Comments

@jvallejodiaz
Copy link

I followed the steps to start a test-network with the ordering service using SmartBFT. I set the docker images and binaries to use v3.0.0-preview version.

./network.sh up -bft           
Using docker and docker-compose
Starting nodes with CLI timeout of '5' tries and CLI delay of '3' seconds and using database 'leveldb' with crypto from 'cryptogen'
LOCAL_VERSION=v3.0.0-preview
DOCKER_IMAGE_VERSION=v2.5.6
Local fabric binaries and docker images are out of  sync. This may cause problems.
/..../go/src/github.com/jvallejodiaz/fabric-samples/test-network/../bin/cryptogen
Generating certificates using cryptogen tool
Creating Org1 Identities
+ cryptogen generate --config=./organizations/cryptogen/crypto-config-org1.yaml --output=organizations
org1.example.com
+ res=0
Creating Org2 Identities
+ cryptogen generate --config=./organizations/cryptogen/crypto-config-org2.yaml --output=organizations
org2.example.com
+ res=0
Creating Orderer Org Identities
+ cryptogen generate --config=./organizations/cryptogen/crypto-config-orderer.yaml --output=organizations
+ res=0
Generating CCP files for Org1 and Org2
Creating network "fabric_test" with the default driver
Creating volume "compose_orderer.example.com" with default driver
Creating volume "compose_orderer2.example.com" with default driver
Creating volume "compose_orderer3.example.com" with default driver
Creating volume "compose_orderer4.example.com" with default driver
Creating volume "compose_peer0.org1.example.com" with default driver
Creating volume "compose_peer0.org2.example.com" with default driver
Creating peer0.org2.example.com ... done
Creating orderer4.example.com   ... done
Creating peer0.org1.example.com ... done
Creating orderer3.example.com   ... done
Creating orderer.example.com    ... done
Creating orderer2.example.com   ... done
Creating cli                    ... done
CONTAINER ID   IMAGE                                      COMMAND             CREATED         STATUS                  PORTS                                                                              NAMES
65fe38d0247d   hyperledger/fabric-tools:latest            "/bin/bash"         1 second ago    Up Less than a second                                                                                      cli
38271f47a2b9   hyperledger/fabric-orderer:3.0.0-preview   "orderer"           2 seconds ago   Up Less than a second   0.0.0.0:7050->7050/tcp, 0.0.0.0:7053->7053/tcp, 0.0.0.0:9443->9443/tcp             orderer.example.com
998864eebbb9   hyperledger/fabric-peer:latest             "peer node start"   2 seconds ago   Up Less than a second   0.0.0.0:7051->7051/tcp, 0.0.0.0:9444->9444/tcp                                     peer0.org1.example.com
64e3aec8d3d6   hyperledger/fabric-orderer:3.0.0-preview   "orderer"           2 seconds ago   Up Less than a second   0.0.0.0:7052->7052/tcp, 0.0.0.0:7055->7055/tcp, 7050/tcp, 0.0.0.0:9446->9446/tcp   orderer2.example.com
cc480a4f661c   hyperledger/fabric-orderer:3.0.0-preview   "orderer"           2 seconds ago   Up 1 second             0.0.0.0:7056-7057->7056-7057/tcp, 7050/tcp, 0.0.0.0:9447->9447/tcp                 orderer3.example.com
d8a958de75b0   hyperledger/fabric-orderer:3.0.0-preview   "orderer"           2 seconds ago   Up 1 second             0.0.0.0:7058-7059->7058-7059/tcp, 7050/tcp, 0.0.0.0:9448->9448/tcp                 orderer4.example.com
606d991edbae   hyperledger/fabric-peer:latest             "peer node start"   2 seconds ago   Up 1 second             0.0.0.0:9051->9051/tcp, 7051/tcp, 0.0.0.0:9445->9445/tcp                           peer0.org2.example.com

However, when I try to start a new channel it shows the following error:

 ./network.sh createChannel -bft
Using docker and docker-compose
Creating channel 'mychannel'.
If network is not up, starting nodes with CLI timeout of '5' tries and CLI delay of '3' seconds and using database 'leveldb 
Network Running Already
Using docker and docker-compose
Generating channel genesis block 'mychannel.block'
Using organization 1
/.../go/src/github.com/jvallejodiaz/fabric-samples/test-network/../bin/configtxgen
+ '[' 1 -eq 1 ']'
+ configtxgen -profile ChannelUsingBFT -outputBlock ./channel-artifacts/mychannel.block -channelID mychannel
2024-02-29 09:43:28.210 GMT 0001 INFO [common.tools.configtxgen] main -> Loading configuration
2024-02-29 09:43:28.213 GMT 0002 INFO [common.tools.configtxgen.localconfig] completeInitialization -> orderer type: BFT
2024-02-29 09:43:28.213 GMT 0003 INFO [common.tools.configtxgen.localconfig] Load -> Loaded configuration: /Users/jvallejo/go/src/github.com/jvallejodiaz/fabric-samples/test-network/bft-config/configtx.yaml
2024-02-29 09:43:28.216 GMT 0004 INFO [common.tools.configtxgen] doOutputBlock -> Generating genesis block
2024-02-29 09:43:28.216 GMT 0005 INFO [common.tools.configtxgen] doOutputBlock -> Creating application channel genesis block
2024-02-29 09:43:28.216 GMT 0006 INFO [common.tools.configtxgen] doOutputBlock -> Writing genesis block
+ res=0
Creating channel mychannel
Adding orderers
+ . scripts/orderer.sh mychannel
+ '[' 1 -eq 1 ']'
+ . scripts/orderer2.sh mychannel
+ . scripts/orderer3.sh mychannel
+ . scripts/orderer4.sh mychannel
+ res=0
Status: 201
{
	"name": "mychannel",
	"url": "/participation/v1/channels/mychannel",
	"consensusRelation": "consenter",
	"status": "active",
	"height": 1
}

Status: 201
{
	"name": "mychannel",
	"url": "/participation/v1/channels/mychannel",
	"consensusRelation": "consenter",
	"status": "active",
	"height": 1
}

Status: 201
{
	"name": "mychannel",
	"url": "/participation/v1/channels/mychannel",
	"consensusRelation": "consenter",
	"status": "active",
	"height": 1
}

Status: 201
{
	"name": "mychannel",
	"url": "/participation/v1/channels/mychannel",
	"consensusRelation": "consenter",
	"status": "active",
	"height": 1
}

Channel 'mychannel' created
Joining org1 peer to the channel...
Using organization 1
+ peer channel join -b ./channel-artifacts/mychannel.block
+ res=1
+ peer channel join -b ./channel-artifacts/mychannel.block
+ res=1
+ peer channel join -b ./channel-artifacts/mychannel.block
+ res=1
+ peer channel join -b ./channel-artifacts/mychannel.block
+ res=1
2024-02-29 09:43:43.801 GMT 0001 INFO [channelCmd] InitCmdFactory -> Endorser and orderer connections initialized
Error: proposal failed (err: bad proposal response 500: "JoinChain" for channelID = mychannel failed because of validation of configuration block, because of Failed capabilities check: [no valid channel configuration found: Must set some OrdererAddresses])

Can someone point me into the right direction?

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

1 participant