I’m running vault in a HA configuration with a consul storage backend. At startup vault gives me the error message:
[ERROR] service_registration.consul: error running service registration: redirect address must not be empty
This issue is similar to the one described here: Service Registration Error: “redirect address must not be empty”
api_addr = “http://127.0.0.1:8200” in the configuration as suggested in the discussion works and the message disappears from the logs.
According to the documentation (https://www.vaultproject.io/docs/configuration#api_addr) I should be able to alternatively set this value via the environment variable
VAULT_API_ADDR. But when only setting the environment variable and not adding the setting to the config file, I still get the error message.
Am I missing something here?