在hypperledgercomposer中使用卡部署业务网络时出现以下错误

时间:2018-07-30 12:52:48

标签: hyperledger-fabric blockchain hyperledger-composer

我正在遵循以下教程来部署Multiorg设置 https://hyperledger.github.io/composer/latest/tutorials/deploy-to-fabric-multi-org

在为org2安装业务网络时得到以下错误

composer network install --card PeerAdmin@byfn-network-org2 --archiveFile trade-network.bna
⠸ Installing business network. This may take a minute...E0730 17:45:02.761554740   18888 ssl_transport_security.cc:599] Could not load any root certificate.
E0730 17:45:02.761598128   18888 ssl_transport_security.cc:1400] Cannot load server root certificates.
E0730 17:45:02.761622077   18888 security_connector.cc:1025] Handshaker factory creation failed with TSI_INVALID_ARGUMENT.
E0730 17:45:02.761637302   18888 secure_channel_create.cc:111] Failed to create secure subchannel for secure name 'localhost:9051'
E0730 17:45:02.761647122   18888 secure_channel_create.cc:142] Failed to create subchannel arguments during subchannel creation.
E0730 17:45:02.762833479   18888 ssl_transport_security.cc:599] Could not load any root certificate.
E0730 17:45:02.762850109   18888 ssl_transport_security.cc:1400] Cannot load server root certificates.
E0730 17:45:02.762870079   18888 security_connector.cc:1025] Handshaker factory creation failed with TSI_INVALID_ARGUMENT.
E0730 17:45:02.762882355   18888 secure_channel_create.cc:111] Failed to create secure subchannel for secure name 'localhost:10051'
E0730 17:45:02.762891922   18888 secure_channel_create.cc:142] Failed to create subchannel arguments during subchannel creation.
⠴ Installing business network. This may take a minute...E0730 17:45:02.980148814   18888 ssl_transport_security.cc:599] Could not load any root certificate.
E0730 17:45:02.980190952   18888 ssl_transport_security.cc:1400] Cannot load server root certificates.
E0730 17:45:02.980211693   18888 security_connector.cc:1025] Handshaker factory creation failed with TSI_INVALID_ARGUMENT.
E0730 17:45:02.980223506   18888 secure_channel_create.cc:111] Failed to create secure subchannel for secure name 'localhost:9051'
E0730 17:45:02.980232858   18888 secure_channel_create.cc:142] Failed to create subchannel arguments during subchannel creation.
E0730 17:45:02.981421486   18888 ssl_transport_security.cc:599] Could not load any root certificate.
E0730 17:45:02.981448334   18888 ssl_transport_security.cc:1400] Cannot load server root certificates.
E0730 17:45:02.981466312   18888 security_connector.cc:1025] Handshaker factory creation failed with TSI_INVALID_ARGUMENT.
E0730 17:45:02.981476832   18888 secure_channel_create.cc:111] Failed to create secure subchannel for secure name 'localhost:10051'
E0730 17:45:02.981486083   18888 secure_channel_create.cc:142] Failed to create subchannel arguments during subchannel creation.
✖ Installing business network. This may take a minute...
Error: Error trying install business network. Error: No valid responses from any peers.
Response from attempted peer comms was an error: Error: REQUEST_TIMEOUT
Response from attempted peer comms was an error: Error: REQUEST_TIMEOUT
Command failed

对org2执行相同步骤时,将业务网络部署到org1时,一切都很好,

1 个答案:

答案 0 :(得分:0)

只需重新启动您在firstnetwork文件夹中创建的频道,它便为我解决了错误

./ byfn.sh -m restart -c channelName

在下一步中,我出现以下错误

Error: failed to request identity. Error trying to enroll user and return certificates. Error: Calling enrollment endpoint failed with error [Error: connect ECONNREFUSED 127.0.0.1

所以我停下来并移走了所有容器

docker stop $(docker ps -aq)

docker rm $(docker ps -aq)

所以我使用以下命令启动了dockers一切正常

./ byfn.sh -m up -s couchdb -a