Hyperledger Composer业务网络升级时卡住问题求助
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-playgroundthennpm install -g composer-cli@X.X.X composer-playground@X.X.XwhereX.X.Xis 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
.bnafile:composer archive create -t dir -n . - Install the new version of your network:
(Replacecomposer network install --card PeerAdmin@hlfv1 --archiveFile your-network-name@0.0.2.bnayour-network-nameand0.0.2with 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-namecard—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

