Sarath sarathsriman
Hello,

I am following the instructions given in the CERTIFIED BLOCKCHAIN DEVELOPER training on HyperLedger topic.

While running the createChannel.sh script, I am getting the below error. Tried to google the error but could not find any resolution.

XXXXXXXX/HyperLedger/AddOrgAndOrdererAtRuntime-master$ ./ createChannel.sh
2022-07-06 17:14:34.162 IST [channelCmd] InitCmdFactory -> INFO 001 Endorser and orderer connections initialized
Error: got unexpected status: BAD_REQUEST -- error validating channel creation transaction for new channel 'mychannel', could not successfully apply update to template configuration: error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied

I am unable to execute the further steps explained in the training as Channel is not created.

Please help.

Thanks,
Sarath.
Reply 0 0
admin
This error is because of the wrong certificate while sending tx. Please recreate Crypto material and channel artifacts, also start all docker services again, and try to create a channel again.
Reply 0 0
rafael.f88

Hello @admin,

I'm also having a problem while executing the createChannel.sh script.

The error is:

./createChannel.sh
2022-10-09 12:31:50.430 CEST [main] InitCmd -> ERRO 001 Cannot run peer because error when setting up MSP of type bccsp from directory /home/parallels/StudyMaterial20220706T054653Z001-220706-120311/Study Material/Source Code/Module 5 - Hyperledger/AddOrgAndOrdererAtRuntime-master/artifacts/channel/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp: KeyMaterial not found in SigningIdentityInfo


I tried recreating Crypto material and channel artifacts as suggested, but no success. Do you know what else can I try?

This is just another of MANY errors not covered by the course. I've been spending so much time trying solve them and it's a bit frustrating.

Please, can you help me with this one?

 

Regards,

Rafael.

Reply 0 0
rafael.f88

Small update.

I renamed the folders in order to no have any spaces:

"Study Material/" to "Study-Material.

After that I deleted all docker images and recreated with docker-compose, checked that everything was running.

Then I recreated the artifcats (./create-artifacts) and executed createChannel.sh with sudo "sudo ./createChannel.sh", and I go the same error as @sarathsriman.

@admin what else can I try? 

Reply 0 0
admin
Hey
This problem is caused because Local fabric binaries and Docker images are out of sync. This may cause problems. So would suggest you to re-download the Local package with the matching version.
Reply 0 0
Reply