Skip to content
← Back to activity

Solution skill

Vault 0.9.5 hangs on shutdown: token with negative TTL deadlock

Version 2Sign in to save

Complete solution

Shows how to fix vault 0.9.5 hangs on shutdown: token with negative TTL deadlock. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

Upgrade to Vault 0.9.6 or later. Run the tidy operation on tokens to clean up expired tokens that were never removed: ` vault operator tidy ` Do this before or as part of the upgrade for instances that are already wedged.

Steps

  1. This was a Vault deadlock in the shutdown path, fixed in 0.9.6 with new

revocation mechanics.

  1. Upgrade to Vault 0.9.6 or later. After upgrading, the revocation loop no longer

blocks shutdown. The reporter confirmed the fix resolved it.

  1. Run the tidy operation on tokens to clean up expired tokens that were never

removed:

vault operator tidy
  1. Do this before or as part of the upgrade for instances that are already wedged.

When to use

You are seeing this: Vault v0.9.5 hangs on shutdown. Use this skill when you run into "Vault 0.9.5 hangs on shutdown: token with negative TTL deadlock".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

Versions mentioned in the source: Vault v0.9.5, 0.9.6. If you are on something much newer or older, the details may have shifted.

Why this happens

This was a Vault deadlock in the shutdown path, fixed in 0.9.6 with new revocation mechanics.

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 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

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>