Skip to content

Updating Components 🟑 BETA

Component updates are pin changes in botserver/3rdparty.toml verified by SHA-256 before installation.

Where this topic sits in the Developer guide

Update Philosophy

Every third-party binary is pinned in botserver/3rdparty.toml with a URL and a SHA-256 checksum. An update is a change to that manifest plus a verified install, not an in-place binary copy.

Update Philosophy Notes

Installer copies of older pins stay in the bundled cache section of the same manifest. The active component sections are authoritative for a fresh install.

Checking for Updates

Compare the active pins in botserver/3rdparty.toml with the upstream release. Do not take a version from prose or artwork.

View Current Versions

Component Pinned in active section
PostgreSQL 18.6.1
Valkey 9.1.3
Caddy 2.11.9
Stalwart 1.0.3
Zitadel 4.20.1
Forgejo 17.0.1
Forgejo runner 13.2.1
CoreDNS 1.15.0
Roundcube 1.7.5
LiveKit 1.13.11
Qdrant 1.20.0
InfluxDB 2.7.10
ClamAV 1.5.5
OpenBao see [components.openbao]

The bundled legacy cache copies (Forgejo 10.0.1, runner 6.0.0, PostgreSQL 17.2.0, Qdrant 1.12.0, Valkey 8.1.5, Vault 1.18.2) are listed separately in the same manifest.

Check Upstream Releases

Read the upstream release note for the component. A major upgrade can change configuration format; back up configuration and database before applying it.

Updating the Configuration

  1. Edit the URL and filename in botserver/3rdparty.toml.
  2. Download the asset and compute its SHA-256.
  3. Replace the checksum in the same section.
  4. Run scripts/check_component_checksums.py and the component install.

1. Edit 3rdparty.toml

Keep the platform variants (url_win, url_arm64) in step with the primary URL so every target installs the same version.

2. Get the New Checksum

Compute the digest from the downloaded asset. The installer verifies SHA-256 after resolving a cached file; a mismatch aborts.

3. Update Both Files

The manifest is the single file to change; generated docs pick up the new pin from it. Do not hand-edit generated pages.

Component Update Procedures

Each component is installed by botcorepkg from the manifest. Stop the owning service before replacing its binary, then start it and verify readiness.

Updating llama.cpp (LLM Server)

Select the platform variant in the manifest (CPU, Vulkan, CUDA or macOS ARM64), then reinstall from cache or download. The desktop installer is offline: the asset must already be in botserver-installers/.

Updating PostgreSQL (Tables)

  1. Back up with pg_dump -U postgres -F c.
  2. Update the pin and checksum.
  3. Stop the service before replacing the binary.
  4. Start the service and verify /health.

Updating OtterIO (Drive)

Change the release URL and its published SHA-256, stop the service, apply the update and confirm buckets are still listed with oc ls.

Updating Valkey (Cache)

Update the pin, stop the cache, remove the old build, reinstall and verify the process on its canonical port.

Updating Zitadel (Directory)

Back up the directory database, update the pin, stop the service, apply migrations if the release requires them, then start and verify sign-in.

Updating Vault (Secrets)

Update the pin, stop Vault, apply the update, then start and unseal. The unseal key lives at /tmp/vault-unseal-key-gb; a sealed store blocks bootstrap.

Platform-Specific Builds

The manifest carries separate assets for Linux (CPU, Vulkan, s390x), macOS (ARM64, x64) and Windows (CPU, CUDA 12.4, CUDA 13.5, Vulkan).

Automatic Detection

The installer resolves the asset for the current platform; do not override it in documentation.

Manual Override

Use the matching section name in the manifest when a platform needs a different build (for example a Vulkan build instead of CPU).

GPU Detection

GPU variants are selected by the platform section, not by a flag documented here.

Offline Updates

The desktop installer refuses network downloads; place every asset in the cache directory before provisioning. The cache directory is botserver-installers, resolved through BOTSERVER_INSTALLERS_PATH when set.

Pre-download for Air-Gapped Systems

  1. Download each pinned asset on a connected machine.
  2. Verify its checksum against the manifest.
  3. Copy it into botserver-installers/.
  4. Provision with start.sh --provision on a clean home.

Verifying Updates

After an update, run health checks and one representative workflow. A checksum failure means the asset is wrong, not that verification should be skipped.

Run Tests

Run the touched crate tests and the integration suites; do not start a second cargo build while one is running.

Health Checks

Check /health and each service according to the canonical port table in root AGENTS.md.

Security Audit

Run the dependency and CVE checks from scripts/; component advisories are served through the advisory routes.

Rollback Procedure

Keep the previous asset in the cache before replacing it. Rollback means restoring the previous pin and binary, not editing the installed file in place.

Quick Rollback

  1. Stop the affected service.
  2. Restore the previous cached asset.
  3. Reinstall from the restored manifest entry.
  4. Start and verify.

Full Rollback

Restore the database from the pre-update dump and the configuration from the encrypted copy, then restart the stack. Stage and swap; never extract over the live root.

Update Schedule Recommendations

Apply security updates promptly after verification; routine component updates follow the upstream release cadence. Every update needs a backup first.

Security Updates

A security pin change must be committed and deployed through CI, never by copying a binary onto a production host.

Automating Updates

The repository provides checksum gates under scripts/; no auto-updater is registered in the Tauri configuration (root AGENTS.md, Updater).

Update Script

Use the installer path with the manifest; there is no documented ad-hoc update script for production.

Scheduled Updates

Schedule checks, not blind installs: detect a new upstream pin, then review and apply it through the normal build pipeline.

Troubleshooting Updates

A failed download usually means a missing cached asset; a checksum mismatch means the asset differs from the manifest; a service that will not start usually means configuration changed.

Download Failures

Clear the stale cache entry and retry; offline mode cannot fetch a missing asset.

Checksum Mismatch

Recompute the SHA-256 of the asset and compare it with the manifest; do not disable verification.

Service Won't Start

Read the service log, check file permissions and verify the component is executable before restarting.

Database Migration Errors

Run migrations manually with diesel migration run; never reset a database to hide a migration error.

See Also

Authority: botserver/3rdparty.toml, root AGENTS.md (Offline Installation, Desktop-Local Edition, Production Operations) and scripts/check_component_checksums.py.

Limits

  • The installer is offline for the desktop edition: an uncached asset cannot be downloaded at first boot.
  • Component versions in this page are read from botserver/3rdparty.toml; no v-prefixed or guessed version is used.
  • Generated reference pages are not edited by hand after a pin change.
  • Never build in release mode locally; only the desktop packaging pipeline does.