创建程序并完成模型设计/query.qry/acl后。我在当地的游乐场进行了测试,并成功运行。当我尝试创建管理卡(运行composer network start)时,我失败了。它启动了一个ccenv对等端,没有响应。
我在Google中找不到其他类似的错误。这让我感到困惑。
预期行为 Composer network start命令应成功运行。并且管理卡应该正确创建。
实际行为 创建卡失败。并推出了一个随机名称的怪异同伴。 当我尝试再次运行时:composer network start -n cmusic -c PeerAdmin @ hlfv1 -V 0.0.1 -A admin -S adminpw 它说它已经启动了。
可能的修复 我不知道为什么以及如何解决它。我尝试重新加载环境,但仍然存在相同的错误。
cielo@cielo-ThinkPad-E550:~/cprogrames/cmusic/dist$ composer network start -n cmusic -c PeerAdmin@hlfv1 -V twork start -n cmusic -c PeerAdmin@hlfv1 -V start -n cmusic -cadmin
Starting business network cmusic at version 0.0.1
Processing these Network Admins:
userName: admin
✖ Starting business network definition. This may take a minute...
Error: Error trying to start business network. Error: No valid responses from any peers.
Response from attempted peer comms was an error: Error: REQUEST_TIMEOUT
Command failed
cielo@cielo-ThinkPad-E550:~/cprogrames/cmusic/dist$ composer network start -n cmusic -c PeerAdmin@hlfv1 -V twork start -n cmusic -c PeerAdmin@hlfv1 -V start -n cmusic -cadmin
Starting business network cmusic at version 0.0.1
Processing these Network Admins:
userName: admin
✖ Starting business network definition. This may take a minute...
Error: Error trying to start business network. Error: No valid responses from any peers.
Response from attempted peer comms was an error: Error: failed to execute transaction f3d0e4a4cfa31b72766e4to execute transaction f3d0e4a4cfa31b72766e4ecute transaction f48e83o register cmusic:0.0.1 haincode cmusic3d0e4a4cfa31b72766e4a4cfa31b72766e475ec4b1ab48e83o register cmuhainc
Command failed
我的作曲家是v0.20.8,我的Docker版本是18.09.4,内部版本d14af54 节点-v8.15.1 npm -v6.4.1
这些是我的同龄人:
f818aed96671 hyperledger/fabric-peer:1.2.1 "peer node start" 2 days ago Up 2 days 0.0.0.0:7051->7051/tcp, 0.0.0.0:7053->7053/tcp peer0.org1.example.com
57989248aadd hyperledger/fabric-ca:1.2.1 "sh -c 'fabric-ca-se…" 2 days ago Up 2 days 0.0.0.0:7054->7054/tcp ca.org1.example.com
447556b93e71 hyperledger/fabric-couchdb:0.4.10 "tini -- /docker-ent…" 2 days ago Up 2 days 4369/tcp, 9100/tcp, 0.0.0.0:5984->5984/tcp couchdb
45b9da98c156 hyperledger/fabric-orderer:1.2.1 "orderer" 2 days ago Up 2 days 0.0.0.0:7050->7050/tcp orderer.example.com
答案 0 :(得分:0)
我已经解决了这个问题。关键是网络中只能同时有一个链码。如果您同时部署多个,则会发生此错误。
尝试这两个,然后重新启动网络。
docker stop $(docker ps -aq)
docker container prune