Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with unseal using raft storage #9071

Closed
igor-nikiforov opened this issue May 23, 2020 · 3 comments
Closed

Issue with unseal using raft storage #9071

igor-nikiforov opened this issue May 23, 2020 · 3 comments

Comments

@igor-nikiforov
Copy link

Describe the bug
Cannot unseal Vault 1.4.2 with raft storage using only one node.

To Reproduce
Start Vault with Raft storage, create cluster with 1 node and try to unseal.

CLI:

# export VAULT_ADDR=http://0.0.0.0:8200
# vault operator unseal
Unseal Key (will be hidden):
Error unsealing: Error making API request.

URL: PUT http://0.0.0.0:8200/v1/sys/unseal
Code: 500. Errors:

* cannot use unspecified IP with raft storage: 0.0.0.0:8201

UI:
Each attempt of unseal from UI cause this line in log - [WARN] core: cluster listener is already started

Expected behavior
This worked with Vault 1.4.0 and 1.4.1 versions.

Environment:
Vault 1.4.2

Vault server configuration file(s):

storage "raft" {
  path    = "/vault/data"
  node_id = "node-1"
}

listener "tcp" {
  address = "0.0.0.0:8200"
  cluster_address = "0.0.0.0:8201"
  tls_disable = true
}

disable_mlock = true
api_addr = "http://0.0.0.0:8200"
cluster_addr = "http://0.0.0.0:8201"
ui = true

Additional context
It is probably regression from PR 9008.

@ingtarius
Copy link

Confirm, same issue

@raskchanky
Copy link
Contributor

From reading the changes in #9008, it doesn't look like a regression. That PR specifically forbids the use of 0.0.0.0 as a cluster address. I'm going to close this, because I don't think there's anything for us to do here.

@ingtarius
Copy link

https://discuss.hashicorp.com/t/cant-unseal-new-vault/15416/2
If it is one node install, then you should use 127.0.0.1 for cluster_addr
I cant check it right now

stopsopa pushed a commit to stopsopa/vault_prototype that referenced this issue Jul 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants