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/PeerAdmin@hlfv1.card

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

Atif
  • 216
  • 3
  • 15

1 Answers1

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

david_k
  • 4,867
  • 2
  • 7
  • 15