Hyperledger Cello : Not able to issue new ID for Participant

88 views Asked by At

I have deployed the hyper ledger network with default cello configuration on aws. The fabric is getting installed and it is up and run. By default, carauction-network is installed on both the organization which named as orga and orgb. Then with the help of the composer-playground, I have created a participant(Autioner) and tried to register an ID for it and getting below error.

Error: fabric-ca request register failed with errors [[{"code":63,"message":"Failed to get Affiliation: sql: no rows in result set"}]]

after searching and debugging found that composer is looking for org1 as an organization name. So modified the cello scripts and changed orga,orgb.. to org1,org2.. and it resolved the problem. Now I am able to create the participants for org1 but when I try to create participant for org2 still getting the same issue.

I am really not able to understand why the organization has this naming constraint. Is this a bug or we have to follow some naming convention ?? and if it is a naming constraint why I am not able to register an ID for org2??

1

There are 1 answers

2
david_k On BEST ANSWER

I am guessing that this is in regard to the affiliation names used by fabric-ca-servers. Composer playground, when it issues identities, is not setting any affiliation name and because of this will always default to 'org1'. It's not possible to set the affiliation in playground (as playground is not an operations tool, it is a tool to help developers) so you won't be able to use playground to perform identity management on a ca server that doesn't have an org1 affiliation defined.

The composer cli command composer identity issue does allow you to define the affiliation using the -o option, eg -o affiliation=xyz

composer identity issue -c someadmin@somenetwork -u newUser -a org.mynetwork.Traders#TraderForCompanyA -o affiliation=CompanyA