VorticPanel

Installation

Upgrading

You don’t need to take a backup first: the installer copies the database before it changes anything, and goes back to the old version if the new one doesn’t start.

From the panel

Administration → Updates shows the version the panel runs and whether there’s a newer one. The panel checks the license site every hour, and Check now checks at once. When a new version comes out, staff whose role includes Update the panel get a notification (Owners and the built-in Admin role have it), and a line at the top of the admin pages until they update or close it. Closed, it comes back for the next version.

The Updates page also warns, and notifies the same staff, when the license site offers an older version than one it offered before (a release was withdrawn), or when a signed release says the version the panel runs shouldn’t stay in use. Neither installs anything. If you haven’t heard why a release was withdrawn, ask support before you update.

Update to … installs it, through the controller’s update service (panel-update, which runs as root). The service checks the release’s signature against the release key built into the panel and the download’s size and SHA-256, then runs the release’s installer, as below. It never installs a version that isn’t newer than the one running, or one older than the oldest version a signed release says is still safe to run.

The panel is unavailable for a minute or two while it restarts. The Updates page reconnects and shows how it went. Customers’ servers keep running throughout, open consoles disconnect while it restarts, and node agents update themselves afterwards.

If an update doesn’t go ahead, the page says why. The service’s own log is journalctl -u panel-update on the controller.

Below that, Recent releases lists the newest versions on the license site with their notes, marking the one this panel runs and any newer ones. Update history lists every update this panel has had: the version it came from and went to, when, whether it was installed from this page (and by whom) or on the server, and any update that didn’t go through, with the reason.

From the server

Run the one-command installer again, as root on the controller. It installs the newest release, checked the same way as installing:

curl -fsSL https://vorticpanel.com/install.sh | sudo bash

Or get the newer vorticpanel-<version>.tar.gz yourself (from Downloads in your account on vorticpanel.com), copy it to the server, and run its installer:

cd /root && tar --no-same-owner -xzf vorticpanel-1.0.0.tar.gz && bash vorticpanel-1.0.0/install.sh

It keeps the address, accounts, servers and settings, and the installer options --no-proxy, --trusted-proxies, --open-ports and --no-firewall given before, and doesn’t ask for an Owner again. A release older than the one running isn’t installed: the installer stops and changes nothing, unless you add --allow-downgrade. To go back to an older version, go back by hand instead.

With your own web server

The installer remembers --no-proxy, so upgrades, from the server or from the panel’s Updates page, leave your web server alone. --caddy goes back to Caddy.

What the installer does on an upgrade

  1. Copies the new version in next to the old one, then stops the panel.
  2. Copies the database to /var/backups/panel/pre-upgrade-<old version>-<time>.db. If that fails (for example, the disk is full), it starts the old version again and stops without changing anything.
  3. Moves the old version aside, to /opt/panel/dist.old, dist-bin.old and dist-agent.old, and puts the new one in its place.
  4. Starts the new version and waits up to a minute for it to answer on http://127.0.0.1:8080/api/v1/status, and to still answer 10 seconds later.
  5. If it doesn’t, it goes back to the old version: the old version, the database copy from step 2 and the old settings are put back and started, and it says so. Nothing the new version did is kept. journalctl -u panel --since '-15 min' shows why the new version failed.

Stopping the old version refuses new changes and waits up to two minutes (PANEL_STOP_WAIT) for running jobs to finish. Jobs still running after that are marked failed, with the error interrupted, and aren’t run again. Servers keep running on their nodes the whole time, and agents reconnect.

Going back by hand

The version you upgraded from stays in /opt/panel/*.old until the next upgrade, and the installer prints these commands with the right file name filled in. To go back to it later (changes made since the upgrade are lost):

systemctl stop panel
cd /opt/panel && for d in dist dist-bin dist-agent; do rm -rf $d && mv $d.old $d; done
runuser -u panel -- rm -f /var/lib/panel/panel.db-wal /var/lib/panel/panel.db-shm
runuser -u panel -- install -m 600 /var/backups/panel/pre-upgrade-1.0.0-20261005-140000.db /var/lib/panel/panel.db
systemctl start panel

ls -lt /var/backups/panel/pre-upgrade-* lists the copies; use the newest one, from the version you’re going back to.

The nodes keep the newer agent (they don’t install an older one), and their Settings tab says the update didn’t go through until you upgrade the panel again.

The node agents

You don’t need to log in to the nodes. Every upgrade of the controller brings a new agent, and the nodes pick it up in stages, once the tasks they’re running have finished. Only the agent restarts; the servers on the node keep running. By default:

  • The node with the fewest servers goes first.
  • Once it has run the new agent for 5 minutes, the rest follow, up to 3 at a time. A node waiting its turn says so on its Settings tab, with roughly when it updates.
  • A new agent that can’t reach the controller puts the old one back.
  • If the first node isn’t back on the new agent within 10 minutes, or its update fails, automatic updates stop for that version and staff get a notification. The other nodes keep their agent; their Settings tab says to update them by hand.

To change how updates go out, open any node, go to Settings → Agent, and under How updates go out (shown while Update agents automatically is on) choose:

  • Try it on one node first, and how long it runs the new agent (0 to 120 minutes) before the rest follow.
  • How many update at once: 1, 2, 3, 5, 10 or 20 at a time, or all at once.
  • How many minutes to wait between one group and the next (0 to 120; 0 starts the next as soon as one finishes).

For example, all at once: untick Try it on one node first and pick all nodes at once. One a minute: 1 at a time with a wait of 1 minute. It applies to every node. Through the API it’s nodes.agentRollout in the platform settings, which takes up to 100 at a time.

To do it yourself instead, open the node, go to Settings → Agent and press Update agent. Turn off Update agents automatically there if you’d rather choose when each node updates (it applies to every node).

Each node keeps your panel’s own key and only acts on what the panel signs with it (see How nodes know it’s your panel).

Releases sign the agent with the release key, the same key that signs updates to the panel. A node checks that signature before it installs a new agent. Once a node has a signed agent, it only takes signed agents after that, and an update without a signature fails with only takes agents signed with the release key.

If an update fails, the node’s Settings tab says why, and staff get a notification.

Every word has to appear. ↑ ↓ to move, Enter to open.