Error in starting hyperledger fabric network with hyperledger composer

前端 未结 3 1487
一整个雨季
一整个雨季 2020-12-02 00:27

I am trying to set up a network using hyper ledger composer, for which I followed the Developer tutorial for creating a Hyperledger Composer solution but when I use the com

3条回答
  •  广开言路
    2020-12-02 01:23

    1) I had the same error while starting the network. This solution helped me: https://github.com/hyperledger/composer/issues/3591#issuecomment-386718739

    It states the following:

    There is an extra character when you copy the string from hyperledger composer website.

    Try copy pasting the following line to a notepad and paste in the command line. It will work.

    composer network start --networkName tutorial-network --networkVersion 0.0.1 --networkAdmin admin --networkAdminEnrollSecret adminpw --card PeerAdmin@hlfv1 --file networkadmin.card

    2) If it doesn't help, then try to kill any stale or active docker containers.

    Run the following command to kill any stale or active containers:

    docker rm -f $(docker ps -aq)

    Clear any cached networks:

    Press y when prompted by the command

    docker network prune

    Then, go to ~/fabric-dev-servers folder and run the commands:

    cd ~/fabric-dev-servers

    ./teardownFabric.sh

    ./startFabric.sh

    ./createPeerAdminCard.sh

    After that, run the composer network install command:

    composer network start --networkName tutorial-network --networkVersion 0.0.1 --networkAdmin admin --networkAdminEnrollSecret adminpw --card PeerAdmin@hlfv1 --file networkadmin.card

提交回复
热议问题