Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

upgrade changedmanaged-agents/self-hosted/upgrade

Nearest release: v2.1.330, published 3 hours before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Recorded here
Lines+18added
Lines−0removed
From line 24 where the diff opens
First seen 12 Nov 2026 this site's first read of the page
Recorded edits4to this page, all time

### Kubernetes: the volumes of deleted sessions

The whole hunk

from line 24, old and new numbered
/
lines
from line 24
2424 
2525Then go through [Settings and paths to check](https://platform.claude.com/docs/en/managed-agents/self-hosted/upgrade#settings-and-paths-to-check).
2626 
27<Warning>
28 On Kubernetes, an upgrade can delete the files of some sessions, and nothing reports an error. Before you upgrade, see [Kubernetes: the volumes of deleted sessions](https://platform.claude.com/docs/en/managed-agents/self-hosted/upgrade#deleted-sessions-volumes).
29</Warning>
30 
2731A minor or major upgrade includes a database backup. The dump holds every conversation in plain text, so the commands on this page encrypt it with the [age encryption tool](https://age-encryption.org). Create a key pair once, and keep the private key, `cma-backup.agekey`, away from the backups:
2832 
2933```bash
from line 176
172176| A line that contains `cannot downgrade`, when you deploy the old release again | The old release can’t run on the changed schema. | Restore the backup, as in [Roll back](https://platform.claude.com/docs/en/managed-agents/self-hosted/upgrade#roll-back). |
173177| Another error from the migration | You don’t need to roll back. On Kubernetes, the servers stay as they were until the migration succeeds. | Fix the cause, and run `helm upgrade` or `docker compose up --build -d` again. |
174178 
179On Docker Compose, `docker compose up` in the new release’s directory can stop with `required variable CMA_PG_USER is missing a value`. The new release’s `.env` then lacks the names that your stack’s data is kept under: its Compose project, its volumes, and its database role and name. The new stack hasn’t started, the old one might be stopped, and your data is untouched. Don’t add a `CMA_PG_USER` line to `.env` by hand. With that line alone, the stack starts empty under the release’s own names. Your data then stays in the old volumes. Instead, run `docker compose up -d` in the old release’s Compose directory. Then run this line there, in the terminal that has the `$releases` variable. In place of `<archive>`, write the archive’s name from the “Extract the new archive” step:
180 
181```bash
182sh "$releases/<archive>/compose/keep-names.sh" && cp .env "$releases/<archive>/compose/"
183```
184 
185Make again any change that you made to the new release’s `.env`. Then go on with the “Stop the old stack and start the new one” step.
186 
175187The migration can succeed while the new servers don’t become ready. To find the cause, read the servers’ log:
176188 
177189* **Kubernetes:** `kubectl -n cma-server logs -l anthropic.com/role=server --prefix --tail=20`
from line 360
348360Check the settings file for `inference.attribution`, and the server’s environment for `CMA_INFERENCE__ATTRIBUTION`. Delete the line if you find one. The release that you’re upgrading to doesn’t have the setting, and its server doesn’t start if either is set.
349361 
350362When the Claude API is your inference provider, each model call carries the IDs of its session and of that session’s agent and environment after the upgrade. See [What the server sends to its inference provider](https://platform.claude.com/docs/en/managed-agents/self-hosted-data-and-access#what-the-server-sends-to-its-inference-provider).
363 
364### Kubernetes: the volumes of deleted sessions
365 
366An upgrade can delete the `/workspace` volume of each session that you deleted, and of each session that isn’t in the server’s database, such as one lost to a restore. You can lose those sessions’ files, and nothing reports an error. The deletion can start as soon as the first server of the new release answers. With the server chart, that’s during its `helm upgrade`.
367 
368Find those sessions while the old servers are running, before you stop any of them: run the command in step 1 of [Free a session’s volume](https://platform.claude.com/docs/en/managed-agents/self-hosted/kubernetes#free-a-sessions-volume). If you run more than one environment, run it in each sandbox release’s namespace. Don’t do that section’s other steps for a session whose files you need. To keep the files, copy them out with your own Kubernetes tools. No API call, admin command, or page of the console on your server reaches these volumes.
351369 
352370### Kubernetes: the names of your objects
353371 
Feedback