You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Hyperledger Composer v16.06部署业务网络时Runtime安装失败求助

Troubleshooting Hyperledger Composer v0.16.06 Runtime Install Failure

Hey there, let's work through that runtime install error you're hitting with Hyperledger Composer v0.16.06. Here are the most common fixes and checks to try:

1. Verify the PeerAdmin Card is Valid

First, make sure your PeerAdmin@hlfv1 card exists and is in good shape:

  • Run composer card list to check if the card is listed and shows a "Valid" status.
  • If it's missing or invalid, delete it first with composer card delete --card PeerAdmin@hlfv1, then re-create it using your Fabric network's crypto materials:
    composer card create -p connection-profile.json -u PeerAdmin -c ./crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/signcerts/Admin@org1.example.com-cert.pem -k ./crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/keystore/[your-private-key-file] -r PeerAdmin -r ChannelAdmin
    
    Replace [your-private-key-file] with the actual name of the private key file in that directory, then import the card with composer card import --file PeerAdmin@hlfv1.card.

2. Check if Your Fabric Network is Running Properly

A down or misconfigured Fabric network is a common culprit:

  • Run docker ps to see all active containers. Make sure your peer, orderer, and CA containers are all up and running.
  • If any containers are missing, restart your Fabric network: navigate to your Fabric docker-compose directory, run docker-compose down to stop all containers, then docker-compose up -d to restart them.
  • You can also verify peer connectivity by jumping into the CLI container:
    docker exec -it cli bash
    export CORE_PEER_LOCALMSPID="Org1MSP"
    export CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp
    peer channel list
    
    If this returns a list of channels, your peer is connected correctly.

3. Confirm Your Business Network Setup is Correct

Double-check that your tutorial-network is properly prepared:

  • Make sure you're running the install command from the root directory of your tutorial-network project.
  • If you haven't already, generate the business network archive (BNA) file first with:
    composer archive create -t dir -n .
    
  • Verify that the --businessNetworkName tutorial-network matches the name field in your project's package.json file. A mismatch here will cause the install to fail.

4. Get Detailed Error Logs

To pinpoint the exact issue, enable verbose logging:

  • Re-run the install command with the -v flag for verbose output:
    composer runtime install --card PeerAdmin@hlfv1 --businessNetworkName tutorial-network -v
    
  • You can also check the peer node's logs for specific errors:
    docker logs peer0.org1.example.com
    
    Replace peer0.org1.example.com with your actual peer container name if it's different.

5. Ensure Version Compatibility

Hyperledger Composer v0.16.06 is designed to work with Hyperledger Fabric v1.0.x. If you're using a newer Fabric version (like 1.1+), you'll run into compatibility issues. Double-check your Fabric network version and re-deploy the correct v1.0.x version if needed.


内容的提问来源于stack exchange,提问作者Jony

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.25 06:53:56