Document recovery after an interrupted APT upgrade #321
+26
-7
@@ -342,13 +342,32 @@ console. To update only OS and service packages, use **Server packages**.
|
||||
If APT lists a Coulobre update there, apply the Coulobre package first and
|
||||
refresh the server package list.
|
||||
|
||||
If an upgrade fails, inspect `/var/lib/coulobre-update/` as root and use
|
||||
the [recovery procedure](#install-a-compatible-release-from-the-panel) when recovery is
|
||||
required. Once the issue is resolved, run `sudo dpkg --configure -a` to
|
||||
finish configuration. For a full downgrade, restore the server snapshot
|
||||
including the package database. Removing the package removes its staged
|
||||
installer and remote installation service. The configured panel runtime,
|
||||
service configuration and customer data remain on the server.
|
||||
### Recover a failed APT upgrade
|
||||
|
||||
Inspect `/var/lib/coulobre-update/status.json` as root. The `recovery` field,
|
||||
when present, names the directory with the private `update.log` and the
|
||||
recovery files. If APT reports that linked receivers were not staged and
|
||||
the running panel has not changed, use the
|
||||
[linked-node upgrade procedure](#coordinate-a-release-across-linked-mail-and-dns-receivers).
|
||||
If the status is `failed` and the previous runtime is healthy, fix the
|
||||
reported pre-upgrade problem before retrying package configuration.
|
||||
|
||||
If the status is `recovery_required`, the wheel or database may already
|
||||
have changed even though APT reports that the package is not configured.
|
||||
Do not retry APT yet. Fix the cause and follow the
|
||||
[panel runtime recovery procedure](#install-a-compatible-release-from-the-panel).
|
||||
After the previous runtime, database and services are healthy and the
|
||||
failed `status.json` has been archived, run `sudo dpkg --configure -a` to
|
||||
apply the pending package. Confirm that `sudo dpkg --audit` reports no
|
||||
problems and that the panel reports the target version. For linked
|
||||
installations, keep receiver provisioning paused until all participating
|
||||
panels and receivers are healthy and on the target release.
|
||||
|
||||
Restoring the panel runtime does not downgrade the APT package. For a full
|
||||
downgrade, restore the server snapshot including the package database.
|
||||
Removing the package is not a recovery procedure. It removes the staged
|
||||
installer and remote installation service, but leaves the configured panel
|
||||
runtime, service configuration and customer data on the server.
|
||||
|
||||
Web-initiated APT output is in `/var/lib/coulobre-update/apt-update.log`.
|
||||
If the web launcher was interrupted, verify that `coulobre-apt-update.service`
|
||||
|
||||
Reference in new issue
Block a user