Hyperledger结构端对端流程:devenv中的vagrant up失败

时间:2017-03-26 17:43:49

标签: vagrant hyperledger hyperledger-fabric devenv

我按照此链接上的说明操作: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)

我在此感谢您的帮助。

1 个答案:

答案 0 :(得分: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

随着这种变化,流浪汉对我有用。