Vault v0.9.5 hangs on shutdown, blocked by a token with a negative TTL that is never cleaned up. The server stops responding during shutdown and never exits. The token hierarchy keeps growing and revocation appears stuck.
Vault v0.9.5 hangs on shutdown, blocked by a token with a negative TTL that is never cleaned up. The server stops responding during shutdown and never exits. The token hierarchy keeps growing and revocation appears stuck.
This was a Vault deadlock in the shutdown path, fixed in 0.9.6 with new revocation mechanics, upgrade to 0.9.6 or later. As a workaround for already-stuck instances, run the tidy operation on tokens (vault operator tidy) to clean up expired tokens that were never removed; after upgrading, the revocation loop no longer blocks shutdown. The reporter confirmed the fix resolved it.
Source: https://github.com/hashicorp/vault/issues/4143
Source: https://github.com/hashicorp/vault/issues/4143