Skip to content

[Bug]: Auto-update failures leave configuration backups behind and can fill the filesystem #2127

Description

@Fabrizioso

Describe the bug

When a Pulse auto-update fails after the installer has created a configuration backup under /opt/pulse/config-backups/, the newly created backup is not removed.

The next automatic or manual update attempt creates another full configuration backup. Repeated failed updates therefore progressively consume disk space.

In my case, this eventually filled a 4 GB Proxmox LXC root filesystem to 96% and prevented further updates. More importantly, once an update starts failing because of insufficient disk space, every retry makes the disk-space problem worse.

Pulse itself correctly detects insufficient space and suggests removing old backups, but because the automatic updater retries periodically, additional backups can accumulate without user intervention.

To reproduce

  1. Run Pulse using the systemd installation with automatic updates enabled.
  2. Have enough free disk space for the installer to create a configuration backup, but not enough for the subsequent update staging requirement.
  3. Trigger an update, e.g.:
    systemctl start pulse-update.service
  4. The installer creates a backup under:
    /opt/pulse/config-backups/pulse.backup.<timestamp>
  5. The update subsequently fails its disk-space/staging check.
  6. Check /opt/pulse/config-backups/. The newly created backup remains.
  7. Trigger the update again.
  8. Another full configuration backup is created and also remains after failure.
  9. Repeated retries progressively consume the remaining filesystem space.

This happened during an attempted update from Pulse v6.3.2 to v6.4.1.

Before cleanup, these backups had accumulated:
293M pulse.backup.20260826-190649 439M pulse.backup.20260829-032144 456M pulse.backup.20260830-031504 461M pulse.backup.20260831-041357

Total size was approximately 1.7 GB.

After manually deleting old backups, the filesystem had approximately 1.4 GB free. I triggered the updater manually.

The first failed attempt created another approximately 496 MB backup. The next attempt created another approximately 479 MB backup.

As a result, disk usage went from 64% to approximately 90% after only two failed update attempts.

Expected behavior

A configuration backup created as part of an update should not remain indefinitely after that update fails.

Possible expected behaviours would be:

  • Remove the newly created configuration backup after a failed update has been rolled back successfully.
  • Apply a bounded retention policy to /opt/pulse/config-backups/.
  • Before creating a new backup, prune sufficiently old update backups.
  • Ensure that automatic retries caused by insufficient disk space cannot consume additional persistent disk space on every retry.

In particular, an update failure caused by low disk space should not make the low-disk-space condition progressively worse.

Additional actionable topics

Seems this has been reported earlier in #1646 but either is a regression or not completely solved?

Pulse version

v6.3.2

Agent version

none

Image tag or digest

No response

Installation type

Docker

Relevant logs or diagnostics

Filesystem when the problem was discovered:
Filesystem                        Size  Used Avail Use% Mounted on
/dev/mapper/pve-vm--107--disk--0  3.9G  3.5G  161M  96% /

Backup usage:
293M  /opt/pulse/config-backups/pulse.backup.20260826-190649
439M  /opt/pulse/config-backups/pulse.backup.20260829-032144
456M  /opt/pulse/config-backups/pulse.backup.20260830-031504
461M  /opt/pulse/config-backups/pulse.backup.20260831-041357
1.7G  /opt/pulse/config-backups

First manual retry after freeing disk space:
[INFO] Backing up existing configuration...
[ERROR] Not enough free disk space to stage the Pulse update
[INFO] The same filesystem backs /tmp and /opt/pulse
[INFO] Available: 814MB, required: 1GB
[INFO] Free disk space and retry the update
Update installation failed
Restoring from backup
Update failed

After that failure, a new backup remained:
~496M  pulse.backup.20260920-155450

Second retry:
[INFO] Backing up existing configuration...
[ERROR] Not enough free disk space to stage the Pulse update
[INFO] The same filesystem backs /tmp and /opt/pulse
[INFO] Available: 337MB, required: 1GB
[INFO] Free disk space and retry the update
Update installation failed
Restoring from backup
Update failed

After the second failure:
461M  pulse.backup.20260831-041357
496M  pulse.backup.20260920-155450
479M  pulse.backup.20260920-155527
~1.5G total

Confirmations

  • I verified the exact Pulse version and image reference from the running instance.
  • I searched existing issues for duplicates.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    affects-6.3.2Bug reported against Pulse 6.3.2bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions