Reputation: 43
I'm currently working on my final year project and I need help concerning Raft.
I'm building a network with Hyperledger Fabric 1.4.1 using 'Building your first network' tutorial and I want to manually generate the artifacts, channel, joining the channel... I chose Raft as the consensus algorithm. But I'm getting an error:
Error: got unexpected status: SERVICE_UNAVAILABLE -- no Raft leader
Here is my code:code
What should I do?
Upvotes: 3
Views: 2770
Reputation: 434
There is a problem in the start the network session. For the docker-compose, you need to add 1 more file. the problem is your raft script is not being called at start the network session
instead of docker-compose -f docker-compose-cli.yaml up -d
try to put
docker-compose -f docker-compose-cli.yaml -f docker-compose-etcdraft2.yaml up -d
Upvotes: 7
Reputation: 12013
Since you are using 1.4.1, you should probably use Raft rather than Kafka for the orderer consensus mechanism.
To use Raft, you should be able to run:
./byfn.sh up -o etcdraft
If you must / really want to use Kafka:
./byfn.sh up -o kafka
Upvotes: 0