Setup

Updates

How your server gets new versions safely, and how it goes back if a new one fails to start.

An update is a new version of the server program. By default, your server checks for new versions and tells you when one is out. You choose when to install it. An update is built so it can never break your server quietly. And your server never tells anyone who it is when it checks.

#Channels

A channel is the line of releases your server follows.

Channel Who it is for
stable The default. Releases that have settled.
edge Early releases, for people who want changes first.

The update check sends no account name, no handle, and no install identity. Nothing says who you are.

#Signed manifests

A manifest is a signed list that describes one release. It names the files, their digests, and when the list expires. A digest is like a fingerprint for a file. Your server checks the chain of signatures before it stages anything. An old list is refused. A copy of an old list sent again is refused too.

#How each install path applies updates

  • Binary — when you install an update, it downloads the new version, checks it, and swaps itself. The new version runs once the server starts again.
  • From source — you get a note that a release exists. Building it is up to you.

#Update from the terminal

recued update only checks. It tells you if a new version is out. It does not install anything.

The easy way to install is the web app. Open Settings → Updates. This works when your server starts by itself on macOS or Linux. On Windows it works when recued start started the server, which is what starting at login does. The server then updates and starts again by itself. For a server you started by hand in another way, use the terminal steps below.

To install from the terminal, stop the server first:

  1. Stop the server: recued stop.
  2. Run recued update apply. It asks one question, such as Update 26.10.16 → 26.10.17? [y/N]. Type y. To skip the question, run recued update apply --yes.
  3. Start the server again. The update finishes on this first start.

Does your server start by itself when you log in? Then start it the same way:

  • macOS: launchctl kickstart gui/$(id -u)/com.recued.server
  • Linux: sudo systemctl start recued, or systemctl --user start recued
  • Windows: recued start

Running the install script again does not update a working server. It stops and shows you these steps.

#If the new version does not start

A server that starts by itself goes back by itself, and so does a Windows server that recued start started. After three failed starts, it puts the old version back. It writes down why.

A server you started by hand in another way does not go back by itself. Stop it, then run recued update rollback. It puts back the old program, its parts and the web app. Did the release change the database? Then it also puts back the snapshot from before the change.

#See which version runs

recued --version shows the version of the program on disk.

recued status shows the version the server is running. Look for its Version: line. The two can differ for a short time. An update changes the program on disk first. The server runs the new version only once it starts again. Is the program on disk newer? Then recued status tells you to restart the server.

#Safety model

An update happens in two steps. First the new version is staged and started. Then it must pass a start-up health check. Only then is it kept. If the check keeps failing, the old version comes back. If the new version does not start says when that happens by itself.

Some releases change the database. Those take a snapshot first, before the change. Going back to a version from before that change is refused. That keeps your data safe.

Each release says whether it changes the database. Your server does not just trust a release that says no. Before that update, it checks for itself. It briefly starts both versions, each on a new, empty database, and compares them. Neither one touches your data.

Does the new version change the database in a way the one you have cannot use? Or can the check not tell, for example on a machine low on memory? Then your server takes the snapshot anyway. Is there no room on the disk for the snapshot? Then the update stops, and your server keeps the version it has.

One lock on the whole machine stops two update paths from running at once. Every try is written to an update ledger. The ledger only grows. It is kept outside the database it talks about.

#Owner-only

Only the server owner controls updates. Connected AI agents cannot see the update controls. No cloud service can push an update onto your server. Your server pulls the update, checks it, and decides.

#Next

See how permission works in Grants and approvals.

Recued Docs

Search documentation

Start typing to search the documentation.