Migrating BotServer to Incus Instances π‘ BETA
This procedure attaches a fresh botserver to a stack whose services already run in Incus containers.
β οΈ Vault data loss is permanent
A fresh Vault started beside an existing stack has an empty secret store; do not replace a live secret store with a new one. Keep a snapshot before any change and never commit an unseal key.
Prerequisites
An Incus host, a running set of service containers, the pinned component versions in botserver/3rdparty.toml, and the unseal key at /tmp/vault-unseal-key-gb. Everything runs on Incus; lxc and lxd are not supported layers.
Migration flow
- Verify the existing instances.
- Install only Vault in container mode if the secret store must be recreated.
- Verify the environment file and the connection.
- Start botserver and verify every service.
Step 1: verify the instances
List the containers and confirm which services are already running. Do not start a second copy of a service that the stack owns.
Step 2: install only Vault, in container mode
Use botserver install vault --container --tenant <name> when a new secret store is genuinely required. An existing store is restored from its snapshot instead.
Step 3: verify .env
Only VAULT_* variables belong in .env. Every other credential comes from Vault through ConfigManager.
Step 4: verify the Vault connection
Use botserver vault health and unseal with three shares in one session. A sealed store blocks bootstrap forever.
Step 5: start botserver
Start the debug binary from botserver/ and watch botserver.log for "Bootstrap process completed!".
Step 6: verify every service
curl -s http://localhost:8080/health.- Check the container runtime for each service.
- Confirm one chat turn in the browser.
- Confirm Drive buckets are visible with
oc.
Troubleshooting
| Symptom | Check |
|---|---|
| Bootstrap loops | Vault seal state |
| x509 error | CA certificate path |
| No buckets | Drive credentials and bucket name |
| Window hidden | /api/product readiness |
Best practices
Take a snapshot before the change, use hostnames instead of addresses, and keep tokens and keys under /tmp. Production changes require explicit approval.
See also
Authority: root AGENTS.md (Containers, Vault credential retrieval, Deploy in Prod Gotchas) and botserver/3rdparty.toml.
Limits
- A new Vault is empty; data cannot be recovered from it without a snapshot.
- No internal address or token appears in this page.
- No service is restarted by an agent; the driver owns restarts after a build.
- A status 200 is not proof of a healthy deployment; check the page title or checksum.