Removing application(s) makes scheduled backups fail when it was included

I think I have found an issue I would consider a bug as it cripples the backups.

Scenario to reproduce:

  1. Install at least an additional application
  2. Include it in a backup schedule
  3. Make sure backup is created according to schedule
  4. Remove application
  5. Observe backup failure notifications

Expected:

  1. Removed application should be removed from backup schedule automatically upon removal
  2. Backups should continue w/o backup of removed application as before.

with a warning status instead of Completed or Error and with a specific message into the notification body lil “was not able to backup %Container% - not present”

This was the email message. I repeatedly got every 3h or so

If I might tag onto this, really, you should be able to configure “back up all installed applications.” If you later install new ones, they’ll be backed up; if you later remove one (or more), the backup will include only what’s installed. And that would address this specific issue too.

I can’t reproduce the issue, after removing an app it’s not available in the backup schedule and it’s not included in the backup anymore.

Please check the system logs, select cluster logs and search for “runagent” to find more details about the error.

Example log output:

2026-08-25T19:55:01+02:00 [1::runagent] checkmk3: starting backup 1 at Tue Aug 25 17:55:01 2026
2026-08-25T19:55:04+02:00 [1:checkmk3:runagent] Repository is present at path 9a76e875-0120-5d64-b642-c20ef85a3c92/checkmk/31645f3b-a2a2-4f42-9777-fef4c13f115a
2026-08-25T19:55:05+02:00 [1:checkmk3:runagent] using parent snapshot 5f68208d
2026-08-25T19:55:05+02:00 [1:checkmk3:runagent] processed 1507 files, 11.497 MiB in 0:01
2026-08-25T19:55:05+02:00 [1:checkmk3:runagent] Files:           2 new,     8 changed,  1497 unmodified
2026-08-25T19:55:05+02:00 [1:checkmk3:runagent] Added to the repository: 99.495 KiB (21.383 KiB stored)
2026-08-25T19:55:05+02:00 [1:checkmk3:runagent] Dirs:            0 new,    19 changed,   416 unmodified
2026-08-25T19:55:05+02:00 [1:checkmk3:runagent] snapshot 86931544 saved
2026-08-25T19:55:08+02:00 [1::runagent] ----------------------------------------------------------------------------------------------------------
2026-08-25T19:55:08+02:00 [1::runagent] keep 3 snapshots:
2026-08-25T19:55:08+02:00 [1::runagent] 86931544  2026-08-25 17:55:04  node1                   last snapshot  /srv/state/environment    11.497 MiB
2026-08-25T19:55:08+02:00 [1::runagent] 5f68208d  2026-08-25 17:51:13  node1                   last snapshot  /srv/state/environment    11.493 MiB
2026-08-25T19:55:08+02:00 [1::runagent] 3 snapshots
2026-08-25T19:55:08+02:00 [1::runagent] 043ad551  2026-07-17 19:01:05  node1                   last snapshot  /srv/state/environment    11.070 MiB
2026-08-25T19:55:08+02:00 [1::runagent] Applying Policy: keep 5 latest snapshots
2026-08-25T19:55:08+02:00 [1::runagent]                                                                       /srv/volumes/checkmk-app
2026-08-25T19:55:08+02:00 [1::runagent] ID        Time                 Host        Tags        Reasons        Paths                     Size
2026-08-25T19:55:09+02:00 [1::runagent] checkmk3: backup 1 completed
2026-08-25T19:55:09+02:00 [1::runagent] Backup 1 completed successfully

Maybe related to Backup UI lists deleted applications as still included in backup schedule · Issue #8094 · NethServer/dev · GitHub

IMVHO this adds a second layer: a different behavior of the backup system.

NethServer 8 Backup should take care of what’s available to backup, discarding what it’s not and proper communicate the status to the sysadmin. Otherwise it fails to the task to backup.

A this moment, the only other option to have a backup of a working NS8 is a snapshot of the host with external tools.

Please, keep this discussion on topic and share ideas about backup improvements in a new Feature discussion.

Already done, almost two years ago:

Mentioning it here because it would address the apparent failure mode OP is seeing.

In my opinion here there are two bugs.

First is the not automatic removal of the container from the process (processes? who knows) of backup.
Second is a backup procedure that fails if any (when it’s not the only one) of the container is “missing for some reason”.

Both procedures have bugs:
the container/application removal
the backup procedure

Yes, maybe, but to pin down the backup error we need log evidence, otherwise we’re just speculating.

Hi @jmartens

I think core release 3.21.1 already ships a patch matching the expected behavior — worth a try.

That’s the configured Prometheus/Alertmanager behavior: a notification is sent every 3 hours for firing alerts, until they are resolved.