Docs cipi.yml Web panel API MCP Guides Compare GitHub Telegram channel
  1. Docs
  2. Server & runtime
  3. Stack upgrades

Stack upgrades

Upgrade Nginx, MariaDB, PostgreSQL, Valkey and Node.js.

Server & runtime

Security patches for the whole stack, without surprise restarts. Ubuntu's unattended upgrades would restart Nginx or a database whenever they run; Cipi takes those packages over and patches them at a quiet hour, one at a time, checking each one.

ComponentPatched byWhen
Ubuntu (kernel, libraries…)unattended-upgradesDaily
PHPcipi php upgradeDaily, 03:30
Nginx, MariaDB, PostgreSQL, Valkey, Node.js, Composer, FrankenPHPcipi autoupdateNightly, 04:20
Reboot for a new kernelcipi reboot autoOff unless you turn it on

Nightly patches: cipi autoupdate#

bash
cipi autoupdate                    # what's on, how the last run went
cipi autoupdate off mariadb        # patch this one yourself
cipi autoupdate on
cipi autoupdate run [name]         # now
RuleWhy
Patch releases only (--only-upgrade)No major jumps overnight
Your config files are kept; nginx -t before reloadA patch never breaks the config
Node runtimes checked against SHA-256; Composer rolled back if it won't startVerified binaries only
One at a time, databases last; skipped during a dump or deployNo restart in the middle of your work
Octane builds stay on their PHP minor, health-checked, rolled back if silentFrankenPHP pinning
Each upgrade notified; failures alert and show in cipi pendingYou always know

Log: /var/log/cipi/autoupdate.log.

By hand#

bash
cipi nginx upgrade [--yes]
cipi db upgrade [mariadb|pgsql] [--yes]
cipi service upgrade valkey [--yes]
cipi service upgrade                 # installed vs available

Package patterns are pinned (a loose match can't drag PHP in), vendor repositories are re-asserted if missing, and a lock prevents two upgrades from overlapping. These are not exposed to the panel: patching a database is an operator decision.

What needs you: cipi pending#

A server can be fully patched and still run last month's kernel. cipi pending lists what an update can't do by itself, each with the command to run:

bash
cipi pending [--json]
ItemExample
Reboot requiredNew kernel installed, old one running
Below a security releasePHP, Nginx, Composer, Node.js
Old binary still runningNginx upgraded on disk, workers not yet replaced
Updates waitingA component with autoupdate off, or whose last run failed
Unmanaged codePHP extensions built by hand or with PECL
App hygieneHorizon installed but not running; apps on the shared Valkey

Checked every morning; mailed when the list changes, and weekly while something stays on it. cipi status shows it too.

Reboots#

bash
cipi reboot                         # needed? since when? which kernel?
cipi reboot now [--yes]
cipi reboot auto on --at=04:45      # only on nights one is required

Automatic reboots notify, warn two minutes ahead, and wait for the next night while a package install, dump, deploy or other cipi command is running.