Skip to content

Upgrades and backups

Upgrade to a new release and keep the data safe.

Upgrades

Run the installer with --upgrade, from the folder that contains ragna-studio:

curl -fsSL https://get.ragna.io | sh -s -- --upgrade

It moves RAGNA_VERSION in .env to the latest release, downloads that release’s compose files, pulls the images and restarts. The rest of .env stays as it is.

Migrations run automatically and only go forward.

Manual setup

For a setup installed by hand, do the same steps manually:

  1. Set RAGNA_VERSION in .env to the new release.
  2. Download that release’s files, as in step 1.
  3. Run the up -d --wait command from step 3. It pulls the new images and restarts.

Or switch to the installer. It recognizes the folder because .env has RAGNA_VERSION.

Seed command

The images run on Bun and no longer contain node. The seed service in docker/docker-compose.yml now runs bun dist/seed/index.mjs.

The installer’s --upgrade downloads the new compose files. For a manual setup, download them as in step 2 above. With the old compose file, seed fails with exec: "node": executable file not found and the other services don’t start.

Knowledge re-index

Agent documents live in knowledge bases. On its first start, the worker re-indexes every indexed document once when the index doesn’t match the configured embedding model. That happens on the upgrade to the version with knowledge bases, and after any change of the embedding profile, model or dimensions.

  • Search keeps using the old index until every document is done. Then it switches.
  • Documents uploaded during the re-index become searchable when it finishes.
  • The re-index calls the embedding model for every document. On a large installation, this cost adds up.
  • If embedding calls fail, the worker retries for about 17 hours, then again on its next start.
  • The worker logs Knowledge index switch promoted when it is done.

API error format

API error responses now follow RFC 9457 (application/problem+json) with a type and a status. This release still sends the old code and error fields next to the new ones. Both are removed in the next minor release.

Operators with their own API clients should switch to type and status before then. See API errors.

Backups

The state to protect is Postgres, Redis and both buckets. Backups are the operator’s job.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close