Unable to create PeerAdminCard
Asked Answered
A

1

5

I am following this simple tutorial to set up my dev environment . Everything goes fine until I trigger ./createPeerAdminCard.sh which gives error as below

Development only script for Hyperledger Fabric control Running 'createPeerAdminCard.sh' FABRIC_VERSION is set to 'hlfv11' FABRIC_START_TIMEOUT is unset, assuming 15 (seconds)

Using composer-cli at v0.17.4

Successfully created business network card file to Output file: /tmp/[email protected]

Command succeeded

Error: No connection type provided, probably because the connection profile has no 'x-type' property defined. Command failed

I am using composer version v0.17.4 and fabric at 1.1.0 - alpha on ubuntu 16.04

Abuttal answered 8/2, 2018 at 20:16 Comment(0)
Q
16

You get this error because your card store still has a PeerAdmin card in it that was created using Composer 0.16 or earlier. The cards are not compatible so when the cli tries to delete the card it cannot. The quickest solution is to remove the file system card store completely. Currently the file system card store will always be at ${HOME}/.composer so to delete it you would do rm -fr ${HOME}/.composer

Quag answered 9/2, 2018 at 8:26 Comment(1)
@Karimai ,You have to run the ./createPeerAdminCard.sh after running the said command.Ligamentous

© 2022 - 2024 — McMap. All rights reserved.