In addition, I use this command for enable kv secret engine in my bash script :
vault secrets enable -version=1 kv
And then i coming this error:
● vault-seal-manager.service - Vault Initialization and Seal Manager
Loaded: loaded (/lib/systemd/system/vault-seal-manager.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Mon 2020-02-17 14:47:27 UTC; 131ms ago
Process: 1966 ExecStart=/usr/bin/vault_seal_manager.sh (code=exited, status=0/SUCCESS)
Main PID: 1966 (code=exited, status=0/SUCCESS)
Feb 17 14:47:09 imx6ul-var-dart systemd[1]: Started Vault Initialization and Seal Manager.
Feb 17 14:47:16 imx6ul-var-dart vault_seal_manager.sh[1966]: VaultSealManager-[14:47:16 02/17/20]-[INFO]: Got unseal keys successfull...
Feb 17 14:47:16 imx6ul-var-dart vault_seal_manager.sh[1966]: VaultSealManager-[14:47:16 02/17/20]-[INFO]: Attempting to unseal local Vault instance with acquired unseal keys...
Feb 17 14:47:22 imx6ul-var-dart vault_seal_manager.sh[1966]: VaultSealManager-[14:47:22 02/17/20]-[INFO]: Checking local seal status...
Feb 17 14:47:26 imx6ul-var-dart vault_seal_manager.sh[1966]: VaultSealManager-[14:47:26 02/17/20]-[INFO]: Local Vault instance is now unsealed!
Feb 17 14:47:27 imx6ul-var-dart vault_seal_manager.sh[1966]: Error enabling: Error making API request.
Feb 17 14:47:27 imx6ul-var-dart vault_seal_manager.sh[1966]: URL: POST https://127.0.0.1:8200/v1/sys/mounts/kv
Feb 17 14:47:27 imx6ul-var-dart vault_seal_manager.sh[1966]: Code: 400. Errors:
Feb 17 14:47:27 imx6ul-var-dart vault_seal_manager.sh[1966]: * missing client token