设置Hyperledger Fabric

3

我正在尝试搭建Hyperledger Fabric项目。不幸的是,当我调用vargant up时,我遇到了以下错误:

Bringing machine 'default' up with 'virtualbox' provider...
 ==> default: Box 'hyperledger/fabric-baseimage' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: 0.0.10
The box 'hyperledger/fabric-baseimage' could not be found or
could not be accessed in the remote catalog. If this is a private
box on HashiCorp's Atlas, please verify you're logged in via
`vagrant login`. Also, please double-check the name. The expanded
URL and error message are shown below:

URL: ["https://atlas.hashicorp.com/hyperledger/fabric-baseimage"]
Error: SSL certificate problem: unable to get local issuer certificate
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). If the default
 bundle file isn't adequate, you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.

我尝试使用Docker镜像https://hub.docker.com/r/hyperledger/fabric-baseimage/,但运行命令没有任何作用。
我想启动Fabric区块链,尝试管理系统、部署合约并发起一些测试交易。有人能帮我吗,如何开始Fabric?
谢谢

我建议您按照此样例进行面料设置。首先,按原样进行,然后再进行更改。 http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html - Katiyman
4个回答

3
这里列出的错误非常明确,并提供了解决方案的链接。Vagrant无法下载镜像,因为本地CA没有携带颁发HashiCorp服务器证书的CA证书。

如果您只是想运行Hyperledger Fabric并开发/部署链码以及开发区块链应用程序,可以使用Docker for Mac或Windows(beta)运行docker-compose up,并使用以下docker-compose.yml定义:

vp:
  image: hyperledger/fabric-peer
  ports:
  - "5000:5000"
  environment:
  - CORE_PEER_ADDRESSAUTODETECT=true
  - CORE_VM_ENDPOINT=http://127.0.0.1:2375
  - CORE_LOGGING_LEVEL=DEBUG
  command: peer node start
membersrvc:
  image: hyperledger/fabric-membersrvc
  command: membersrvc

使用基于Vagrant的开发环境来在您的笔记本电脑上运行Fabric,更适合那些希望参与Hyperledger Fabric项目开发的开发人员,而不是那些仅想使用该平台开发应用程序的人。


1

1
我建议您重新安装。
  1. 运行vagrant destroy命令。它会停止并删除vagrant机器的所有痕迹。
  2. 运行vagrant up命令。它会启动和配置vagrant环境。

谢谢。我运行了vagrant global-status并收到以下信息:“此计算机上没有活动的Vagrant环境”。在运行vagrant up之前,我需要准备我的电脑吗?在运行vagrant destroy时,我收到了“VM未创建”的消息。 - Bob
你确定你的Vagrant运行正常吗?还是重新安装Vagrant?https://www.vagrantup.com/ - Will_Z
1
问题出在SSL证书上。我在Vagrantfile中添加了config.vm.box_download_insecure = true。谢谢。 - Bob

-2

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接