0

我已经尝试过使用 vagrant 运行的官方 bigchainDB 教程。 https://docs.bigchaindb.com/projects/server/en/v1.3.0/appendices/run-with-vagrant.html

每次我点击命令vagrant up时,都会出现以下错误:

==> config-node: Configuring cache buckets...
==> config-node: Running provisioner: hosts...
==> bdb-node-01: Updating hosts on: bdb-node-01
==> config-node: Configuring cache buckets...
==> config-node: Running provisioner: shell...
    config-node: Running: inline script
    config-node: Operation Sytem: ubuntu
    config-node: Version: 16.04
    config-node: Dependencies already installed:[ ansible ]
==> config-node: Configuring cache buckets...
==> config-node: Running provisioner: shell...
    config-node: Running: inline script
    config-node: 
    config-node: PLAY [all] *********************************************************************
    config-node: 
    config-node: TASK [Gathering Facts] *********************************************************
    config-node: fatal: [bdb-node-01]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Permission denied (publickey).\r\n", "unreachable": true}
    config-node:    to retry, use: --limit @/bigchaindb/configuration/bdb-deploy.retry
    config-node: 
    config-node: PLAY RECAP *********************************************************************
    config-node: bdb-node-01                : ok=0    changed=0    unreachable=1    failed=0   
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

有人有同样的问题吗?

4

1 回答 1

2

似乎 ansible 无法登录 bdb-node-01。您能否验证您运行vagrant up的目录是否具有:

/path/to/vagrant/directory/.vagrant/machines/bdb-node-01/virtualbox/private_key

能否也告诉我以下内容:

/path/to/repo/bigchaindb/pkg/configuration/hosts

我想如果我有更多的信息,我将能够为您提供更多帮助。

您也可以在我们的github上提交工单,我们可以处理它。

于 2018-01-24T17:16:39.090 回答