【问题标题】:Setup Hyperledger Fabric设置 Hyperledger Fabric
【发布时间】:2016-06-01 12:28:48
【问题描述】:

我尝试设置 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 image https://hub.docker.com/r/hyperledger/fabric-baseimage/ 但运行命令没有做任何事情

我想启动 Fabric Blockchain,尝试管理系统,部署合约并启动一些测试交易。谁能帮我,如何启动 Fabric?

谢谢

【问题讨论】:

标签: blockchain hyperledger hyperledger-fabric


【解决方案1】:

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

如果您对简单地运行 Hyperledger Fabric 和开发/部署链代码以及开发区块链应用程序感兴趣,您可以使用 Docker for Mac 或 Windows(测试版)简单地运行 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

让 Fabric 在您的笔记本电脑上运行的基于 Vagrant 的开发环境方法实际上更面向希望帮助开发 Hyperledger Fabric 项目的开发人员,而不是那些只想使用该平台开发应用程序的开发人员。

【讨论】:

    【解决方案2】:

    我建议你重新安装。

    1. 流浪破坏。它将停止并删除流浪机器的所有痕迹。
    2. 流浪起来。启动并配置 vagrant 环境。

    【讨论】:

    • 谢谢。我运行 vagrant global-status 并收到:“这台计算机上没有活动的 Vagrant 环境”。在运行 vagran 之前我需要准备好我的电脑吗?在 vagran destroy 我收到“VM not created”
    • 您确定您的 vagrant 运行正常吗?或者只是再次安装 vagrant ? vagrantup.com
    • 问题出在 SSL 证书上。我将 config.vm.box_download_insecure = true 添加到 Vagrantfile 谢谢
    【解决方案3】:

    试试这些说明: http://hyperledger-fabric.readthedocs.io/en/latest/dev-setup/devenv.html

    我使用了来自 GitHub 的超级账本结构的分支 v0.6,而不是 Gerrit 一个(在“克隆 Fabric 项目”步骤中): git clone -b v0.6 https://github.com/hyperledger/fabric.git

    当最后完成 VM 配置时,您将拥有一个可用于测试链代码的环境。

    环境完成后,您还应该查看 GitHub IBM-Blockchain marbles 应用程序。

    希望这对你有用,祝你好运。

    【讨论】:

      【解决方案4】:

      打开此链接:https://atlas.hashicorp.com/hyperledger/boxes/fabric-baseimage

      使用下面的命令:

      vagrant init hyperledger/fabric-baseimage; vagrant up --provider virtualbox
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2019-02-08
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2022-12-15
        • 1970-01-01
        相关资源
        最近更新 更多