调和无法与领事后端交谈

时间:2017-06-22 18:34:04

标签: consul hashicorp-vault

我正在尝试为我的保险库/领事设置一个泊坞容器,但收到以下错误: -

2017/06/22 18:15:58.335293 [WARN ] physical/consul: reconcile unable to talk with Consul backend: error=service registration failed: Put http://127.0.0.1:8500/v1/agent/service/register: dial tcp 127.0.0.1:8500: getsockopt: connection refused

这是我的保险库配置文件。

storage "consul" {
  address = "127.0.0.1:8500"
  redirect_addr = "http:/127.0.0.1:8500"
  path    = "vault"
  scheme = "http"
}

listener "tcp" {
  address     = "127.0.0.1:8200"
  tls_disable = 1
}

#telemetry {
#  statsite_address = "127.0.0.1:8125"
#  disable_hostname = true
#}

1 个答案:

答案 0 :(得分:0)

Consul在哪里?

此错误表示我试图访问此网址:http://127.0.0.1:8500/v1/agent/service/register并且无法访问。

这意味着领事不运行,或者它运行的地方不是http://127.0.0.1:8500

找到您的领事,然后更新您的配置以指向它。