Skip to content

Updates & recovery ​

Maintain the desktop app and server environment with care, especially when people depend on their data. A desktop update and a server update are different operations: a new desktop version does not by itself confirm that the server environment was upgraded.

Before an update ​

  • Choose a time when a restart will not interrupt important work.
  • Keep the host on power and connected, with enough free space for downloads and backups.
  • Preserve a recoverable copy of valuable server data. Downloaded installation archives and saved workspace layouts are not content backups.
  • Read the update’s confirmation and any backup options. Know which component is being changed.

During an update ​

Use the desktop app’s update controls and follow its progress. Avoid running another install, migration, or update against the same server while it is busy. Wait for readiness to be confirmed, then open a plugin and check its content.

A server update that tries to change the native host’s own settings is refused before anything is installed. The release’s runtime.env may not name host-update preparation, companions, the base stamp, or any UNCORDED_SUPERVISOR_* setting; the update is refused (RELEASE_ENV_REFUSED; a host update reports it as RUNTIME_STAGE_FAILED with that cause) and the current server environment keeps running. Host settings belong in the operator file outside every release, never in a release’s runtime.env, which the next update replaces (supervisor/src/release-env-policy.ts). On a host installed from a current base, the native host takes no settings from a server release at all: its host settings live only in the operator file, /var/lib/uncorded/uncorded.env.

If an update is interrupted ​

Keep the error message and the host’s current state. Use a recovery action offered by your installed version only when its description matches the problem.

Some versions can reach an operator recovery required state where Retry does not resolve the interruption. If the same failure repeats, stop retrying and seek assistance with the app version, server version if available, and exact error. A working recovery flow is not available for every failure in every installed build.

Do not delete update journals, unregister the WSL distro, or delete server directories as a routine repair. Unregistering a distro deletes its filesystem; that can include all of its hosted servers. Preserve data and recovery exports before any assisted manual repair.

What a host update does to running servers ​

A host update can replace the server runtime, the supervisor (the service that runs your servers), or both. Every kind treats running servers the same way. The desktop app shows each step while it runs:

  1. The host stops every running server, and people are disconnected. Servers that were already stopped stay stopped.
  2. It takes a snapshot of the data of each server it stopped.
  3. It switches to the new parts.
  4. If the update replaces the supervisor, the supervisor restarts into the new version. The app shows "restarting the host". For those seconds Local Servers may show the servers as unavailable, with "the host is updating". That is expected.
  5. The host starts the servers again on the new version, closed to people, and checks each one.
  6. When every server passes, the host keeps the new version and lets people back in.

If a check fails before the last step, the update is not kept:

  • An update that replaces only the server runtime puts the checked servers' data back from their snapshots, and starts the servers again on the previous version.
  • An update that replaces the supervisor gives up, and the previous supervisor comes back. The app then offers Finish restoring for the servers that were checked.

A new supervisor is started only once. If it stops before it has confirmed itself, the previous supervisor comes back at the next start. The host's activator decides this before any supervisor runs (update-helper/src/preflight.ts). If the previous supervisor's files are missing, neither version starts, and the host needs help.

If the power goes out or the computer restarts ​

You do not need to do anything first. Start the computer and open the desktop app. What happens next depends on how far the update got:

  • Before the switch (while servers were stopping or snapshots were being taken): nothing was switched. The app offers Clear the unfinished update. It doesn't change your servers' data.
  • After the switch, before any server started on the new version: the previous version comes back by itself. If the update replaced the supervisor, the activator puts the previous one back. The host puts the previous server runtime back. This changes no data and starts no server.
  • After servers started on the new version, before the new version was confirmed: if the update replaced the supervisor, the previous one comes back by itself. The app offers Finish restoring. Each server that ran the new version gets its data back from its pre-update snapshot, and the servers that were running start again.
  • After the new version was confirmed: it stays. The app offers Finish the update. It doesn't change your servers' data.

In the first, second and last case, the servers the update stopped stay stopped. Start them from Local Servers.

The host decides each case from its records at start-up (supervisor/src/host-commit-decide.ts). When the records disagree with each other or with the machine, it changes nothing, and the app offers to save recovery evidence instead.

Turn host updates off on one machine ​

A native host can take a host update: the desktop app downloads the new parts, the host checks and prepares them, and then the host applies them. Each host decides when it starts whether it takes host updates. When it does not, the desktop app uses the older server update instead.

To turn host updates off on one machine, set this line in the operator file, /var/lib/uncorded/uncorded.env:

sh
UNCORDED_HOST_UPDATE_PREPARE=0

If the file has no such line yet, this command adds it (the leading blank line keeps it apart from a last line with no line ending):

sh
wsl -d uncorded -u root -- sh -c 'printf "\nUNCORDED_HOST_UPDATE_PREPARE=0\n" >> /var/lib/uncorded/uncorded.env'

If the file already sets UNCORDED_HOST_UPDATE_PREPARE, change that line instead of adding a second one. The operator file is outside every release, so updates keep it.

The host reads the setting once, when its supervisor starts. The change takes effect at the next start, for example after you restart the computer. Do not restart in the middle of an update just to apply it.

The setting is read like this (supervisor/src/host-update-ops.ts):

  • 0: off, whatever the base says.
  • 1: on, whatever the base says. This is for support and testing only.
  • Any other value, an empty one included: off. The host's log gives only the value's length, never the value.
  • No line at all: the base decides. Its stamp, /opt/uncorded/BASE.json, turns host updates on only with "hostUpdatePrepare": true. Any other value, no field, or a stamp that cannot be read is off.

Bases built for the nightly update channel turn host updates on. Bases built for the stable channel do not yet (scripts/rootfs/base-contract.ts). A host keeps the base it was installed from until a new base is installed on it, for example by the one-time update: a host update replaces the server runtime and the supervisor, never the base.

To turn host updates back on, remove the line and restart. The base decides again.

What off does ​

While the setting is off:

  • The host refuses to check, prepare or apply a host update of either kind: one that replaces the server runtime, and one that replaces the supervisor. The desktop app uses the older server update instead. That one replaces only the server runtime, never the supervisor.
  • Removing a prepared update and cleaning up after one still work. They never depend on the setting.
  • Recovery still runs. Everything in If the power goes out or the computer restarts works the same with the setting off: the previous version coming back by itself, Finish restoring and Finish the update.
  • The one-time update is not affected. It has its own off switch.

At the next start with the setting off:

  • A prepared update that was waiting to be applied is discarded. Its downloaded files are removed. A waiting update blocks the older server update, so removing it unblocks that path. If the discard cannot finish, the host keeps the update, logs why, and tries again at every start.
  • An update that was being applied is not cut short. While its record of the update is on disk, the host keeps the prepared update and lets the update's own recovery run first. That recovery never depends on the setting. It finishes the update or rolls it back, as it would anyway. Then the prepared update is removed either way. If that fails, the next start tries again.

Changing the file during an update does not affect that update. The running host has already read the setting.

Read where the setting came from ​

Each time the supervisor starts, it logs one line that says whether host updates are on and why. To read it:

sh
wsl -d uncorded -u root -- journalctl -u uncorded-supervisor -b -o cat --no-pager | grep "host-update prepare"

The line is JSON. enabled says on or off. source says why. baseStamp says whether the base's stamp could be read (ok, absent or unreadable). The same command also shows whether a waiting update was discarded at start-up.

The values of source:

  • base: on. No line in the operator file, and the base turns it on.
  • operator-on: on. The operator file says 1.
  • operator-off: off. The operator file says 0.
  • operator-invalid: off. The operator file sets some other value.
  • base-off: off. No line in the operator file, and the base turns it off.
  • base-silent: off. No line in the operator file, and the base is older than the setting and does not mention it.
  • base-unreadable: off. No line in the operator file, and the base's stamp cannot be read or is not valid.

Every value except base and operator-on means off. The host's update state also reports the value as capabilities.prepareSource, for support tools. The desktop app does not show it and never uses it to choose how to update.

The one-time update ​

A host cannot take host updates until its base is replaced once when:

  • its base is older than host updates (it has no /opt/uncorded/BASE.json); or
  • its base's stamp does not turn host updates on, and the desktop app follows the nightly channel, whose new bases do. Every nightly base built before 2026-11-29 is one of these.

When the one-time update is on, the desktop app on that computer says "this computer needs a one-time update" and offers Update this computer. From another device, the notice says to do it on that computer. If the new host on offer does not turn host updates on either, the app says so, changes nothing, and stops offering the update until it next starts (apps/desktop/src/base-update-plan.ts).

The one-time update replaces the whole host. Every server hosted on the computer stops while it runs; Docker servers are not affected. Plan for up to 15 minutes, longer with a lot of server data. In order, it:

  1. stops the servers;
  2. takes a full backup of the host and verifies it. Nothing is removed before the backup is verified;
  3. removes the old host and installs the new one, then puts your servers' data, settings, plugins and secrets back;
  4. starts the servers on the new host, closed to people, and checks them;
  5. when the checks pass, keeps the new host and starts the servers that were running.

If a step fails, the update is not kept: the old host is put back from the verified backup (or kept, if it was not removed yet), and the servers that were running start again. If that cannot finish by itself, the update stops and the app shows what it needs from you. The backup stays on the computer for about 7 days, then is removed.

If the power goes out during the one-time update ​

Start the computer and open the desktop app. Before the host starts anything, the app reads the update's record and picks it up from there:

  • An update that was prepared but never started is cleared. Nothing was stopped.
  • An update whose new host was already accepted is finished.
  • An install of the new host that never got under way is started again.
  • Anything else undoes itself: the old host is kept, or put back from the verified backup.

When it has finished or undone the update, the app restarts itself. When the record and the computer disagree, it changes nothing and shows what it needs from you. An update that has started is always finished or undone this way, even if the one-time update has been switched off since.

Turn the one-time update off ​

The one-time update is on by default when the desktop app follows the nightly update channel, and off on the stable channel. The app decides once, each time it starts (apps/desktop/src/base-update-coordinator.ts):

  • Off, whatever else says on: the environment variable UNCORDED_ONE_TIME_UPDATE=0, or a file named host-base-update.disable in the desktop app's data folder, %APPDATA%\@uncorded\desktop.
  • On, on any channel: UNCORDED_ONE_TIME_UPDATE=1, or a file named host-base-update.enable in that folder.
  • Neither: the update channel decides.

The on file must be a regular file; a folder or a link of that name does not turn the update on. The off file counts whatever it is: a file, a folder or a link of that name turns the update off, and so does a name the app cannot check (for example, when access to it is denied). To create the off file in PowerShell:

powershell
New-Item -ItemType File "$env:APPDATA\@uncorded\desktop\host-base-update.disable"

The change takes effect the next time the app starts. UNCORDED_HOST_UPDATE_PREPARE does not turn the one-time update off.

Check after maintenance ​

Confirm the server starts, its plugins open, and existing content is present. If remote access is configured, check from another device too. A successful download or an online account does not establish that the server and its tools are ready.

For everyday access problems, start with Connection help.