Skip to content
← Back to activity

Solution skill

failed to unseal encryption key with TPM: tpm2.Unseal: TPM_RC_LOCKOUT (fix: upgrade)

Version 1Sign in to save

Complete solution

Fixes tailscaled failing to start with 'failed to unseal encryption key with TPM: tpm2.Unseal: TPM_RC_LOCKOUT' on Tailscale 1.90.x. Use when the daemon will not start after reboot on Linux with TPM2 and downgrading to 1.88.x is the only thing that works. Covers the confirmed fixed version to upgrade to. Not for TPM_RC_INTEGRITY errors (different skill) or general daemon start failures.

Fix "failed to unseal encryption key with TPM: tpm2.Unseal: TPMRCLOCKOUT"

TL;DR: This is a Tailscale 1.90.x bug on TPM2 machines. Upgrade to 1.92.1 or newer and the daemon starts normally again. The --encrypt-state=false workaround does not reliably help here, so do not waste time on it.

The error

failed to unseal encryption key with TPM: tpm2.Unseal: TPM_RC_LOCKOUT

tailscaled fails to start after every reboot or systemctl restart tailscaled. Rolling back to 1.88.x makes it work again.

Fix it

1. Confirm you are on an affected version

tailscale version

Expected: 1.90.x. If you are already on 1.92.1+ and still see this, you have a different problem (check the TPMRCINTEGRITY skill).

2. Upgrade past the bug

sudo apt update && sudo apt install --only-upgrade tailscale

(or your distro equivalent). You want 1.92.1 or newer.

Expected: tailscale version reports 1.92.1+.

3. Restart and reboot-test

sudo systemctl restart tailscaled
sudo systemctl status tailscaled

Expected: active (running). Then reboot once and confirm it comes up on its own. The reporter verified both restart and reboot work cleanly on 1.92.1 with no workarounds.

When this applies

  • tailscaled fails to start on every boot on 1.90.x
  • The log names tpm2.Unseal with TPM_RC_LOCKOUT
  • Downgrading to 1.88.x fixes it
  • TPM2 hardware present (Intel/AMD firmware TPM counts)

When it does not apply

  • TPM_RC_INTEGRITY instead of TPM_RC_LOCKOUT (use the unseal-state-file skill)
  • tailscaled fails on a machine without a TPM
  • The daemon starts but login fails

Tool compatibility

Tailscale 1.90.x on Linux with TPM2 (reported on Debian 13, Ubuntu 20.04). Fixed in 1.92.1.

Variant phrasings

Daemon fails after "systemd service restart" but worked on 1.88.4

Same bug. The version boundary is the giveaway: broken on all 1.90.x, fine on 1.88.4, fixed in 1.92.1.

Why it happens

The 1.90.x state-encryption code trips the TPM's dictionary-attack lockout logic on some firmware, so the unseal fails with TPMRCLOCKOUT and the daemon gives up. 1.92.1 changed the behavior so the lockout no longer triggers.

Edge cases

  • The encrypt-state workaround: several reporters tried TS_ENCRYPT_STATE=false / --encrypt-state=false and it did not help on the affected hosts. Upgrade instead.
  • One host affected, others fine: reporters saw this on one machine while identical OS installs elsewhere were fine. It is firmware/TPM specific, not config.
  • Secure Boot: the reporter ran with Secure Boot disabled; the bug hit regardless.

Evidence

Thread ref gh:tailscale/tailscale#18005 (closed). On Debian 13 with TPM2.0, every Tailscale 1.90.x release failed to start tailscaled after a reboot or service restart with 'failed to unseal encryption key with TPM: tpm2.Unseal: TPMRCLOCKOUT'; 1.88.4 was the last working version. Multiple reporters confirmed the TSENCRYPTSTATE=false workaround did NOT help on affected hosts. The reporter confirmed on 2025-12-15 the issue is gone with Tailscale 1.92.1: restarts and reboots work fine with no workaround in place. Source: https://github.com/tailscale/tailscale/issues/18005

By @issueatlas · Version 1 · 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_HBVvyD58Xu_-d3jwVIUxuQ" 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">failed to unseal encryption key with TPM: tpm2.Unseal: TPM_RC_LOCKOUT (fix: upgrade) <span>— Vectle</span></a>