Skip to content

Troubleshooting

LabPod passwords are separate from Linux passwords. First confirm that the LabPod account exists:

Terminal window
sudo labpod admin --db /var/lib/labpod/labpod.db list-users
Terminal window
# Run these as root
labpod admin --db /var/lib/labpod/labpod.db list-users

If the password needs resetting, replace <user> with that account’s username:

Terminal window
sudo labpod admin --db /var/lib/labpod/labpod.db set-password <user>
Terminal window
# Run these as root
labpod admin --db /var/lib/labpod/labpod.db set-password <user>

Check journald for failed-login records:

Terminal window
sudo journalctl -u labpod --since "5 minutes ago" | grep login_failed
Terminal window
# Run these as root
journalctl -u labpod --since "5 minutes ago" | grep login_failed

Workspace, image-readiness, and app-launch errors in the web app show a Report ID with a copy button. Ask the user for it, then find the matching server records:

Terminal window
sudo journalctl -u labpod --since "1 hour ago" --no-pager | grep -F -- '<Report ID>'
Terminal window
# Run these as root
journalctl -u labpod --since "1 hour ago" --no-pager | grep -F -- '<Report ID>'

The request record and the failure record share that ID. The failure record holds the underlying sanitized diagnostic and server version, so two identical messages in the browser can still be told apart. Each retry gets a new ID, and an ID does not bring back journal entries that have already been rotated away. Download and build failures keep their own details in the image operation history and logs.

LabPod waits up to LABPOD_WORKSPACE_START_TIMEOUT (default 15 minutes) for podman create followed by podman start to complete. On timeout LabPod tears down the container and the workspace returns to stopped - there is no failed status. To investigate while it’s still starting:

Terminal window
sudo runuser -u <owner> -- podman ps -a --filter name=labpod-ws-<id>
sudo runuser -u <owner> -- podman inspect labpod-ws-<id>
sudo runuser -u <owner> -- podman logs labpod-ws-<id>
Terminal window
# Run these as root
runuser -u <owner> -- podman ps -a --filter name=labpod-ws-<id>
runuser -u <owner> -- podman inspect labpod-ws-<id>
runuser -u <owner> -- podman logs labpod-ws-<id>

Common causes:

  • Missing image - Start never downloads or builds. The owner prepares the image from the workspace’s own saved definition: Launch <app> does it in order, or the app card offers Download image, Build image, or Rebuild image. When a published image’s recipe also includes its Dockerfile, open Advanced image options → Build image instead, for example for a host that cannot reach the registry. Local recipes such as MATLAB and MS Code Serve-Web always build in the owner’s account. From the CLI the owner can use labpod ws status, ws pull, and ws build.
  • Out of disk - check /home usage; the Resources page shows disk pressure.
  • Port conflict - rare; LabPod allocates from a managed pool (10000–19999 by default).

Workspace start fails on a /work container label

Section titled “Workspace start fails on a /work container label”

The user may see:

Couldn’t start the workspace because LabPod couldn’t apply the container label to /work/<path>. In Files, download it first if needed, then delete it from /work; or move it outside ~/work from your host account.

On SELinux hosts, LabPod mounts each user’s ~/work directory into containers as /work with a shared container label. Rootless Podman applies that label as the workspace owner. If ~/work contains root-owned or otherwise protected files, Podman cannot relabel them and the workspace fails before the container starts.

Ask the user to inspect the path shown in the error. From their host account, they can move the item outside ~/work:

Terminal window
(
set -euo pipefail
source="$HOME/work/<path>"
[ -e "$source" ] || [ -L "$source" ]
mkdir -p "$HOME/labpod-unmounted"
mv "$source" "$HOME/labpod-unmounted/"
)

If they do not need the item, they can delete it from LabPod’s Files page instead. To find other files in ~/work that the user does not own:

Terminal window
find ~/work -not -user "$USER" -ls

If the file should stay in ~/work, fix ownership instead:

Terminal window
sudo chown -R <user>:<user> /home/<user>/work/<path>
Terminal window
# Run these as root
chown -R <user>:<user> /home/<user>/work/<path>

Do not disable SELinux labeling for the workspace mount. That weakens the isolation LabPod relies on for user-owned bind mounts.

Some Jupyter-based images show jovyan in terminals, file paths, prompts, or notebook UI even when the LabPod user is named something else.

