I experimented with running vault as a dev server and everything seemed to go well, so I wiped the setup and started again running vault as a production service.
I set storage to “file” with path “/home/vault/data” and made the directory and checked the perms to ensure everything is owned by vault.
I initialised my vault and captured the unsealing tokens and the root token, and I can seal and unseal and login just fine.
I just want to store simple key/value pairs for now, so tried to enable the kv engine, and I get error 400 and “failed to update mount table” like this:
# vault secrets enable kv Error enabling: Error making API request. URL: POST https://vault.example.com:8200/v1/sys/mounts/kv Code: 400. Errors: * failed to update mount table
I’ve googled for this error and found nothing except bits of source code. Even the reference to “mount table” is obscure, until I found this page which explains it a little bit: https://www.vaultproject.io/docs/secrets/
Any ideas gratefully received, thanks.