Skip to Content
LogiStackDocs
Operate

Update LogiStack

Update LogiStack from the dashboard or the installer, pick the stable, beta or nightly channel, read the changelog first, and learn how an update rolls back.

LogiStack publishes releases on GitHub. You update an instance from Settings › Updates with one click, or from the server with the installer. An update replaces LogiStack's own services (the API, the worker, the agents and Caddy) one at a time, waits for each to be healthy, and rolls back on its own if one is not. Your apps, databases and volumes keep running.

See which version you run

Select Settings › Updates.

The Updates page: this instance runs v0.1.0, the latest release is v0.2.0, with an Update to v0.2.0 button and the release notes

The Version panel shows:

  • This instance: the running release, for example v0.1.0, and its commit.
  • Latest release, Latest beta or Latest nightly: the newest build on your release channel, when it was published, and a GitHub link.
  • A status: v0.2.0 is available, Up to date, No release published yet, or Couldn't reach GitHub, with when it last checked.

Below it, when an update is available, What changes from v0.1.0 to v0.2.0 lists every release the update crosses, newest first: each stable release on the way, and the build you update to. A release with breaking changes shows them first, in a highlighted Breaking changes box, and the panel header counts them, for example 1 breaking change. When you are up to date, the panel shows Release notes for v0.2.0 instead. Long notes are cut short: select Show all notes to read the rest. Select Check now to ask GitHub again.

A beta or nightly's notes already cover everything since the last stable release, so the betas and nightlies before it are not listed again.

The What changes from v0.1.0 to v0.2.0 panel: v0.2.0's notes, then v0.1.1 with a highlighted Breaking changes box

When an update is available, the sidebar also shows a card such as v0.2.0 available with Update and What's new.

Update from the dashboard

Only an instance admin who is an organization Owner or Admin can start an update or change these settings. Other members see An instance admin can update this instance.

Read the changelog

On Settings › Updates, read What changes from …, starting with any Breaking changes box: a breaking change can need a change on your side, such as new API key scopes. A release that changes the installer's stack file (a new service or variable) says so in its notes; it needs the installer instead.

Start the update

Select Update to v0.2.0.

Confirm

Read the dialog and select Update to v0.2.0. If a release on the way has breaking changes, the dialog names it again, for example v0.1.1 has breaking changes. The dashboard stays up while the API rolls over. New deployments wait in the queue until the update ends. Sites pause for a few seconds while Caddy restarts.

The Update to v0.2.0? dialog, warning that v0.1.1 has breaking changes

Follow the steps

A panel titled v0.1.0 to v0.2.0 lists each step with its state: Waiting, In progress, Done, Failed or Rolled back.

What an update does

StepWhat happens
Pull imagesPulls all four images (API, worker, agent, Caddy) before any service changes. If one is missing, the update stops and nothing changes.
Finish running workPauses new deployments, backups and migration steps and waits for running ones to finish, for example "Waiting for 2 deployments and 1 backup". After 30 minutes it stops with nothing changed.
Migrate the databaseApplies the new release's database migrations once, in one transaction, before any new code serves. A failure leaves the old schema and stops the update.
APIReplaces the API. The old one serves until the new one is healthy.
AgentsReplaces the agent, one node at a time.
CaddyReplaces the ingress. Sites pause for a few seconds.
WorkerReplaced last, by an updater task that outlives it.

At the end, queued work resumes, and LogiStack sends Update succeeded or Update failed to the notification rules that include them.

How rollback works

If a service does not turn healthy after its update, Swarm rolls it back, and LogiStack then restores every service it already updated in this run, newest first. The panel marks them Rolled back and the run as failed. Your instance is back on the release it ran before.

The database stays migrated after a rollback. LogiStack releases only add to the schema, so the previous release keeps working on it.

Check that it worked

The Version panel shows the new release under This instance and the status Up to date. A tab that was open during the update shows the run's panel with every step Done; once you reload the page, a successful run is no longer shown. A failed run stays on the page.

Check for updates automatically

In the Settings panel, Check daily is on by default. Once a day LogiStack asks GitHub for the latest release and, when it is newer, sends instance.update_available to the notification rules that include Update available. Nothing updates until an instance admin chooses to.

To get an email for each new release, add a rule with Update available sent to an email channel. See Alerts and notifications.

Choose a release channel

In the Settings panel, Release channel picks which builds the instance is offered. Only an admin can change it.

The Settings panel of the Updates page with Check daily and the Release channel control set to Stable

ChannelOffersVersion example
StableTagged releases. Each one passes the full test suite and an install and update smoke test. The default.0.2.0
BetaBuilds of the staging branch, ahead of the stable release they lead to, plus every stable release.0.2.1-beta.42
NightlyA build of the develop branch every night it changed, plus every beta and stable release.0.2.1-nightly.57

The daily check and the sidebar card follow the same channel.

Betas and nightlies aren't ready for production. They pass the build but not the full test suite, and a migration they bring can't be undone. Keep these channels off servers that host anything you depend on.

Switching to a steadier channel does not roll back. The instance stays on its build until that channel has a newer one: from 0.2.1-beta.42, the stable channel offers 0.2.1 once it is out.

The API keeps PUT /api/instance/update/beta for older clients: true picks the beta channel and false stable. New clients use PUT /api/instance/update/channel with {"channel": "nightly"}.

Update from the server

Run the installer with the release you want, as root on the LogiStack server:

curl -fsSL https://stack.logicaltech.it/install.sh | sudo bash -s -- --version 0.2.0

--version takes 0.2.0, v0.2.0 or latest. The installer redeploys the stack with the new images; the API and worker roll with start-first updates and roll back on failure. The installer waits for each update to finish, and stops with the service's name and error if Swarm rolled one back. Use this path when a release's notes say it changes the stack file, or when the dashboard is not reachable.

The same command moves an install built with --local-build to the published images: leave out --local-build and name the release. See the installer reference for every flag.

Common problems

  • Couldn't reach GitHub. The server cannot reach api.github.com. Check its outbound HTTPS access; updates need it to read releases and pull images from ghcr.io.
  • The update stopped at Pull images. An image for that release is not published yet, or ghcr.io is unreachable. Nothing changed; try again later.
  • The update stopped at Finish running work. A deployment or backup ran for more than 30 minutes. Wait for it, or cancel it, then start the update again.
  • The update failed and rolled back. Open the run's panel to see which step failed, and report it with the release number.
  • The installer says a service did not start and Swarm put back the previous version. The new task exited and that service still runs the old release. Read docker service logs logistack_<service>, then run the installer again.

On this page