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

问题描述 投票:1回答:1

我在部署multiorg setup 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时,一切都很顺利

hyperledger-fabric blockchain hyperledger-composer
1个回答
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)

所以我使用以下命令来提升码头工作,一切正常

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

© www.soinside.com 2019 - 2024. All rights reserved.