Hyperledger Fabric 端到端流程:devenv 中的 vagrant up 失败
Posted
技术标签:
【中文标题】Hyperledger Fabric 端到端流程:devenv 中的 vagrant up 失败【英文标题】:Hyperledger fabric end to end flow: vagrant up in devenv fails 【发布时间】:2017-03-26 17:43:49 【问题描述】:我正在按照此链接中的说明进行操作:https://github.com/hyperledger/fabric/blob/master/examples/e2e_cli/end-to-end.rst
我已经按照这里的说明设置了开发环境(http://hyperledger-fabric.readthedocs.io/en/latest/dev-setup/devenv.html)
现在,当我在 devenv 文件夹中运行“vagrant up”时,我得到以下信息:
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'hyperledger/fabric-baseimage'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'hyperledger/fabric-baseimage' is up to date...
==> default: Setting the name of the VM: hyperledger
==> default: Destroying VM and associated drives...
C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant- 1.9.3/lib/vagrant/util/is_port_open.rb:21:in `initialize': The requested address is not valid in its context. - connect(2) for "0.0.0.0" port 7050 (Errno::EADDRNOTAVAIL)
感谢您的帮助。
【问题讨论】:
Laravel vagrant up not working - Errno::EADDRNOTAVAIL的可能重复 【参考方案1】:这是 vagrant 1.9.3 的一个问题,应该在下一个版本中修复:
https://github.com/mitchellh/vagrant/pull/8399
与此同时,您可以通过在 Vagrantfile 中指定每个端口转发命令中的主机 ip 来解决它:
config.vm.network :forwarded_port, guest: 7050, host: 7050, host_ip: "127.0.0.1" # fabric orderer service
config.vm.network :forwarded_port, guest: 7051, host: 7051, host_ip: "127.0.0.1" # fabric peer service
config.vm.network :forwarded_port, guest: 7053, host: 7053, host_ip: "127.0.0.1" # fabric peer event service
config.vm.network :forwarded_port, guest: 7054, host: 7054, host_ip: "127.0.0.1" # fabric-ca service
config.vm.network :forwarded_port, guest: 5984, host: 15984, host_ip: "127.0.0.1" # CouchDB service
有了这个变化 vagrant up 对我有用。
【讨论】:
以上是关于Hyperledger Fabric 端到端流程:devenv 中的 vagrant up 失败的主要内容,如果未能解决你的问题,请参考以下文章