// PART 11
Staged rollout
A safe update is a sequence, not an event. This page is that sequence for the server, plus the levers for staging exposure across tenants and updating the desktop editions.
The safe update order (server)
# 0. Snapshot before changes — Incus snapshots are the cheapest insurance
sudo incus snapshot create bot pre-upgrade-$(date +%Y%m%d%H%M%S)
# 1. Stop the service BEFORE replacing the binary ("text file busy" otherwise)
sudo incus exec bot -- systemctl stop botserver
# 2. Swap the binary and start
sudo incus file push /opt/gbo/bin/botserver.new bot/opt/gbo/bin/botserver
sudo incus exec bot -- bash -c 'chmod +x /opt/gbo/bin/botserver && systemctl start botserver'
# 3. Verify: health inside the container, then the marker in Traffic
sudo incus exec bot -- curl -s http://localhost:5858/health
Static UI files need no restart: production serves them from
/opt/gbo/bin/ui/ and ServeDir reads per request — push files there and
refresh. This is what makes a UI-only rollback instant.
Staging the rollout across tenants
There is no built-in canary percent; the platform’s staging lever is the same one the runbooks use — per-bot/per-tenant activation:
- Deploy the new binary (it replaces the process for everyone, but inactive bots receive no traffic).
- Keep sensitive tenants’ bots
is_active = falsethrough the deploy window; re-enable them first, watch the SLO panels for one burn window, then re-enable the rest. - Reverting a single tenant’s exposure is the same flag flipped back — the drive monitor re-materializes the bot on its next pass.
-- drain before, re-enable after
UPDATE bots SET is_active = false
WHERE org_id = (SELECT org_id FROM organizations WHERE slug = '<tenant>');
Desktop and appliance updates
- Desktop: no updater plugin; the shell only notifies (once a day at
most, plus Settings → Updates → Check now) and opens the release page. The
operator/user replaces files (tarball
install.sh, AppImage swap, package manager). User data lives in~/.local/share/generalbotsand survives. - OS appliance: there is no in-place upgrade path — reproduce the image
(
desktop/os/build-image.sh) and reprovision; recovery is reprovisioning. - GB Lite (gbgov): releases are committed — every binary swapped into an
install must match a pushed commit; commit by area, push, then stage and
swap, keeping
*.prev/undo.ps1rollback copies pointing at the known commit.
What to watch for one burn window
| Panel | Expected after a good deploy |
|---|---|
| SLO burn & error budget | objectives within budget |
| Requests by endpoint class | 5xx rate back to baseline |
| Traffic | a new deploy marker at the deploy time |
| Queue depth | depth falling, wait p95 flat |
| LLM cost & tokens | calls succeeding (no new auth 5xx) |