when i try to run “vault secrets list” am getting below error.
[ec2-user@ip-10-0-5-126 ~] vault secrets list Error listing secrets engines: Get "https://127.0.0.1:8200/v1/sys/mounts": dial tcp 127.0.0.1:8200: connect: connection refused [ec2-user@ip-10-0-5-126 ~]
vault.service logs:
2021-06-30T09:31:06.510Z [WARN] storage migration check error: error=“Unexpected response code: 500”
2021-06-30T09:31:08.511Z [WARN] storage migration check error: error=“Unexpected response code: 500”
2021-06-30T09:31:10.512Z [WARN] storage migration check error: error=“Unexpected response code: 500”
2021-06-30T09:31:12.513Z [WARN] storage migration check error: error=“Unexpected response code: 500”
2021-06-30T09:31:14.514Z [WARN] storage migration check error: error=“Unexpected response code: 500”
2021-06-30T09:31:16.516Z [WARN] storage migration check error: error=“Unexpected response code: 500”
2021-06-30T09:31:18.517Z [WARN] storage migration check error: error=“Unexpected response code: 500”
2021-06-30T09:31:20.518Z [WARN] storage migration check error: error=“Unexpected response code: 500”
2021-06-30T09:31:22.520Z [WARN] storage migration check error: error=“Unexpected response code: 500”
2021-06-30T09:31:24.521Z [WARN] storage migration check error: error=“Unexpected response code: 500”
vault.hcl file configuration:
[ec2-user@ip-10-0-5-126 vault.d]$ sudo cat vault.hcl
listener “tcp” {
address = “0.0.0.0:8200”
tls_disable = 1
tls_cert_file = “/etc/ssl/vault/fullchain.pem”
tls_key_file = “/etc/ssl/vault/privkey.pem”
}
storage “consul” {
address = “127.0.0.1:8500”
path = “vault/”
token = “55e5e9da-5827-c49c-d967-aaadd2e724ac”
}
ui = true
api_addr = “http://10.0.5.126:8200”
[ec2-user@ip-10-0-5-126 vault.d]$
Can anyone help me on this.