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

Hyperledger Composer业务网络升级时卡住问题求助

Troubleshooting Stuck Business Network Upgrade in Hyperledger Composer Playground

Hey there, I’ve run into this exact issue with new Composer users following the official tutorial—let’s break down what’s going on and how to fix it. That log line you’re seeing (info: [Hyperledger-Composer] :ConnectionProfileManager :getConnectionManagerByTyp Looking up a connection manager for type 0=hlfv1) is just a normal info message, not an error. The real problem is likely a UI connection glitch or version mismatch that’s stopping the Playground from completing the upgrade.

Here are the most reliable fixes to try:

1. Verify Component Version Consistency

Version mismatches between Hyperledger Composer tools (CLI, Playground) and the Fabric network are the #1 culprit here.

  • Check your Composer CLI version with: composer --version
  • Check Playground’s version with: npm list -g composer-playground
  • Ensure both match the version specified in the tutorial you followed. If not, uninstall the existing versions and reinstall the correct ones (e.g., npm uninstall -g composer-cli composer-playground then npm install -g composer-cli@X.X.X composer-playground@X.X.X where X.X.X is the tutorial’s version).

2. Perform the Upgrade Manually via Command Line

Playground’s UI can sometimes hang due to connection timeouts or cached state. Using the CLI is more reliable for upgrades:

  • First, re-package your modified business network into a new .bna file:
    composer archive create -t dir -n .
    
  • Install the new version of your network:
    composer network install --card PeerAdmin@hlfv1 --archiveFile your-network-name@0.0.2.bna
    
    (Replace your-network-name and 0.0.2 with your actual network name and new version number)
  • Upgrade the running network:
    composer network upgrade --card PeerAdmin@hlfv1 --networkName your-network-name --networkVersion 0.0.2
    
  • Refresh your admin card (since the network version changed):
    # Delete the old admin card
    composer card delete --card admin@your-network-name
    # Re-issue the admin identity
    composer identity issue --card PeerAdmin@hlfv1 --participantId admin --participantType org.your-org.biznet.Admin --card admin@your-network-name
    # Import the new card
    composer card import --file admin@your-network-name.card
    
  • Restart Composer Playground, then log in with the refreshed admin@your-network-name card—your upgraded network should load normally.

3. Reset Your Fabric Environment

If the above steps don’t work, residual state in your Fabric network might be causing conflicts:

  • Stop and tear down the existing Fabric network:
    ./stopFabric.sh && ./teardownFabric.sh
    
  • Restart the network and recreate the PeerAdmin card:
    ./startFabric.sh && ./createPeerAdminCard.sh
    
  • Reinstall your original 0.0.1 network, then follow the manual upgrade steps from point 2 to apply your modified version.

Since you’re new to Composer, I’d recommend starting with the manual CLI upgrade first—it’s more transparent and less prone to UI-related issues than relying solely on Playground.

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.05.29 08:02:02