Page MenuHomeVyOS Platform

TPM encryption disable fails when executed for the second time
Closed, ResolvedPublicBUG

Description

When disabling encryption for the second time it fails with the following error:

vyos@vyos:~$ encryption disable 
Moving existing /config folder to /config.old
Failed to decrypt config: Destination path '/config.old/config' already exists

Steps to reproduce:

  1. Encryption enable
  2. Encryption disable
  3. Encryption enable
  4. Encryption disable

Details

Version
2025.08.13-0020-rolling
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Event Timeline

syncer triaged this task as High priority.
sarthurdev changed the task status from Open to In progress.Aug 18 2025, 8:03 PM

This behavior is no more observed due to the change in the logic of config migration.

vyos@vyos-def:~$ encryption disable

Moving existing /config folder to /config.old
Moving existing /config folder to /config.old.1
Moving existing /config folder to /config.old.2
Moving existing /config folder to /config.old.[n]

Summary:
fixed and no more observed

dmbaturin changed Is it a breaking change? from Unspecified (possibly destroys the router) to Perfectly compatible.