# X-Hub Software Updates: Servers, Rollouts and the Hub

> For AI tools: this is the Markdown copy of https://xproxy.io/document/xproxy-hub-updates. Every XProxy guide has one at its URL + `.md`; the index of all guides is https://xproxy.io/llms.txt.

See which servers run an old XProxy version, update many at once, follow the rollout, and let the hub and its agents update themselves.

Keep your servers and the hub itself up to date from one place. See which servers run an old XProxy version, update many at once, and let the hub update itself.

**You need:** a [running X-Hub](https://xproxy.io/document/xproxy-hub-setup) with [connected servers](https://xproxy.io/document/xproxy-hub-connect-boxes). Only **owners** can start an update. Everyone else can look.

## How do I update my servers?

**Step 1: Open Software Updates**

In the left menu, under **Manage**, click **Software Updates**. The three cards at the top count your servers: **Outdated** servers have a newer XProxy release they can install, **Up to date** servers run the newest one, and **Offline** servers are skipped until they are back online.

The table lists every server with its state, its XProxy version, its status and how long it has run this version.

![The Software Updates page with the Outdated card, the Outdated only box, Update selected, Update all outdated and the Update button of one server marked (demo data)](https://media1.xproxy.io/docs/hub/upd-1-page.webp)

> A status of **Newer build than the release** means the server runs a version that is newer than the newest public release. The hub never offers it a downgrade.

**Step 2: Pick the servers**

Tick the servers you want and click **Update selected**. Or click **Update all outdated** for every online server that has a newer release. For one server, click **Update…** at the end of its row. **Outdated only** and the tag list help you find servers.

Only owners see these buttons. Others see the page read only.

> A server that is offline cannot be ticked. Run the update again when it is back.

**Step 3: Choose how to install**

A window opens. Choose **Latest** or **A specific version**. **Force install** lets a server reinstall the version it already has, or go back to an older one. Leave it off unless support told you to use it.

Under **What will happen** you see each server and the version it gets. Choose **Step by step** (recommended): each server updates, then the hub checks the result before it goes on. **All at once** updates every server at the same time, which is faster but a bad update then hits every box. **Start now** or **Schedule** sets the time. Click **Install on N servers**.

![The update window with the version choice, Force install, the list of servers, the Step by step and All at once choice and the Install button marked (demo data)](https://media1.xproxy.io/docs/hub/upd-3-dialog.webp)

> Each server checks its own license and its free disk space before it installs. A server that refuses is reported and nothing changes on it. XProxy restarts on each server, so its proxies are down for a short while.

**Step 4: Approve it when you have a passkey**

If an owner has added a [passkey](https://xproxy.io/document/xproxy-hub-passkeys), X-Hub opens **Approve with your passkey** and one approval covers every server in the list. If no owner has a passkey, it starts at once.

Then follow the update on **Rollouts**. It shows each server, its result, and lets you stop a running rollout.

## Where do I see what is new?

The **Releases** list at the bottom of the page shows each XProxy release with its date, a short note on what changed, and how many of your servers run it. The newest public release has a **latest** label. Releases that are still being tried have a **pre-release** label.

![The Releases list with the latest public release and a newer pre-release, each with its notes and the number of servers on that version (demo data)](https://media1.xproxy.io/docs/hub/upd-2-releases.webp)

The **latest** label marks the newest public release. shows how many of your servers run that version.

The same notes are in the server panel, in **System info**.

## What is the Rollouts page?

**Rollouts**, under **Manage**, lists every change of software or settings that you started on many servers, newest first. Open one to see each server, one by one. You can approve it when it waits for you, stop it while it runs, put the previous settings back, or run it again on the servers that were offline or failed. The filters are **All**, **Active**, **Finished** and **Problems**. The buttons **Change settings** and **Update software** open the same windows as the Configuration page and the Software Updates page.

## How does the hub itself update?

The hub looks for a newer version once a day. When there is one, owners see a banner at the top: **Hub vX is available. You are on vY.** with an **Update hub** button. Owners also get one Telegram message and one `hub.update_available` webhook for each version.

- **Update by hand:** an owner signed in to the hub in a browser clicks **Update hub** and confirms. The hub downloads the new version, checks its signature and that it works, swaps itself in and restarts in a few seconds. The pages are unavailable for a short while. Your servers and proxies keep working. If any check fails, nothing changes.
- **Update by itself:** on the [Servers](https://xproxy.io/document/xproxy-hub-servers) page, switch on **Auto-update hub**. The toolbar then shows the time window, for example 03:00-05:00 and the time zone. The window is in the **hub machine's local time**. It is off by default.
- **Rollback:** if a new version cannot start three times in a row, the hub puts the previous version back, tells the owners in Telegram and writes `hub.update_rolled_back` in the audit log. Your data stays as it is.
- **A hub on your box** updates together with the box. The banner only tells you.
- **Docker, or a hub started by hand:** the banner shows the new version but has no button. Replace the program or pull the new image, then restart it.

A hub installed a long time ago, from version 0.4 or earlier, keeps its program in a place the hub cannot replace, so it has no **Update hub** button. Steps to move it once are in [Turn on X-Hub](https://xproxy.io/document/xproxy-hub-setup).

## How do the agents update?

The agent (`xtool`) is the helper program on each server that links it to your hub. It updates itself once a day and restarts onto the new version. You do not need to do anything. To do it now, run `sudo xtool update` on the server. Some features need a new agent: for example [Remote support](https://xproxy.io/document/xproxy-hub-remote-support) needs agent 0.9.7 or newer.

## FAQ

### A server is skipped because it is offline

The hub never updates a server it cannot reach. When the server is back online, open **Software Updates** and run the update again.

### Will I get a burst of alerts while servers update?

No. A server gets 5 minutes to settle after an update. In that time no new modem or port alert opens, and you only get a short restart notice. See [Alerts](https://xproxy.io/document/xproxy-hub-alerts).

### A server does not get the newest release

The server checks its own license before it installs. A license that does not allow a newer build, or a private build, is never offered an update. Renew or upgrade on [xproxy.io](https://xproxy.io/app/devices).

## What next?

See how problems and alerts work during an update, or manage many servers.

[Servers →](https://xproxy.io/document/xproxy-hub-servers) [Alerts →](https://xproxy.io/document/xproxy-hub-alerts) [Remote support →](https://xproxy.io/document/xproxy-hub-remote-support)

---

Source: https://xproxy.io/document/xproxy-hub-updates
