Introduction
We can set the enterprise license for Vault by using an environment variable. The environment variable
VAULT_LICENSE
to the license key value.If we see those errors on the logs
[ERROR] core: license reload triggered but license path is empty
license reload triggered but license path is empty
If you applied for the license through the environment Variables, we must restart the vault to be able to pick up the new license key that was set via environment variables.
Here are the steps:
Can you please do the following:
- Remove
license_path
from vault config file from all servers - pkill -SIGHUP vault on all servers to load the above change into config
-
update
VAULT_LICENSE
to use the new license key -
Restart vault starting with standby nodes first
We will not see that error once you configured the vault server config file with "license_path" instead of the env variable. If initially vault is configured to use the license from the environment variable, a restart is needed.