# urbestack-update-run

First published 3 Oct 2026 (release 0.1.0) · Unchanged since publication

UrbeStack release 0.2.35 command, run as root in the server shell.

## Usage

```
urbestack-update-run [--dry-run]
```

## Description

Checks for and installs UrbeStack updates. urbestack-update.service runs this command when urbestack-update.timer fires each hour, at a minute specific to this server, or when an administrator selects Update now or runs urbestack-update-now. From a shell, use systemctl start urbestack-update.service so the update continues after the shell session ends.

Each run asks the release endpoint for the latest release, verifies the manifest signature using the keys shipped with UrbeStack and compares the release with the installed version. It installs a newer release immediately on request. It also installs an urgent release immediately if updates.urgent_automatic is enabled and the server runs the release that the urgent update is built on. With updates.automatic enabled, the updater installs a pending release when the run falls within the one-hour window starting at updates.hour, in server local time. Both settings are enabled by default, and the default window starts at 03:00. A release that must wait is shown on the dashboard with the reason, and administrators are emailed once.

Before installing, the updater waits up to one hour for a running job to finish. During installation, every web interface page and API call returns HTTP 503. Sites, mail, FTP, databases and webmail continue to operate. The updater backs up UrbeStack's database and /etc/urbestack, installs the release's packages and runs install/setup.sh separately from the package post-install scripts. It then checks that the installer completed, the UrbeStack systemd units are running, and the API and sign-in page respond.

If the installation or a check fails, the updater automatically attempts to restore the previous packages, the database and /etc/urbestack, then runs the previous release's installer. UrbeStack shows a red notice on every page of the administrator's panel and emails administrators an excerpt from the update log. With --dry-run, the command stops after checking for a release and deciding whether it would install it.

## Command family: update

- [urbestack-update-check](https://urbestack.com/docs/commands/urbestack-update-check.md): Checks the release endpoint on the license server, alongside the license check, for the latest UrbeStack release.
- [urbestack-update-dismiss](https://urbestack.com/docs/commands/urbestack-update-dismiss.md): Clears the red notice for the last failed update, whether the rollback succeeded or failed.
- [urbestack-update-finish](https://urbestack.com/docs/commands/urbestack-update-finish.md): Records the outcome of an update in the update history and audit log, saves the update log and refreshes the status shown on the dashboard.
- [urbestack-update-installed](https://urbestack.com/docs/commands/urbestack-update-installed.md): Records the version and time of an UrbeStack installation.
- [urbestack-update-now](https://urbestack.com/docs/commands/urbestack-update-now.md): The command requests immediate installation of the newest UrbeStack release regardless of the automatic update settings.
- [urbestack-update-status](https://urbestack.com/docs/commands/urbestack-update-status.md): Shows the installed UrbeStack version, the pending release and why it is waiting, any update in progress, the last update's outcome, the automatic update settings and the update history.
