Getting started
Updating Berth
Update Berth from the panel or with berth update; every release is signature-checked first, falls back automatically when it is unhealthy, can be rolled back, and patch releases can install themselves in the maintenance window.
On this page
Berth updates itself as one signed unit: the panel, the agent, the CLI and the rendered configuration of every site move to the new release together. This page covers checking which version runs, updating by hand or automatically, what happens during an update, and how to go back.
This article is about Berth itself. OS packages, PHP versions and kernels are updated separately; see OS updates and maintenance.
Which version is running?
- In the panel: under System → Updates → Berth, which also shows whether a newer release is available, what is new in it, and whether it is a patch, a new version or a security update. The version is also on the System overview.
- On the server:
berth version.
Before you update
- Pick a quiet moment, preferably inside a maintenance window.
- Check that the last backups and the external copy succeeded under Backups. If the server is a virtual machine, a snapshot is a cheap extra safety net; the update policy can have Berth take one before every update it runs (see Disks and snapshots).
- Check the server:
berth doctor.
Updating
| Installed with | Update with |
|---|---|
| The one-line command with a licence | berth update, or System → Updates → Berth |
| deb package (Debian, Ubuntu) | apt-get update && apt-get install berth |
| rpm package (AlmaLinux, Rocky Linux) | the newer package with dnf |
| Your own source of signed releases | berth update --from <directory or https address> |
| Offline bundle | berth update --offline <bundle> |
In the panel, System → Updates → Berth has a Update button that runs the update as a system job with a live log. On the command line:
berth update --check # fetch and verify only, install nothing
berth update # update to the newest releaseOn a deb installation berth update refuses and points you to apt; the package reconfigures the server itself after installing.
Your own release source
With signed releases in a directory or on an https server of your own:
berth update --from https://releases.example.nl/linux-{arch}{arch} becomes amd64 or arm64. Plain http is refused unless you pass --insecure-http, and never for automatic updates.
Without internet
berth update --offline berth-offline.tar installs from an offline bundle. The bundle is staged next to the current one and fully checked before anything changes: every file against the manifest, the Ed25519 signature against the pinned release key, and the OS and architecture. A bundle without a valid signature is refused. See Installing Berth.
What an update checks first
Before anything is installed, berth update downloads SHA256SUMS and its signature, verifies the Ed25519 signature against the release key pinned on the server, and then checks every file against the SHA-256 sums. If anything does not match, nothing changes.
Two more rules protect against being pushed back to an old, vulnerable release:
- Only a newer version is installed.
--forcereinstalls the same version, for example when integrity checking reports that a panel binary changed. - After every successful update, that version becomes the lowest allowed version. Installing anything below it requires an explicit
--allow-downgrade.
What happens during an update
- The current programs are kept aside.
- The new programs are put in place and
berth-agentandberthdrestart. - The panel database is migrated. Before each schema migration the panel database is dumped, so there is always a copy from just before the change.
berth install --reconfigureruns with the choices of the original installation, and every domain and the panel's own virtual host are rendered again, so new protections apply everywhere at once. Each file goes through the usual validation; see How changes go live.- File integrity is checked against the checksums of the signed release.
The panel is briefly unavailable while it restarts. Websites, mail and databases keep running.
Automatic fallback
Every update has a way back:
- After 90 seconds: if the agent or the panel is not healthy, the previous version is put back immediately and you are notified.
- For 24 hours afterwards: if the panel keeps crashing, the watchdog restores the previous version and skips the failed one until a newer release appears.
A version that was rolled back this way is listed on the update page as Skipped after problems.
Rolling back by hand
To go back to the version from before the last update:
- In the panel: System → Updates → Berth, danger zone Restore previous version. Type
terugto confirm. - On the server:
berth update --rollback.
The version you rolled back from is then excluded from automatic updates until there is a newer one. Rolling back is always allowed, whatever the licence state. Database migrations only add, so the previous version can work with the migrated database.
Automatic updates
The update policy under System → Updates → Policy has a setting for Berth itself:
| Setting | Behaviour |
|---|---|
auto | Patch releases (for example 1.4.2 to 1.4.7) install themselves in the next maintenance window. A new minor or major version is announced, and you install it yourself. |
notify | Every new release is announced; you install it yourself. |
off | Berth is not updated automatically. |
A patch that fixes security vulnerabilities does not wait for the window.
berth system update-policy --panel auto
berth system update-policy --panel notify --snapshot onIf you manage several servers, Fleet can roll a Berth update out in rings with a health gate.
After updating
berth doctor.- Check System → Updates → Berth for the new version and the result of the last update.
- Optionally look at Security → Integrity, where the panel's binaries are compared with the checksums of the signed release.
If an update stopped halfway
Run the update again (berth update --force) or berth install --reconfigure. Both are safe: what is in place stays, and what is missing is repaired. If a service misbehaves afterwards, see Services and diagnostics. If the panel itself does not come up, the rescue mode works without the panel database.