Updates
Last updated
/jabali-admin/updates.
What jabali update does
git fetch origin maingit reset --hard origin/main(the VM is treated as a deploy target; local edits get overwritten, see “VM local mods byte-identical to origin” scar for the rationale).- Rebuild
jabali-panel-apiandjabali-agent(Go). npm ci && npm run buildforpanel-ui(Vite).- Run pending DB migrations.
- Re-apply install-time host configs that the agent owns (nginx drop-ins, php-fpm pool dirs, AppSec rules, FastCGI cache keyzone). This is the “install.sh is truth, not runbook” rule, anything required for a fresh host to work right is re-applied on every update.
- Reload nginx → restart
jabali-panel→ restartjabali-agent→ restartjabali-webmail, in that order. - Print success or the first failure line.
How the UI runs it
Updates from the panel UI fire as transient systemd units (systemd-run --transient --unit=jabali-update-<timestamp>). This means:
- The update survives the panel restarting itself mid-update (step 7).
- You can watch the live log from a fresh page load even if the browser disconnected.
journalctl -u jabali-update-<timestamp>is the audit trail.
The transient-unit survival was live-verified on 192.168.100.150.
CLI
jabali update # download the release, migrate and restart
jabali update --force # run the full cycle even when there is no new release
jabali update --from-source # build on this host instead of downloading the release
If the update fails, jabali update prints a hint pointing at jabali repair --diagnose (after a failed update, repair is usually the next step).
OS security auto-updates
Separate from jabali update (which updates the panel), OS security
auto-updates are on by default via unattended-upgrades, so security patches
for the base system land without operator action. The Update Center reports the
OS-update state (pending / applied) alongside the panel version.
Stuck update tasks are reaped
An update run is tracked as a DB row and sealed success/failed when it finishes. A run whose status can’t be read — the agent is down or too old to answer, or a transient unit hangs — is now backstopped so it can’t spin “running” forever in the Tasks indicator: any run older than 2 h is reaped as failed, and a pollable run whose status call errors is reaped once clearly stale.
What it does not update
- The kernel, system packages outside Jabali’s drop-ins (use
apt update && apt full-upgrade). - PHP itself (use
apt). - MariaDB / PostgreSQL major version (manual; both data and config require operator decisions).
Frequency
Panel self-update ships off. Turn it on under Updates → Jabali panel
self-update (/jabali-admin/updates) and pick a time (default 04:30). The
panel then keeps jabali-autoupdate.timer in step with that setting, and the
box runs jabali update -f daily from its release channel. Until you turn it on,
run jabali update yourself. (OS security patches auto-apply as above.) See
Server Updates for why the stable channel suits
unattended updates.