Upgrade agents
Every time your PatchPilot server is updated, it also ships a matching agent. The Agents page shows which hosts run something else and upgrades them.
The Agents page
Open Agents in the sidebar. At the top it shows the agent version your server ships. The list shows each host with its Agent version, Last seen and a State:
| State | Meaning |
|---|---|
| Up to date | The host runs the version the server ships |
| Can upgrade | The host runs another version and can upgrade from the portal |
| Needs installer | The host's agent is too old to upgrade itself. Run the installer on it once (below); after that it upgrades from the portal |
Upgrade from the portal
- Select the hosts under Can upgrade.
- Press Upgrade agents.
This creates an agent upgrade job, which you can follow under Jobs like any other job. On each host the agent:
- downloads the new version from your server and checks its checksum;
- checks that the new program starts and reports the expected version;
- swaps it in and restarts the service.
If the new agent does not come up within three minutes, the old one is put back automatically, and the job is marked failed with the reason. The host keeps reporting either way.
Hosts that are already up to date are skipped.
Upgrade by hand
For hosts marked Needs installer, or if you prefer, re-run the installer on the host. No enrollment token is needed: the host keeps its identity. The Upgrade by hand box on the Agents page has the commands with your address filled in:
# Linux
curl -fsSL https://YOUR-PORTAL/install.sh | sudo sh -s -- --server https://YOUR-PORTAL
# macOS (In testing)
curl -fsSL https://YOUR-PORTAL/install-macos.sh | sudo sh -s -- --server https://YOUR-PORTAL# Windows, in an elevated PowerShell
$env:PATCHPILOT_SERVER_URL='https://YOUR-PORTAL'
iwr -useb https://YOUR-PORTAL/install.ps1 | iexHosts installed from the .deb or .rpm package can also be upgraded by
installing the newer package over the old one.