Synology Active Backup: The Rotated Certificate That Made a Healthy Backup Look Broken
The Alert Arrived Before the Backup Did
At 08:24 on 2026-11-29, the backup watchdog for the infrastructure I manage reported one Linux agent in error:
Service Status: Error - SSL certificate has been changed
Last backup: 2026-11-27 03:00
The status has the shape of a failed backup, and that is how it usually gets handled: open the DSM console, find the task, run it again, and hope the error clears. I did not do that. The first useful fact was the calendar.
The task is not nightly. Active Backup for Business runs it on Monday, Wednesday and Friday at 03:00. The last successful run was Friday 2026-11-27 at 03:00; the next was Monday 2026-11-30 at 03:00. The alert arrived on Sunday. There was no scheduled run between the last success and the alert, so there was nothing for the task to have missed.
That still left two possibilities: the agent had genuinely lost its registration, or the agent was healthy and the status was describing a different event. The wording pointed to the second one.
The Root Cause Was a Certificate Renewal, Not a Backup Failure
Active Backup for Business agents verify the DSM server certificate and pin the fingerprint they first accepted. Even a valid renewal changes that fingerprint, so the agent refuses to connect until the new certificate is confirmed. When DSM renews the certificate, the agent sees a different fingerprint and refuses the connection. The agent status becomes Error - SSL certificate has been changed; the backup task itself is not started.
The DSM log supplied the timing:
| Evidence | Value |
|---|---|
Certificate NotBefore | renewal day (UTC) |
| Certificate written on DSM | 02:18 local (UTC+8), inside the maintenance window |
Certificate NotAfter | 90 days later |
| Certificates renewed in the maintenance window | 15 |
| Maintenance window | 2026-11-29 01:53–02:58 local (UTC+8) |
| Agent version | 3.2.2-5554 |
| Task schedule | Monday, Wednesday, Friday at 03:00 |
The endpoint certificate was written at 02:18, one of fifteen renewed in a 65-minute window. The agent had been working with the previous fingerprint since its last successful connection. Nothing in the backup data path had failed; the certificate trust anchor had moved.
This is also why the error looks more alarming than it is. The status is produced by the agent before the task runs, so a certificate mismatch and a failed transfer produce the same red state. A monitoring rule that reads only the status word cannot tell the difference.
The Fix Was Two Confirmation Prompts
The agent has a reconnect command. It asks two questions because the new certificate belongs to the same endpoint and because the fingerprint has changed. Both answers are y:
sudo abb-cli -s # read the agent's own status
sudo abb-cli -r # reconnect and accept the renewed certificate
# y — the certificate belongs to the backup endpoint
# y — the certificate has changed, proceed
The reconnect returned Successfully reconnected. The registration stayed intact, and a second abb-cli -s showed Idle - Completed, not a new task result.
There is no supported CLI command that starts an ABB task on demand. The DSM backup CLI returns 0 but belongs to a different backup product, not ABB. A manual run has to go through the DSM desktop, and it was not needed here: the next scheduled run was 2026-11-30 03:00, about 18.5 hours after the alert.
The Watchdog Was Also Wrong
The reconnect fixed the agent. The second bug was in the watchdog that reported it.
The check normalizes both timestamps to UTC and compares the full difference. On Monday 09:00, if the 03:00 run has not yet updated the last-success field, the last success is still Friday 03:00: a gap of three days and six hours. With max_age_days = 2, that gap exceeded the threshold even though the run was due six hours earlier and the backup was healthy. The threshold was not aligned with the schedule.
The threshold is now 4 days. That covers the three-day-six-hour weekend gap with 18 hours of slack and still catches a run of consecutive missed backups on the Monday/Wednesday/Friday schedule. The check keeps two rules that matter more than the threshold:
abb-cli -sis the authority for the agent’s view. The agent’s status reflects its last completed run; the daemon journal is not a substitute, and DSM’s task view is a separate server-side record.- Normalize both timestamps to UTC before comparing. Truncating to a date can move a 03:00 local event into the previous UTC day; the full timestamp avoids that boundary error.
I kept the reconnect manual. Automatically answering both prompts would accept any changed certificate, including an intercepted one, and would defeat the pinning check the agent is doing.
🔍 Watchdog decision order (status, schedule gap, certificate error; 13-line excerpt, not the full script)
status = run_abb_cli(host)
if "certificate has been changed" in status:
alert(host, "certificate changed; reconnect required")
return
if "Idle" not in status and "Running" not in status:
alert(host, status)
return
last = parse_last_backup(status)
if last is None or (now - last).total_seconds() > host.max_age_days * 86400:
alert(host, "last backup is older than the schedule allows")
The Result
The agent reconnected on the first attempt. The status returned to Idle - Completed; the registration survived; the next scheduled run had a valid certificate to use. The measured result of the incident was:
- 15 certificates renewed in the same window; the endpoint certificate was written at 02:18, inside it.
- 65 minutes between the first and last renewal, from 01:53 to 02:58 local time.
- 0 missed backups: the task was not due between Friday 03:00 and Monday 03:00.
- 1 threshold change from 2 days to 4; the next weekend cycle will confirm the false alarm is gone.
After this incident, I stopped treating certificate rotation as a standalone TLS task on the infrastructure I manage. For any agent that pins a certificate, I now keep three things in my notes: the exact reconnect command, a stale threshold aligned with the real backup schedule, and an alert message that separates a trust change from a failed backup. Without those three, a routine renewal triggers the same backup-failure alert as a lost backup.
Dealing with flaky containers, cloud cost bloat, or unexplained outages?
Real production reliability comes from understanding the kernel and the protocol layers, not just restarting containers. I manage 162 containers across 3 hosts running 24/7 client workloads.