Repository navigation
Description
Summary
The production host runs Debian 11. Debian 11 LTS ended on 2026-08-31, so the host gets no more security fixes.
This issue upgrades the current droplet in place, in two hops: 11 → 12 → 13. Debian does not support a skip. Each hop gets its own DigitalOcean snapshot and one reboot. Rollback is a restore of the pre-hop snapshot. The maintainer ruled this on 2026-11-16 (Decision 1).
Each hop is a full outage, because this is the only production host. It is blocked on the Preconditions below.
Benchmark
| Field | Value |
|---|---|
| Metric | (1) Editing pause per hop, seconds from the step 7 stop to the first saved edit after the step 11 start. (2) Lost edits in the content-safety block, count. (3) Known CVEs in installed packages on the production host, count. (4) Edge probe failures per hop, seconds. |
| Before | (1) Not measured yet: read at each hop. (2) Not measured yet. (3) Not measured yet: the maintainer runs debsecan in step 2, on Debian 11. Debian 11 LTS ended on 2026-08-31, so a pending-upgrade count would read 0 there. (4) Not measured yet. |
| After | Not measured yet. |
| Condition | Same droplet, same size, same region and VPC, same managed collab database. Two hops, one value each, exact. M1 and M5 rows after the upgrade form a new sample (#796, #760). |
| How to run | (1) A test browser types one line every 10 s in the content-safety test pad. Read the "createdAt" of the newest "Documents" row before step 7, and the first one after step 11. (2) The content-safety block. (3) debsecan | wc -l for known CVEs. debsecan --suite <codename> --only-fixed | wc -l is a second row (fix available, not installed). (4) A one-second laptop probe on https://docs.plus/api/health (the #746 step 12 loop). Prometheus runs on this host, so it records nothing while the host is down. The laptop probe gives the seconds. |
| Pass rule | (1) Exact seconds per hop, posted. (2) 0. (3) Exact counts, posted for Debian 11 and Debian 13. The --only-fixed count is 0 on Debian 13. (4) Exact seconds per hop, posted. Stop rule: if a step 10 check fails, do not run step 11 or the next hop. Fix it, or run Rollback. |
| Guard | The content-safety block, at each hop. Before each snapshot, no store job waits, and every *-dlq queue is at wait=0. Failed store jobs and the DLQ are 0 24 h after hop 2. The container list and the GlitchTip issue count match step 1 after each hop. |
| Owner | Maintainer: every step and every read. Agent in the repo: drafts the Measured comment. |
| Claim | "Production moved from Debian 11 to Debian 13 in place, with N s and M s of editing pause and 0 lost edits." |
Rows
| Metric | Before (take in steps 1-2) | After | Method |
|---|---|---|---|
| OS and security support | Debian 11; LTS ended 2026-08-31 | Not measured yet; target Debian 13, LTS to 2030-06-30 | /etc/os-release |
| Known CVEs in installed packages | Not measured yet: Debian 11 | Not measured yet: Debian 13 | debsecan | wc -l |
| CVEs with a fix available but not installed (second row) | Not measured yet: --suite bullseye |
Not measured yet: --suite trixie |
debsecan --suite <codename> --only-fixed | wc -l |
| Editing pause, hop 1 and hop 2 | — | Not measured yet | Test browser; "createdAt" rows |
| Edge probe failures, hop 1 and hop 2 | — | Not measured yet | 1-second laptop probe |
| Store queue and DLQ before each snapshot | — | Not measured yet; no waiting store job, DLQ wait=0 |
Step 7 Redis read |
| Lost edits | — | Not measured yet | Content-safety block |
| Running containers | 25 (host read, 2026-11-16) | Not measured yet; the same names | docker ps, step 1 list |
| Backup timers | 7, after #748 (0 on 2026-11-11) | Not measured yet | systemctl list-timers --all | grep -c docsplus-backup |
| Next push deploy | — | Not measured yet | gh run list, on prod.docs.plus |
n: one exact value per hop for the pause and probe rows. One upgrade, exact, for the loss row.
Evidence
- SSH as the deploy user, 2026-11-11.
/etc/os-releasesaysDebian GNU/Linux 11 (bullseye).uname -rprints5.10.0-39-cloud-amd64./var/run/reboot-requiredexists. The host has been up since 2026-05-01. - Host read, read-only, 2026-11-16 19:57Z. Debian 11.11. Kernel
5.10.0-46is installed but not running. Root disk 158G, 124G used, 28G free. RAM 15 GiB. - Host read, 2026-11-16. Every app service runs in Docker 29.1.3, in 25 containers. App data is on the managed Postgres cluster, not on this host.
- Host read, 2026-11-16. Failed units:
pm2-superuser.service(Move the production runner to its systemd unit and its own root, and remove the stage runner #743) andvnstat.service. - Host read, 2026-11-16. The Docker apt source is
download.docker.com/linux/ubuntu bullseye, the Ubuntu repo. Third-party sources also include pgdg (client only), the two DigitalOcean agents, and yarn. - Host read, 2026-11-16. Host
redis-server6.0.16 listens on127.0.0.1:6379. The app uses thedocsplus-rediscontainer. - Host read, 2026-11-16 20:26Z (agent, read-only). The host Redis on
6379holds 0 keys, andCLIENT LISTshowed only the reading client. All apt sources are.listfiles; there are no deb822.sourcesfiles.docker-ceis5:29.1.3-1~debian.11~bullseyeandcontainerd.iois2.2.0-2~debian.11~bullseye, so the installed builds are already Debian builds.haproxyis not installed. - Host read, 2026-11-16 20:26Z. PM2 also runs TinyDocy's three apps from
/opt/projects/editor.docs.plus, one of them a second Redis. They go through both hops. - Debian news, 2026-08-31. Debian 11 LTS ended. Paid ELTS covers only a subset of packages.
- wiki.debian.org/LTS, read 2026-11-08. Debian 12 LTS runs to 2028-06-30, and Debian 13 LTS to 2030-06-30.
- SSH, 2026-11-11.
/etc/docker/daemon.jsonsets three registry mirrors, one of them a third-party mirror. This issue does not change it. - Read from code at
0b302b222. Every deploy job runs on theprod.docs.plusrunner label (.github/workflows/prod.docs.plus.yml:479,:695,:1186,:1251). So a stopped runner stops every deploy. - Move the production runner to its systemd unit and its own root, and remove the stage runner #743 evidence, 2026-11-11. TinyDocy's three apps run under PM2 on this host.
Risk
- Every new Debian 11 flaw stays open on the internet-facing host.
- Each hop is a full outage on the only production host.
- Rollback is a snapshot restore. It loses Prometheus, Loki, GlitchTip and Uptime Kuma data written after the snapshot.
Preconditions
Do not start hop 1 until each is done:
- Back up the production stores off-host, and drill a restore #748: backups run, and its restore drill passed.
- Move the production runner to its systemd unit and its own root, and remove the stage runner #743: the runner starts from its
svc.shsystemd unit in/opt/actions-runner/prod, so it comes back after each reboot. - Reboot the production host to load the installed kernel updates #708: the plain reboot is done. It proves the host and every container come back before hop 1.
- A host network item tracked privately is done (maintainer checkbox; number added when filed).
- TinyDocy's owner knows that TinyDocy goes down at each hop, and how it comes back. This issue does not move it.
- Run the backend and webapp image builds at the same time, to cut the image build step #567 has posted its Final, or Run the backend and webapp image builds at the same time, to cut the image build step #567 records that it retakes its baseline after this upgrade.
Steps
Deploy: no deploy. Two outage windows, one per hop. Merges to main stop during each window. Hop 2 may follow hop 1 in the same window, once hop 1 passes step 10.
Prepare (no outage)
-
Owner: maintainer, SSH as the deploy user. Record the inventory. Post counts and versions only.
nproc; free -g; df -h / docker version --format '{{.Server.Version}}' dpkg -l docker-ce containerd.io | tail -n 2 docker ps --format '{{.Names}}' | sort > "$HOME/containers-before.txt"; wc -l < "$HOME/containers-before.txt" systemctl --failed --plain --no-legend grep -rh '^[^#]' /etc/apt/sources.list /etc/apt/sources.list.d/ apt-mark showhold; dpkg --audit
Also record the GlitchTip issue count (GlitchTip → Issues, all projects) and
curl -sS -o /dev/null -w '%{http_code}\n' https://status.docs.plusfrom a laptop. -
Owner: maintainer, SSH with
sudo. Take the CVE befores:sudo apt-get install -y debsecan. Thendebsecan | wc -landdebsecan --suite bullseye --only-fixed | wc -l. -
Owner: maintainer, SSH with
sudo. Stop the host Redis service, if nothing uses it. Keep theredis-serverpackage: it owns/usr/bin/redis-server, which PM2editor-redis(TinyDocy) runs.redis-cli -h 127.0.0.1 -p 6379 CLIENT LIST redis-cli -h 127.0.0.1 -p 6379 INFO keyspace sudo ss -tnp | grep ':6379'
Pass:
CLIENT LISTshows only thisredis-cli, andssshows no other client. Record the key count. If any process connects, stop, and ask its owner (TinyDocy first). Then runsudo systemctl disable --now redis-server. Do not purge the package. Each hop upgrades it, andeditor-redisstarts the new binary at the reboot; its PM2 args keep no data on disk. -
Owner: maintainer, SSH with
sudo. Yarn. Host read, 2026-11-16: the five PM2 apps (stage.docs.plus-runner,prod.docs.plus-runner,editor-next,editor-redis,editor-hocus) start throughbash,bunorredis-server, andeditor.docs.plushas abun.lock. No crontab line or systemd unit names yarn. If that still holds, and no unit, cron job or PM2 app usesyarn, runsudo apt-get purge -y yarn, and delete its apt source file. If something uses it, keep it. Its source line changes in step 8 only if it names a codename. -
Owner: maintainer, SSH with
sudo. Bring Debian 11 fully up to date:sudo apt-get update && sudo apt-get full-upgrade. Pass:dpkg --auditprints nothing.apt-mark showholdprints nothing, or each hold is recorded here.
Each hop
Run steps 6-11 twice:
- Hop 1:
OLD=bullseye,NEW=bookworm, targetVERSION_ID12. - Hop 2:
OLD=bookworm,NEW=trixie, targetVERSION_ID13.
Set both in the shell before step 7, and again after the step 9 reboot. The DigitalOcean snapshot (step 7) comes before each hop.
-
Owner: maintainer. Announce the window, and stop merges to
main. Start the content-safety block and the one-second laptop probe.Content safety. Use one throwaway test pad that you create for this window. Never use
/demo. Run it through steps 7-11.- Two browsers type in the test pad until step 7. One of them types one line every 10 s, for the pause read.
- One tab goes offline before step 7, and comes back after step 11.
- One tab closes within 1 s of an edit, and is reopened after step 11.
- After step 11, both browsers reload to the same text, with no lost line.
- Failed store jobs and the DLQ are 0 before the snapshot, and 24 h after hop 2.
- Delete the test pad after hop 2.
-
Owner: maintainer, SSH, then the DigitalOcean console. Stop the runner, drain the store queue, and hold the app services down. Then take the snapshot.
cd /opt/actions-runner/prod && sudo ./svc.sh stop cd /opt/projects/prod.docs.plus/.deploy/current docker compose -f docker-compose.prod.yml --env-file .env.production stop hocuspocus-server # wait: the Grafana worker dashboard shows no waiting store job and an empty store DLQ docker compose -f docker-compose.prod.yml --env-file .env.production stop rest-api hocuspocus-worker
Record the per-queue counts. Post counts only.
R() { docker exec docsplus-redis redis-cli "$@"; } for k in $(R --scan --pattern 'bull:*:meta'); do q=${k#bull:}; q=${q%:meta} echo "$q wait=$(R LLEN "bull:$q:wait") delayed=$(R ZCARD "bull:$q:delayed") failed=$(R ZCARD "bull:$q:failed")" done | sort > "$HOME/queues-$NEW.txt"
Pass: no waiting store job, and every
*-dlqqueue atwait=0.Docker restarts during the upgrade and at boot. Then
restart: alwayswould start these services on a half-upgraded host. So hold them down until step 11:for s in rest-api hocuspocus-server hocuspocus-worker; do for c in $(docker ps -aq --filter "label=com.docker.compose.service=$s"); do docker update --restart=no "$c" >/dev/null && docker inspect -f '{{.Name}} {{.HostConfig.RestartPolicy.Name}}' "$c" done done | tee "$HOME/restart-no.txt"
Then take a DigitalOcean snapshot of the droplet, named
pre-$NEW. Wait until it finishes. It is a live snapshot, taken with the app services down; Prometheus, Loki and the GlitchTip Postgres recover from their own write-ahead logs. Record its minutes; they count in the editing pause. Expect a watchdog page while the runner is down (Make CI failures reach Telegram: set the watchdog secrets, alert on red E2E pushes #557). -
Owner: maintainer, SSH with
sudo, insidetmuxorscreen. Switch every apt source fromOLDtoNEW. This covers Debian, its security line, pgdg, the two DigitalOcean agents, and yarn if kept.sudo sed -i "s/$OLD/$NEW/g" /etc/apt/sources.list /etc/apt/sources.list.d/*.list
Hop 1 only: the Docker source moves from the Ubuntu repo to the Debian repo.
f=$(grep -rl download.docker.com /etc/apt/sources.list.d/) sudo sed -i 's#download.docker.com/linux/ubuntu#download.docker.com/linux/debian#' "$f"
Pass:
grep -rn "$OLD" /etc/apt/sources.list /etc/apt/sources.list.d/prints nothing.sudo apt-get updateprints no error. If Docker reports a key error, fetch its key fromhttps://download.docker.com/linux/debian/gpg. Recordapt-cache policy docker-ce. -
Owner: maintainer, SSH with
sudo, in the sametmux. Upgrade, then reboot once.sudo apt-get upgrade --without-new-pkgs sudo apt-get full-upgrade dpkg --audit sudo reboot
At each config-file prompt, keep the installed version. Record each file here.
dpkg --auditprints nothing before the reboot. -
Owner: maintainer, SSH and a laptop. Check the host before the app services start.
. /etc/os-release; echo "$VERSION_ID" apt-cache policy | grep -m1 "$NEW-security" grep -rn "$OLD" /etc/apt/sources.list /etc/apt/sources.list.d/ docker ps --format '{{.Names}}' | sort | diff "$HOME/containers-before.txt" - docker ps --filter health=unhealthy --filter health=starting -q systemctl --failed --plain --no-legend systemctl is-active "$(cat /opt/actions-runner/prod/.service)" systemctl list-timers --all | grep -c docsplus-backup
Pass:
VERSION_IDis the target. One security line. TheOLDgrep prints nothing.- The container diff lists only the three held services.
- No container is unhealthy or starting, after a few minutes.
- No failed unit beyond the step 1 list.
- The runner unit is
active. The backup timer count is7. - From a laptop,
gh api repos/docs-plus/docs.plus/actions/runners --jq '.runners[]|[.name,.status]|@tsv'printsprod.docs.plus online.
If a check fails, do not start the services. Fix it, or run Rollback.
-
Owner: maintainer, SSH and a laptop. Start the app services, and run the Verify Deployment checks (
prod.docs.plus.yml:1032).awk '{sub(/^\//, "", $1); print $1}' "$HOME/restart-no.txt" | xargs -r docker update --restart=always cd /opt/projects/prod.docs.plus/.deploy/current docker compose -f docker-compose.prod.yml --env-file .env.production start rest-api hocuspocus-worker hocuspocus-server
-
traefikanddocsplus-redisrun.webapp,rest-api,hocuspocus-server,hocuspocus-workerandadmin-dashboardeach run and report healthy. -
The internal smoke checks pass, as in
prod.docs.plus.yml:1063-1082. -
From a laptop:
for h in docs.plus prodback.docs.plus admin.docs.plus status.docs.plus; do p=/; [ "$h" = prodback.docs.plus ] && p=/health curl -sS -o /dev/null -w "%{http_code} $h\n" "https://$h$p" done
Pass:
200for each. -
Grafana → Explore → Prometheus:
probe_successis1for every probe. -
Read the first saved edit's
"createdAt"for the pause. Stop the laptop probe, and post its failure seconds. -
Finish the content-safety block. Reopen merges to
main.
-
After hop 2
- Owner: maintainer, SSH. Take the CVE afters:
debsecan | wc -landdebsecan --suite trixie --only-fixed | wc -l. Check the GlitchTip issue count and thestatus.docs.pluscode against step 1. - Owner: maintainer. 24 h after hop 2, check Grafana and the store queues. Then let the next push-to-
maindeploy run. - Owner: maintainer, DigitalOcean console. Keep both snapshots for 14 days. Then delete them.
Verify
| Check | Owner and command | Before | After |
|---|---|---|---|
| OS | . /etc/os-release; echo "$VERSION_ID" |
11 |
12 after hop 1, 13 after hop 2 |
| Security source | apt-cache policy | grep -m1 trixie-security |
— | One line |
| Old sources | grep -rn bookworm /etc/apt/sources.list /etc/apt/sources.list.d/ after hop 2 |
— | No output |
| Containers | docker ps, against step 1 |
25 | The same names; none unhealthy |
| Failed units | systemctl --failed |
pm2-superuser.service, vnstat.service |
No new unit |
| Probes | Grafana → Explore → Prometheus: probe_success |
1 per probe |
1 per probe |
| Runner | gh api repos/docs-plus/docs.plus/actions/runners --jq '.runners[]|[.name,.status]|@tsv' |
prod.docs.plus online |
prod.docs.plus online |
| Next deploy | The next push-to-main deploy |
— | success, on prod.docs.plus |
| Saves land | Collab database: SELECT max("createdAt") FROM "Documents"; before step 7 and after step 11 |
— | Moves forward; store dead-letter queue empty |
| Content safety | The step 6 block, each hop | — | Every line passes; 0 lost edits |
| Status page | Laptop: curl -sS -o /dev/null -w '%{http_code}\n' https://status.docs.plus |
Step 1 | The same code |
| Backups | systemctl list-timers --all | grep -c docsplus-backup |
7, after #748 |
7 |
| GlitchTip | Issue count, steps 1 and 12 | Step 1 count | The same |
| Alerts | Grafana, 24 h after hop 2 | — | No firing alert except Deadman |
| Host network | The checks of a host network item tracked privately | — | Pass |
Rollback
Use it when a hop fails step 10 or step 11.
- Owner: maintainer, SSH. If the app services already run on the new release, run the step 7 stop and drain first. Pass: no waiting store job, and the DLQ at
wait=0. - Owner: maintainer, DigitalOcean console. Restore the droplet from that hop's
pre-$NEWsnapshot. The droplet keeps its addresses.- The restore loses Prometheus, Loki, GlitchTip and Uptime Kuma data written after the snapshot.
- Saves are not lost. They live in the managed collab database, and the store queue was drained before the snapshot.
- Owner: maintainer, SSH. The snapshot holds the three services at
restart=no. Run the step 10 checks against the old release. Then run step 11. - Run the step 6 content-safety block again.
Acceptance criteria
- Every precondition above is checked.
- The host reports Debian 13, with
trixie-securityas an apt source, and nobullseyeorbookwormsource. - The host
redis-serverservice is disabled, and the package stays foreditor-redis. Yarn is removed, or its use is recorded. - After each hop, every step 1 container runs, none is unhealthy, and the probes are
1. - The editing pause and the probe failure seconds are posted for each hop.
-
status.docs.plusanswers with its old monitors and history. - The next push-to-
maindeploy is green onprod.docs.plus. - New
"Documents"rows appear after each hop, and the store dead-letter queue is empty. - The content-safety block passes at each hop, with 0 lost edits, and the test pad is deleted.
- Seven backup timers run after hop 2.
- The GlitchTip issue count matches step 1.
- 24 hours after hop 2, Grafana shows no firing alert except Deadman.
- After 14 days, both snapshots are deleted.
- The Benchmark After values are posted here.
Decisions
- How do we leave Debian 11? Ruled 2026-11-16: upgrade the current droplet in place, 11 → 12 → 13. The host read on 2026-11-16 shows that it is possible. Debian 13 LTS runs to 2030-06-30, against 2028-06-30 for Debian 12. Buy ELTS only if the upgrade cannot finish within 4 weeks.
- Snapshot and window (defaults accepted 2026-11-16). Each hop takes a live snapshot with the app services down (step 7). Both hops may run in one window, once hop 1 passes step 10. Turn off SSH password login on the production host, and add fail2ban #744 stays Related, not a precondition.
Related
- Reboot the production host to load the installed kernel updates #708: the plain reboot before hop 1 (a precondition above).
- Move the production runner to its systemd unit and its own root, and remove the stage runner #743: the runner on
svc.sh(a precondition above). It also fixes the failedpm2-superuser.service. - Back up the production stores off-host, and drill a restore #748: backups and the restore drill (a precondition above).
- Turn off SSH password login on the production host, and add fail2ban #744: key-only login and fail2ban. If it lands first, keep the local
sshd_configat the step 9 prompt. After each hop,sudo sshd -T | grep -i '^passwordauthentication'printspasswordauthentication no. - Make the production env files readable by their owner only #742: env files at
600. The upgrade does not touch them. - Upgrade production Traefik to v3.7.18, with every static edge change in one restart #746: the pinned Traefik. Not needed for this upgrade.
- Find what fills the production host disk, and clean it without touching the 15 GB build cache #756: keeps its full scope, because the host stays.
- Make CI failures reach Telegram: set the watchdog secrets, alert on red E2E pushes #557: the runner watchdog. It pages while the runner is down in each hop.
- Restrict the production self-hosted runner to main deploys #552: runner hook. Not needed for this upgrade.
- Tighten production access: Spaces key, Spaces CORS, shared database cluster, default grants #570: row 3, the shared database cluster.
- Run the backend and webapp image builds at the same time, to cut the image build step #567: its serial before and after stay on one host (a precondition above).
- A host network item tracked privately: a precondition above.
Activity
HMarzban commentedon Nov 12, 2026
Moved to v2.3.7, 2026-11-12 (maintainer ruling). v2.3.6 ships on 2026-11-14 with only finished, measured work, and the work and its measurement take longer than the cut allows. The before values and the plan in this issue stay as they are.
HMarzban commentedon Nov 16, 2026
Maintainer ruling, 2026-11-16: Decision 1: upgrade the current droplet in place, 11 → 12 → 13. The maintainer prefers this if it is possible. The host read below shows that it is.
Host read (agent, read-only, 2026-11-16 19:57Z)
5.10.0-39-cloud-amd64runs, and5.10.0-46is installed./var/run/reboot-requiredexists. Up 199 days.pm2-superuser.service(Move the production runner to its systemd unit and its own root, and remove the stage runner #743) andvnstat.service.What the in-place path needs
download.docker.com/linux/ubuntu bullseye. Change it tolinux/debianwith the new codename at each hop.redis-server6.0.16 listens on127.0.0.1:6379. The app uses thedocsplus-rediscontainer. Confirm that nothing uses the host Redis, then remove it before hop 1.svc.shbefore hop 1, so the runner comes back after each reboot.What changes in this issue
The new droplet, the Reserved IP cutover and step 9b (moving Prometheus history) are no longer needed. #756 keeps its full scope, because the host stays. The step plan will be rewritten for the in-place path and shown to the maintainer before it is posted.
HMarzban commentedon Nov 16, 2026
Review, 2026-11-16 (maintainer approved). The body now follows the Decision 1 ruling: upgrade in place, 11 → 12 → 13.
restart=no, take a live DigitalOcean snapshot, switch sources, upgrade, reboot, check the host, then start the services.editor-redisruns that binary. Nothing uses yarn.MaxAuthTriesandLoginGraceTimeedits (the Turn off SSH password login on the production host, and add fail2ban #744 cut). Turn off SSH password login on the production host, and add fail2ban #744 is now Related.HMarzban commentedon Nov 17, 2026
Content-safety checklist. The shared checklist lives in release-product §Content-safety checklist. Run it for this issue, plus the extra checks in this body. Record each item as pass or fail in the Measured comment, as §Measured comment format says. The list in this body stays as it is (#762, ruling A).
HMarzban commentedon Nov 18, 2026
Measured, 2026-11-18: production is on Debian 13
The host moved from Debian 11 to 12 to 13 in place, in two hops, as ruled. Every check passed after each hop. The next push deploy, the 24 h read and the snapshot clean-up are still open (see "Left").
Results
/etc/os-release5.10.0-39-cloud-amd646.12.117+deb13-cloud-amd64uname -rdebsecan | wc -l, n = 1 per side, 07:16Z and 08:18Zbullseyefeed (HTTP 404)debsecan --suite <codename> --only-fixed | wc -ldrainstop tostartPASSdrainstop tostartPASS*-dlqatwait=0, both hopsdraindocker psagainst the step 1 listapt list --upgradableVersions after: OpenSSL 3.5.7, OpenSSH 10.0p1, Docker 29.10.0, containerd 2.4.2, Compose 5.8.0, host Node 26.13.1, host Redis 8.0.2.
The pause is a host-side upper bound. It runs from the
drainstop to thestartstage PASS, and it includes the minutes between stages. The step 6 first-saved-edit read and the laptop edge probe were not taken.How it ran
A staged host script ran every step, to land as
scripts/ops/upgrade-host.sh. Each stage checks its own pass rule and stops on a failure. Each one wrote oneRESULTline to a ledger on the host.apt-get update: pgdg (bullseye-pgdgmoved toapt-archive.postgresql.org), Docker (the Ubuntu repo has nobullseye) and yarn (key changed). The first two were fixed. Yarn was purged with its source and key: nothing used it (step 4).nodejs12, and the v14 copy in/usr/local/binwas moved out ofPATH.sshd_configkept the local port andPermitRootLogin no.Deviations from the plan
pre-bookworm(98.6 GB) was taken while the app still ran, then the drain followed, which shortened the outage.pre-trixiewas requested about a minute before hop 2. It may not have finished before the upgrade began.redis-serverstill runs).Left
prod.docs.plus.status.docs.plushas no container. The host has nouptime-kumacontainer, volume or image, so Traefik answers with its default certificate and a 404. A(build): uptime-kumadeploy recreates it with no history.HMarzban commentedon Nov 18, 2026
Snapshots deleted, 2026-11-18
The maintainer deleted both pre-hop snapshots,
pre-bookwormandpre-trixie, on 2026-11-18. That is earlier than the planned 2026-12-02. No newer snapshot was taken.HMarzban commentedon Nov 18, 2026
Cleanup and snapshot, 2026-11-18
The
cleanupstage ofscripts/ops/upgrade-host.shremoved what the two hops left behind. Every verify check passed.Results
debsecan | wc -l, n = 1 per side, 08:18Z and 13:01Zdebsecan --suite trixie --only-fixed | wc -l/df -h /ls /bootdocker pspm2 jlistntp, Python 2.7, 3.7, 3.9 and 3.11, and the old compilers and LLVM. It also purged 23 leftover configs, 12 upgrade copies and a 9.3G yarn cache.unattended-upgradesandntpsec. It also keptlibssl1.1,libffi6andlibreadline7, because the hand-built/usr/localPython 3.13 links them.dpkg --auditclean, both kernels in grub, the time service active, the/usr/localPython loads, andapt-get updateis clean.Snapshot
This corrects the earlier comment, which said no newer snapshot was taken. The maintainer took
post-trixieof the Debian 13 host (100.09 GB), and it finished before the cleanup. It is the only rollback point now. DigitalOcean automated backups are off, so #748 is still the only planned off-host copy.Left
feat: add a staged script for production host upgrades
feat: add a cleanup stage to the host upgrade script
fix: ignore keys pressed before an upgrade script prompt
HMarzban commentedon Nov 20, 2026
Measured, 2026-11-20: 24 h after the upgrade
The 24 h read after hop 2 passes. In the 24 h after hop 2, no alert fired, no store job failed, and every
*-dlqqueue stayed at 0. No container restarted, no unit failed, and GlitchTip has no new issue. The next push deploy is still open: the first push after the upgrade stopped in CI, before the deploy job (see "Left").The read is read-only. It ran on 2026-11-20 from 06:31Z to 06:45Z, about 46 h after hop 2. The window rows come from Prometheus and Grafana history, so they cover the exact 24 h.
No row pools data from before the upgrade with data after it.
Pass rule
*-dlqwas at 0 in every state, in W1, W2 and the live readfirst_seenResults
/api/annotations?type=alert, 241 rows from 2026-11-18 07:21Zok/api/prometheus/grafana/api/v1/rules, 2026-11-20 06:32Zincrease(jobs_total{status="failed"}[24h]); RedisZCARD bull:store-documents:failedincrease(jobs_total{queue="store-documents",status="completed"})*-dlqjobs, any state (3 queues)wait=0at the hop 2 drainmax_over_time(queue_jobs{queue=~".*-dlq"}); RedisLLENandZCARDper listmax_over_time(queue_jobs{queue="store-documents"}); Redis per listincrease(document_store_rejections_total),increase(document_persist_fallback_total)docker inspectRestartCount;changes(container_start_time_seconds)in W1 and W2increase(node_vmstat_oom_kill)docker psagainst the step 1 listpm2-<deploy user>.service,vnstat.service)systemctl --failedissue_events_issue, not deletedissue_events_issueeventbytimestamp; 97 in the 7 days beforecount_over_time((max(nodejs_eventloop_lag_max_seconds{job="hocuspocus-server"}) > 1)[24h:60s])max_over_time(nodejs_eventloop_lag_max_seconds)probe_success, 4 probes, 30 s scrapeThe two lag rows are the same service on the same host. But the before days hold other replicas and other traffic, so the rows are a range check, not a speed claim.
Notes on the rows
startstage passed. The third is oneprodback.docs.plus/health/supabasesample at 13:42:31Z. No probe alert fired.hocuspocus-serverwith 1.03 s. It cleared at 01:18:30Z. It is awarningrule. W1 had 13 pending entries for it, and none fired.docs.plusfailed twice. They timed out at about 9.5 s, thendocs.plusand the Supabase health probe got503. Traefik's health checks to webapp, rest-api, hocuspocus and admin all timed out from 17:49:13Z to 17:49:43Z. Host CPU rose from 7% to 25% for about one minute. No container restarted, no OOM kill was counted, and no deploy ran. No probe alert fired (2 pending entries). Cause, read 2026-11-20: a burst of outside traffic slowed the edge proxy. The apps, the host and its network stayed healthy, and Prometheus scraped the apps directly through the dip. It is not tied to the upgrade. The follow-up is Keep one client from slowing the edge proxy for every site #802.first_seenagainst the step 1 list time (07:05:01Z). An issue resolved or deleted in the GlitchTip UI is not seen by this rebuild.Left
6ee008d13) failed in Security Audit.bun auditfound one high advisory:effect, GHSA-7589-6fvf-x4pw. Build and Deploy Production were skipped, so the run never reached the host.d9c0075a1records the review of that advisory: it reaches us only through the Prisma CLI. The deploy row stays open until a push run deploys green onprod.docs.plus.systemctl list-timers --all | grep -c docsplus-backupprints 0. The row expects 7 after Back up the production stores off-host, and drill a restore #748, which is still open.docs(changelog): record the Debian 13 host move and upgrade script
HMarzban commentedon Nov 21, 2026
Found 2026-11-21: the cleanup stage stopped every deploy job
What happened. On 2026-11-18 at 13:00:12Z,
upgrade-host.sh cleanupranapt-get autoremove --purge. It removedlibicu76, because apt had it marked automatic. The GitHub Actions runner is a .NET tarball, not a package. It loads ICU with dlopen, so apt and the stage'slddscan could not see that it needs it.Why nobody saw it. The runner's Listener started at 08:10Z that day, before the removal, and kept ICU loaded. So the runner stayed online, and the Runner Watchdog passed. But each job starts a new
Runner.Worker, and every one crashed at once: "Couldn't find a valid ICU package installed on the system".Build Imagesthen hung with 0 steps until its timeout.Effect. No production deploy ran from 2026-11-18 to 2026-11-21. Production stayed on
afd06574b(2026-11-17). The jobs that ran on GitHub's own runners were not affected.Fixed on the host, 2026-11-21 (maintainer ran it):
sudo apt-get install -y libicu76, which also marks it manual;Runner.Listener --versionprints2.338.2;success, and production runs6da3a609esince about 12:48Z.Script fix (
13a9faff9):cleanupkeeps the ICU package while the runner exists, and stops with an error if none is installed.preflightand thecleanupverify step check that a new runner process starts (Runner.Listener --version)./opt/projects/prod.docs.plus, not only at the root Move the production runner to its systemd unit and its own root, and remove the stage runner #743 gives it.A dry run of
autoremove --purgenow removes nothing. The CVE count and the 24 h results above are not affected.HMarzban commentedon Nov 21, 2026
Note: why the Runner Watchdog stayed green, 2026-11-21
The Runner Watchdog checks only that a self-hosted runner is online (
runner-watchdog.yml). Through the ICU outage, the old Listener stayed online, so it stayed green from 2026-11-18 to 2026-11-21. That is correct for what it checks.The signal that did exist: both deploy runs ended
failure, and their Run Report showedBuild Imageswith no steps and no start time. The first run also had a real test failure, and that hid the hung job.Why no Telegram alert came: both deploy alerts are steps on the self-hosted runner itself. When
Runner.Workercannot start, no step runs.Decision: no workflow change. An independent review checked this against the no-over-engineering rule. Its reasons:
13a9faff9.cleanupkeeps ICU, andpreflightchecks that a new runner process starts.Rule for next time: a self-hosted job that ends with no steps means the runner host is broken, not the code. Run
Runner.Listener --versionon the host first. Reopen this only if it happens again from a new cause.fix(ops): keep the runner's ICU library in the host cleanup
HMarzban commentedon Nov 24, 2026
Maintainer ruling, 2026-11-24
Push
(build): uptime-kumato recreatestatus.docs.plus(uptime-kuma-datavolume), confirmhttps://status.docs.plusreturns200, and close #747.Next step: include
uptime-kumain the next(build): backpush and close #747.HMarzban commentedon Nov 24, 2026
Rollback note (2026-11-24 Adviser audit on #742): the 2026-11-18
post-trixiesnapshot predates the 2026-11-21 #742chmod/chownand host cleanup. After any restore frompost-trixie, re-run #742 steps 2–3.