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

Vault plugin tls init error: "no address for the vault found" #3612

Closed
calvn opened this issue Nov 27, 2017 · 2 comments
Closed

Vault plugin tls init error: "no address for the vault found" #3612

calvn opened this issue Nov 27, 2017 · 2 comments
Milestone

Comments

@calvn
Copy link
Contributor

calvn commented Nov 27, 2017

Environment:

  • Vault Version: Vault v0.9.0 ('254d0ab784a2135d05badab044aae462da7de563')
  • Operating System/Architecture: MacOS

Vault Config File:

ui = true

plugin_directory="/Users/cleung/code/tmp/vault_plugins"
listener "tcp" {
 address = "127.0.0.1:8200"
 tls_disable = 1
}

storage "file" {
  path = "/tmp/vault/data"
}

Startup Log Output:

2017/11/27 04:24:21.945330 [DEBUG] plugin: starting plugin: path=/Users/cleung/code/tmp/vault_plugins/vault-secrets-gen args=[/Users/cleung/code/tmp/vault_plugins/vault-secrets-gen]
2017/11/27 04:24:21.948187 [DEBUG] plugin: waiting for RPC address: path=/Users/cleung/code/tmp/vault_plugins/vault-secrets-gen
2017/11/27 04:24:21.954070 [ERROR] plugin.vault-secrets-gen: plugin tls init: error="no address for the vault found"
2017/11/27 04:24:21.955181 [DEBUG] plugin: plugin process exited: path=/Users/cleung/code/tmp/vault_plugins/vault-secrets-gen
2017/11/27 04:24:21.955249 [ERROR] core: failed to run existence check: error=plugin exited before we could connect

Expected Behavior:

Vault should initialize the plugin backend.

Actual Behavior:

Backend fails to initialize due to tls init error:

2017/11/27 04:26:12.112126 [DEBUG] plugin: waiting for RPC address: path=/Users/cleung/code/tmp/vault_plugins/vault-secrets-gen
2017/11/27 04:26:12.122844 [ERROR] plugin.vault-secrets-gen: plugin tls init: error="no address for the vault found"
2017/11/27 04:26:12.122923 [DEBUG] plugin: plugin process exited: path=/Users/cleung/code/tmp/vault_plugins/vault-secrets-gen
2017/11/27 04:26:12.123013 [ERROR] rollback: error rolling back: path=gen/ error=plugin exited before we could connect

Steps to Reproduce:

  • Initialize
  • Mount plugin backend
  • Seal
  • Unseal

Important Factoids:

References:

sethvargo/vault-secrets-gen#2

@briankassouf
Copy link
Contributor

@calvn pretty sure this is happening because the api_addr config setting isn't set.

@briankassouf
Copy link
Contributor

We should probably update the error message to be a little more clear here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants