Upgrades
Upgrade from the release channel
Section titled “Upgrade from the release channel”Re-run the public install script on the host that already has LabPod installed:
Upgrade to the latest release:
(set -euo pipefailinstaller=$(mktemp)[ -n "$installer" ]trap 'rm -f "$installer"' EXITcurl -fsSL https://labpod.ai/install.sh -o "$installer"[ -s "$installer" ]sudo bash "$installer")# Run these as root(set -euo pipefailinstaller=$(mktemp)[ -n "$installer" ]trap 'rm -f "$installer"' EXITcurl -fsSL https://labpod.ai/install.sh -o "$installer"[ -s "$installer" ]bash "$installer")Other options
To preview the upgrade without changing the host, run only this command:
(set -euo pipefailinstaller=$(mktemp)[ -n "$installer" ]trap 'rm -f "$installer"' EXITcurl -fsSL https://labpod.ai/install.sh -o "$installer"[ -s "$installer" ]sudo bash "$installer" --check)# Run these as root(set -euo pipefailinstaller=$(mktemp)[ -n "$installer" ]trap 'rm -f "$installer"' EXITcurl -fsSL https://labpod.ai/install.sh -o "$installer"[ -s "$installer" ]bash "$installer" --check)To upgrade to a specific release, replace <version> with a tag from the
published releases before running this block.
The placeholder cannot be run as-is.
(set -euo pipefailinstaller=$(mktemp)[ -n "$installer" ]trap 'rm -f "$installer"' EXITcurl -fsSL https://labpod.ai/install.sh -o "$installer"[ -s "$installer" ]sudo bash "$installer" --version <version>)# Run these as root(set -euo pipefailinstaller=$(mktemp)[ -n "$installer" ]trap 'rm -f "$installer"' EXITcurl -fsSL https://labpod.ai/install.sh -o "$installer"[ -s "$installer" ]bash "$installer" --version <version>)On an existing install, the installer does:
- Release download - downloads the release tarball and verifies its checksum and signature.
- Pre-upgrade recovery set - when the downloaded binary differs from the installed one,
retains the executable, application support files, and a database snapshot under
/var/lib/labpod/backups/pre-upgrade-<UTC>.*before replacing anything. Pass--skip-backuponly if you intentionally want to suppress the database snapshot. - Pinned candidate and asset refresh - resolves
latestto an immutable release tag, verifies the candidate binary reports that version, then replaces/usr/local/bin/labpodand the/opt/labpod/injecttree only when release contents changed. - Config preservation - keeps
/etc/labpod/labpod.env,/var/lib/labpod/labpod.db, backups, licenses, TLS cache, Linux accounts, and user home directories. - Unit refresh - copies the latest systemd unit files to
/etc/systemd/system/. - Preflight, migrate, then restart - validates the configured database, TLS, GPU-sharing and inject-tree paths before taking the API offline. A configuration error leaves the currently running service untouched so you can fix it and re-run the installer. For a valid upgrade, the installer then stops only the LabPod API while it refreshes files and applies durable database upgrades.
- Post-restart health check and rollback - polls
/api/versionand verifies the restarted API reports the resolved release. If any upgrade step fails, the installer restores the previous executable, support files, database when migration was attempted, API service, and backup timer. It verifies the restored API before reporting rollback success. Manual recovery is needed only if this automatic rollback also fails.
The recovery set is automatic for a real upgrade. A no-op reinstall with an identical binary does
not create one. The installer keeps the newest 10 pre-upgrade recovery sets by default and prunes an
older executable, application-file snapshot, and paired database snapshot together. Daily
labpod-*.db backups follow their own retention policy. A complete recovery set includes all three
artifacts; --skip-backup leaves an incomplete set without a database snapshot.
If you configure a custom backup directory, keep it outside the updater/support directory and the
separately located inject tree. A rollback must not delete or recursively copy the artifacts it is
using to restore the installation. If you pass --skip-backup and a migration begins, automatic
rollback has no database snapshot to restore.
For extra caution, you can still take a manual backup before upgrading:
(set -euo pipefailstamp=$(date -u +%Y%m%dT%H%M%SZ)[[ "$stamp" =~ ^[0-9]{8}T[0-9]{6}Z$ ]]sudo labpod admin backup --out "/var/lib/labpod/backups/pre-upgrade-$stamp.db")# Run these as root(set -euo pipefailstamp=$(date -u +%Y%m%dT%H%M%SZ)[[ "$stamp" =~ ^[0-9]{8}T[0-9]{6}Z$ ]]labpod admin backup --out "/var/lib/labpod/backups/pre-upgrade-$stamp.db")Air-gapped hosts
Section titled “Air-gapped hosts”Stage a published release v0.4.2 or later on a connected machine. Use the same tag in both
blocks below; the example uses v0.8.1.
Offline upgrade steps
Preinstall Podman/rootless dependencies, curl, tar, sha256sum, and OpenSSL. NVIDIA hosts
also need nvidia-ctk and docker.io/nvidia/cuda:12.2.0-base-ubuntu22.04 in the GPU-check
account’s Podman store (SUDO_USER, or root when unset). Keep the existing HAMi library and
each workspace owner’s local images: offline mode cannot download prerequisites or build HAMi.
On the connected machine, stage the bootstrap and four release assets:
(set -euo pipefailversion=v0.8.1mirror="$HOME/labpod-offline"mkdir -p "$mirror/download/$version"curl -fsSL https://labpod.ai/install.sh -o "$mirror/install.sh"[ -s "$mirror/install.sh" ]for asset in labpod-linux-x86_64.tar.gz labpod-linux-x86_64.tar.gz.sig SHA256SUMS SHA256SUMS.sig; do curl -fsSL "https://github.com/LabPod/labpod/releases/download/$version/$asset" \ -o "$mirror/download/$version/$asset" [ -s "$mirror/download/$version/$asset" ]done)Transfer the whole labpod-offline directory to the air-gapped host’s $HOME (/root for a
root shell), preserving download/<tag>/. Run the local bootstrap there:
(set -euo pipefailversion=v0.8.1mirror="$HOME/labpod-offline"[[ -f "$mirror/install.sh" && -s "$mirror/install.sh" ]]for asset in labpod-linux-x86_64.tar.gz labpod-linux-x86_64.tar.gz.sig SHA256SUMS SHA256SUMS.sig; do [[ -f "$mirror/download/$version/$asset" && -s "$mirror/download/$version/$asset" ]]donesudo bash "$mirror/install.sh" --version "$version" --releases-base "file://$mirror")# Run these as root(set -euo pipefailversion=v0.8.1mirror="$HOME/labpod-offline"[[ -f "$mirror/install.sh" && -s "$mirror/install.sh" ]]for asset in labpod-linux-x86_64.tar.gz labpod-linux-x86_64.tar.gz.sig SHA256SUMS SHA256SUMS.sig; do [[ -f "$mirror/download/$version/$asset" && -s "$mirror/download/$version/$asset" ]]donebash "$mirror/install.sh" --version "$version" --releases-base "file://$mirror")The bootstrap verifies local signatures and checksum, then passes --release-mirror and
--offline to the installer; no public egress is needed. File mirrors require --version;
latest cannot resolve. Keep the mirror at that path and automatic public update checks off.
Running workspaces survive
Section titled “Running workspaces survive”Workspace containers keep running through the restart. LabPod’s service restart takes ~2 seconds; in-flight API requests that were processing at that moment may fail, but the containers themselves (Jupyter kernels and training runs) continue. Workspace pages and applications reload after the service returns. The LabPod Terminal reconnects automatically and keeps its tmux session and scrollback.
New API calls land on the new binary within ~2 seconds of restart.
Workspace definitions and existing workspaces
Section titled “Workspace definitions and existing workspaces”Each workspace keeps its own definition files - image or build recipe, apps, resources, folders,
and environment - under its owner’s <passwd-home>/.config/labpod/workspaces/<workspace-id>/.
Workspaces created by a LabPod version that did not yet save these files are not converted, and
LabPod never regenerates missing definition files from database records or templates:
- Such a workspace can still be observed, stopped, and deleted, but it cannot start again. Its
owner creates a new workspace instead. Files in
/workare unaffected. While the old workspace is stopped, its home stays browsable and downloadable in Files; deleting it archives that home under the owner’s account as usual. - If it is running during the upgrade, it keeps running, but LabPod has no recorded app configuration for it, so app launch and app links that depend on that record are unavailable.
- Before upgrading, plan when owners will stop and recreate the workspaces they still need.
Definition directories are not part of the database backup or the installer’s recovery sets; see Backups & restore. Workspace mounts may no longer expose a user’s host HOME or workspace definition directories, even read-only. Stop any existing workspace container that mounts them and recreate it with scoped project or work folders.
Workspace template images after upgrading
Section titled “Workspace template images after upgrading”Upgrades update built-in workspace templates you have not edited, so workspaces created afterward
use the new image versions. Existing workspaces keep the image or recipe saved in their own
definitions, including images their owners already prepared, so an upgrade by itself does not
require new downloads. For example, new LLM / Hugging Face workspaces use the v3 CUDA images,
while existing ones keep the image they were created with. Each researcher downloads a new version
into their own rootless image store the first time they launch a workspace that uses it, with no
administrator build required. A network registry cache can reduce repeated network transfer.
Upgrading never enables a workspace template you had left disabled - your enable/disable choices are preserved. If you had already enabled and locally built one of the workspace templates that is now a published image (Miniforge, uv, R ML, RStudio, Hugging Face, ComfyUI, CUDA Composite, or Parallel Programming), it now points at the tested published image instead of your local build. Your previously built image is left in each user’s store; that user can remove it from account menu → My images once it is no longer needed. To keep using your own build instead, edit that workspace template’s image reference - that marks it customized and stops LabPod from re-applying the shipped default.
Upgrades remove the retired LABPOD_SHARED_IMAGE_STORE_MODE and LABPOD_SHARED_IMAGE_STORE
settings and drop pending image-promotion requests. They do not delete files from an old root cache
directory; inspect and remove that directory manually after confirming it is no longer needed.
Other changes to check after upgrading
Section titled “Other changes to check after upgrading”- Image registry policy removed. LabPod no longer has a registry allowlist or records
acceptance of third-party terms. The admin registry and terms pages and the
labpod image allowlistcommand are gone. Any image reference that names its registry explicitly can be used; publisher terms links remain informational, and image access and licensing remain the user’s or institution’s responsibility. - Template bundle schema 2. Bundles now use schema version 2 without the
requires_eulafield. Version 1 bundles are rejected on import: re-export them from a current server, or setschema_versionto2and remove that field. - Separate Create, preparation, and Start. The combined setup flow and the
labpod ws setupandlabpod ws editcommands are removed. Old setup records are kept for history but are not resumed. Researchers create a workspace, then use Launch<app>or the individual Download, Build, and Start actions; scripts usews create,ws status,ws pullorws build, andws start. See CLI. - Container network settings. The installed service no longer causes workspace start
failures from read-only container network settings. If one owner’s workspaces still fail that way
after upgrading, their Podman pause process may predate the upgrade: once that owner’s containers
are stopped, run
podman system migrateas that owner (or reboot the host) once. - GPU sharing. If HAMi was built by an earlier LabPod build helper, rebuild it and run the runtime check; see GPU configuration.
Migration policy
Section titled “Migration policy”LabPod schema migrations are forward-only. An upgraded database should run with the release that migrated it, or with a newer release. Do not run a restored older database with a newer upgraded binary, and do not run an already-migrated database with an older binary.
The installer uses the paired pre-upgrade-* recovery set for automatic rollback. Do not hand-edit
the installed DB or its internal schema state.
If an upgrade fails
Section titled “If an upgrade fails”The installer exits nonzero even when automatic rollback succeeds, so the failed update remains
visible. Confirm that /api/version reports the previous version, review the installer output and
journalctl -u labpod, fix the cause, then retry.
If automatic rollback cannot complete, the installer prints the exact stopped-service recovery commands and names the retained executable, application files, and database snapshot for that attempt. Follow those commands from the host shell. Do not start a pinned older bootstrap or an older release’s installer before restoring the paired snapshot: that can run migrations against the wrong database generation. The database schema and executable must come from the same release generation.
Roll back to a retained release
Section titled “Roll back to a retained release”The installer keeps the most recent pre-upgrade recovery sets, and a root administrator can restore one from the host shell when a completed upgrade turns out to be wrong:
sudo labpod admin rollback list# Run these as rootlabpod admin rollback listChoose an eligible recovery ID from the output, then replace <recovery-id> below:
sudo labpod admin rollback apply <recovery-id> --yes# Run these as rootlabpod admin rollback apply <recovery-id> --yeslist shows the recovery ID, the retained version, and whether each set is complete, compatible,
and eligible; a set that cannot be applied explains why. Add --json for inventory tooling. apply
accepts only a complete set whose retained binary is older than the installed one. It first captures
the current installation as a new recovery set, stops the API, restores the retained binary,
application files, and paired database, restarts the API, and verifies /api/version. If the
restored server does not come back healthy, it puts the pre-rollback set back and still exits
nonzero.
Rollback always restores that set’s database snapshot, so LabPod changes accepted after the recovery
timestamp are discarded. Workspace files are not rewound and rootless workspace containers keep
running. This is why --yes is required and why there is no button for it in the web interface.
Update from the admin UI
Section titled “Update from the admin UI”After this release has been installed once, the root administrator can use Admin → Software update to check the public release channel and start an upgrade. The page uses the same signed package and checksum verification as the public install command, records the installer log, and creates the same pre-upgrade recovery set.
Automatic checks are off by default. Enable them only when the host may contact the public release
service; LabPod checks once every 24 hours but never installs a release without the administrator’s
action. Air-gapped hosts use the staged offline procedure. The equivalent terminal
commands are labpod admin update status, check, and apply.
While a scheduled update runs
Section titled “While a scheduled update runs”A scheduled update announces itself with a banner. Apply now starts it ahead of its scheduled time, and that control disappears once the update is actually running - selecting it again could only report that an update was already in progress. Cancel update stays available until the installer starts.
After the server restarts, a tab left open still runs the interface from the previous version and can ask the server for parts of it that no longer exist. The Software update page offers Reload the interface for exactly that, and stops repeating the notice once the tab and the installed server match. A page that fails to load for the same reason names the cause and offers Reload rather than a bare “Internal Error”.
Moving a Linux account HOME
Section titled “Moving a Linux account HOME”LabPod follows the HOME recorded in the host account database and has no separate account-home
base. To move an account after installation, stop its workspaces and the LabPod service, then move
the complete HOME, including workspaces and non-relocated work. Preserve ownership and update
the account’s passwd HOME before restarting LabPod.
Existing workspaces keep their recorded persistent home until the old path is removed. During that
transition the Files view follows the existing path and LabPod rejects Delete with
workspace_home_migration_required, so data cannot be orphaned. LabPod never performs this move
for you; verify the copy before removing the old directory.
Rootless Podman storage is separate. If it is still below the old HOME, migrate it independently; see Rootless Podman storage.