LabPod’s built-in workspace templates (PyTorch, TensorFlow, Data Science, and the PyTorch Demo) use LabPod-built ghcr.io/labpod/* images that have no jovyan account, so you will not see this on them. It can still appear on a workspace template pointing at an upstream Jupyter Docker Stacks image (quay.io/jupyter/*-notebook), where the jovyan account is baked into the image and LabPod does not rewrite the image username at startup. LabPod runs the container with --userns=keep-id, so the numeric UID/GID inside the container matches the LabPod Linux user on the host.

Users can ignore the displayed name. Files written under /work still belong to their host LabPod account because ownership follows the UID, not the image’s display username. However, a workspace template image that already reserves the workspace owner’s numeric UID is rejected before Start, because it would direct applications to a non-persistent home. Workspace-template authors must leave that UID free.

To verify from inside the workspace:

Terminal window
id
touch /work/labpod-uid-check.txt
ls -ln /work/labpod-uid-check.txt

On the host, the same file should show the LabPod user’s UID:

Terminal window
ls -ln /home/<user>/work/labpod-uid-check.txt

Do not rename the image account as a workaround. If a workspace template needs a different visible username, build a custom image that creates that account consistently.

Admin Resources page shows untracked GPU usage

Section titled “Admin Resources page shows untracked GPU usage”

The indicator fires when nvidia-smi sees GPU processes that don’t belong to any LabPod workspace cgroup. Usually:

  • A user is running training directly on the host outside any container.
  • A workspace was deleted but left a stray GPU process.

Find and free the process:

Terminal window
nvidia-smi --query-compute-apps=pid,process_name,used_memory,gpu_uuid --format=csv
Terminal window
sudo kill -TERM <pid>
Terminal window
# Run these as root
kill -TERM <pid>

If the process is still running after 30 seconds, force it to stop:

Terminal window
sudo kill -KILL <pid>
Terminal window
# Run these as root
kill -KILL <pid>

Read the message and fix accordingly. doctor checks:

CheckFix
Required command binariesInstall the missing package or re-run the public install script for LabPod-managed files
cgroup modeUpgrade to cgroup v2 or accept degraded CPU/MEM enforcement
Fractional GPU libraryVerify LABPOD_GPU_SHARING_LIB_PATH points to the correct file. “Runtime unverified” is expected; run the runtime test to confirm enforcement
Workspace helper tree (/opt/labpod/inject)Re-run the public install script to restore helper files
GPU process inspectorInstall or repair nvidia-smi; CPU-only hosts disable this check automatically
Port guardConfirm nft is installed and the service runs as root
TLS certificateCheck LABPOD_TLS_CERT/LABPOD_TLS_KEY paths or LABPOD_TLS_SELF_SIGNED

Doctor’s license check can apply pending database migrations, and its account-specific Podman inspection can initialize rootless runtime state. It does not repair container-account permissions or subordinate-ID configuration. A successful workspace retry after doctor may reuse that newly initialized state; it does not establish that the original initialization problem was repaired.

Check the journal first:

Terminal window
sudo journalctl -u labpod -n 200 --no-pager
sudo labpod admin doctor
Terminal window
# Run these as root
journalctl -u labpod -n 200 --no-pager
labpod admin doctor

If a migration is failing:

Terminal window
sudo labpod admin --db /var/lib/labpod/labpod.db migrate # idempotent; safe to retry
Terminal window
# Run these as root
labpod admin --db /var/lib/labpod/labpod.db migrate # idempotent; safe to retry

If the migration itself is broken, restore the pre-upgrade-*.db snapshot created by the install script during the upgrade:

Terminal window
(
set -euo pipefail
snapshot="/var/lib/labpod/backups/pre-upgrade-<stamp>.db"
sudo test -f "$snapshot"
sudo test -s "$snapshot"
sudo systemctl stop labpod
sudo labpod admin --db /var/lib/labpod/labpod.db restore \
"$snapshot"
sudo systemctl start labpod
)
Terminal window
# Run these as root
(
set -euo pipefail
snapshot="/var/lib/labpod/backups/pre-upgrade-<stamp>.db"
test -f "$snapshot"
test -s "$snapshot"
systemctl stop labpod
labpod admin --db /var/lib/labpod/labpod.db restore \
"$snapshot"
systemctl start labpod
)

If the installer stops before downtime with an invalid configuration message, repair the named setting and re-run it. The preflight checks configuration paths, TLS material, GPU-sharing library, inject tree, startup booleans, and whether LABPOD_PORT or its adjacent gateway port falls inside the workspace port range, before replacing the executable or stopping the API. Run install.sh --check to report all configuration problems in one pass. If the service still fails to start after an upgrade, the installer prints the server’s startup error.

Check what’s consuming space:

Terminal window
du -sh /var/lib/labpod/ # database + backups (usually small, <100 MB)
du -sh /var/lib/labpod/backups/ # backup rotation directory
sudo -u <user> podman system df # per-user image layers
Terminal window
# Run these as root
du -sh /var/lib/labpod/ # database + backups (usually small, <100 MB)
du -sh /var/lib/labpod/backups/ # backup rotation directory
runuser -u <user> -- podman system df # per-user image layers

Largest consumers:

  • Per-user container images in ~/.local/share/containers/
  • Hugging Face caches in ~/work/.hf-cache/

To reclaim unused image layers for a user:

Terminal window
sudo -u <user> podman image prune -f
Terminal window
# Run these as root
runuser -u <user> -- podman image prune -f

The user can perform the same cleanup from account menu → My images. The root admin can observe per-user storage in Monitoring, but cannot prune or delete another user’s images.

If curl http://127.0.0.1:24680/api/version returns a different version than labpod --version, the binary was replaced but the service was not restarted:

Terminal window
sudo systemctl restart labpod
Terminal window
# Run these as root
systemctl restart labpod