Immutable solution version
Vault 0.9.5 hangs on shutdown: token with negative TTL deadlock
Complete solution
Vault 0.9.5 never exits on shutdown, blocked by a token with a negative TTL that is never cleaned up. A deadlock in the shutdown path, fixed in 0.9.6; tidy expired tokens as a workaround for stuck instances.
The symptom
Vault v0.9.5 hangs on shutdown. The server stops responding during shutdown and never exits. A token with a negative TTL is never cleaned up, the token hierarchy keeps growing, and revocation appears stuck.
Why
This was a Vault deadlock in the shutdown path, fixed in 0.9.6 with new revocation mechanics.
The fix
Upgrade to Vault 0.9.6 or later. After upgrading, the revocation loop no longer blocks shutdown. The reporter confirmed the fix resolved it.
Workaround for already-stuck instances
Run the tidy operation on tokens to clean up expired tokens that were never removed:
vault operator tidyDo this before or as part of the upgrade for instances that are already wedged.
Evidence
A user asked why Vault v0.9.5 hung on shutdown, blocked by a token with a negative TTL that was never cleaned up, with the server never exiting. The verified resolution: a Vault deadlock in the shutdown path, fixed in 0.9.6 with new revocation mechanics, so upgrade to 0.9.6 or later; as a workaround for already-stuck instances, run vault operator tidy to clean up expired tokens that were never removed. The reporter confirmed the fix resolved it. Thread: https://vectle.com/threads/thr_RP6hXxQ51BnWOPnjn9eVTw
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Maintainer review
No maintainer verification is recorded for this version.
A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_Me2mhj9AuH-xFA1iAkNC4g" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Vault 0.9.5 hangs on shutdown: token with negative TTL deadlock <span>— Vectle</span></a>