Closed alirezaght closed 3 years ago
And if I do minifab join
on server 2 I get following error:
2020-09-24 22:48:21.290 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized 2020-09-24 22:48:21.296 UTC [cli.common] readBlock -> INFO 002 Expect block, but got status: &{NOT_FOUND} Error: can't read the block: &{NOT_FOUND} 2020-09-24 22:48:21.411 UTC [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized Error: genesis block file not found open /vars/hchannel.genesis.block: no such file or directory
With your spec files, you need to first to add orderers to your orderer system by changing the channel configuration, then you need to add new orgs to the network, it is rather complex. I suggest that you first stand up orderers on one machine with one peer org, then you can set up 2nd org with its peers on 2nd machine. Then add 2nd to the first machine. Try to figure out this process first and get a good understanding of the system.
You will also need to import orderer nodes onto 2nd machine, then use discovery services to get all the channel info.
Thank you for your reply, It would be great if you provide a document or a video for this tool to add a new orderer to an existing network, because I can add peers but when I try adding an orderer I run into so many problems and documents on fabric are so confusing and complex.
Please read docs/README.md and there are 6 videos for the tool, video 3 should be the video to add new org and also see the doc under docs directory specifically on adding new org.
First I wanted to thank you for this great tool. I think this is a must have tool if you wanna use hyperledger fabric. I have two servers. one of them has following spec:
and the other one has this spec:
on server 1 I tried these commands:
after evereything is up:
on server 2:
then I wanted to join server 2 network to the first one. so I copied vars/profiles/endpoints.yaml to server 2. then on server 2 I did
minifab nodeimport
then on server 1 I edited vars/hchannel_config.json file and copied the contents of vars/JoinRequest_n2-h-com.json to the groups element and I increase the version of the groups element. then I didminifab channelsign,channelupdate
on server 1I did see this line on one of the peers log on server 1.
learnAnchorPeers -> INFO 041 No configured anchor peers of n2-h-com for channel hchannel to learn about
so I think everything is good by now. but these 2 organizations are not correctly joined to the hchannel. when I tried runningminifab channelquery
on server 2 I get an empty file for hchannel_config.json and I think it should not be empty. Can you please help what I'm doing wrong? And I have another question. I tried to change the Endorsement policy after this, so I changed the rule from MAJORITY to ANY but after runningminifab channelsign,channelupdate
on server 1 I get following error: