首页 > 解决方案 > 无法在最新版本的 Fabric 第一网络中启动 CA 服务器

问题描述

我已经在 Hyper Ledger 结构中完成了第一个网络的构建,并尝试在我使用以下教程创建的网络上创建区块链网络。

https://hyperledger.github.io/composer/latest/tutorials/deploy-to-fabric-multi-org.html

在中间,我发现一个选项似乎不起作用

CA 服务器启动选项

我检查了 bynf.sh 文件中的相应选项,因为它在执行时似乎显示错误,并且没有根据脚本为脚本提供的参数 -a 作为参数。

我忽略了该选项并继续教程并在第 11 步安装网络时触发。

为 Org1 安装网络的命令

这是我得到的错误

venkat@venkatltop:~/fabric-samples/first-network$ composer network install --card PeerAdmin@byfn-network-org1 --archiveFile trade-network.bna

⠙ Installing business network. This may take a minute...(node:17323) [DEP0079] DeprecationWarning: Custom inspection function on Objects via .inspect() is deprecated
⠹ Installing business network. This may take a minute...E0511 16:22:41.448320702   17323 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed.
E0511 16:22:41.448766436   17323 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed.
E0511 16:22:41.449125748   17323 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed.
E0511 16:22:41.452536325   17323 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed.
⠸ Installing business network. This may take a minute...E0511 16:22:41.628664154   17323 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed.
E0511 16:22:41.632493135   17323 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed.
✖ 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: 14 UNAVAILABLE: Connect Failed
Response from attempted peer comms was an error: Error: 14 UNAVAILABLE: Connect Failed
Command failed
venkat@venkatltop:~/fabric-samples/first-network$ 

我相信选项 -a 可能与此错误有关,因为它在以前的版本中启动 CA 服务器,可以避免此错误但不确定。

请建议我解决此错误的任何解决方案。

注意:我已从以下链接检查了解决方案,但更改并未解决我的问题

握手失败,出现致命错误 SSL_ERROR_SSL

标签: hyperledger-fabricblockchainhyperledger-composer

解决方案


您可能正在使用标准面料样品,在先决条件部分中,它说明了以下内容

接下来,使用命令行克隆以下 GitHub Fabric Samples 存储库(不要使用 Fabric 站点中的示例:因为它缺少本教程所需的一些更改)

git clone -b issue-6978 https://github.com/sstone1/fabric-samples.git

此版本添加了 hyperledger fabric 提供的 byfn 样本中缺少的 fabric-ca。


推荐阅读