# Upgrade Buttons

> Install a new version on Windows, macOS or Linux, bring your configuration forward on its first start, check the upgrade, and go back if you need to.

Buttons doesn't update itself. It shows a notice when a new version is available, but you download and install the new version yourself.

Each version keeps its configuration in its own database. The first time a new version starts, it has no configuration yet, so it asks you which one to use: a copy of an earlier version's configuration, or an empty one. Importing makes a copy, so the version you upgrade from keeps its own configuration untouched.

## Before you begin

- Take a backup or export your configuration, so you have a known-good copy outside Buttons. See [Export or import Buttons configuration](/docs/buttons/v1.10/administration/configuration-import-export).
- Quit Buttons normally before you install the new version.

## Install the new version

### Windows

Run the new installer over the existing installation.

<callout color="yellow" title="Warning">
  Quit Buttons yourself before you run the installer. If it's still running, it gets force-terminated rather than shut down cleanly.
</callout>

As a safety net, the installer also stops any leftover database or key-value store process still running from a previous install, after you confirm the install and before it copies files. It only stops processes running from the previous or destination install folder, never a separate system-wide PostgreSQL or Garnet.

### macOS

Run the new `.pkg` installer. If Buttons is still running, the installer asks you to quit it first. Quit it from the app rather than letting the installer close it.

### Linux

1. Stop Buttons. If you set it up as a service, run `sudo systemctl stop bitfocus-buttons`.
2. Extract the new release, following the same steps as a fresh install in [Install Buttons on Debian or Ubuntu](/docs/buttons/v1.10/installation/debian-ubuntu-headless).
3. Bring your configuration forward as described in [Upgrade a headless Linux install](#upgrade-a-headless-linux-install).

## Choose which configuration to bring forward

On Windows and macOS:

1. Start the new version. The watchdog window opens on **Configuration Options**.
2. Select a configuration from the list. The newest is at the top, and each entry shows the version it belongs to and the date it was created. In most cases, pick the top entry: the version you were running until now.
3. Select **Import selected configuration**.

![The watchdog window on Configuration Options, saying this is the first time running version 1.8.6, with the 1.8.2 configuration selected at the top of a list of earlier configurations, and Import selected configuration highlighted in green above Start with a new configuration](https://bitfocus.io/api/docs-media/file/configuration-options.png?prefix=docs-media)

Importing makes a copy for the new version. The configuration you import from stays as it was, so the earlier version still has its own configuration if you go back to it.

To start from scratch instead, select **Start with a new configuration** without selecting anything in the list.

Some entries may be greyed out with a red warning icon. Those can't be imported into this version. Hover over the icon to see why:

- The configuration is from a newer version of Buttons.
- The configuration is from a version before 1.4.
- The configuration is from a 1.5 beta version.
- The configuration is from a custom build of Buttons.

## Wait for the migration and startup

After you choose, the watchdog shows **Migrating configuration** with a progress bar while it copies and updates the configuration.

![The watchdog window on Migrating configuration, with the message Starting migration and a progress bar at 8 percent](https://bitfocus.io/api/docs-media/file/migrating-configuration.png?prefix=docs-media)

When the migration finishes, the watchdog moves to **Starting** and brings the services up. Services that depend on others show what they're waiting for, such as "waiting for app-discovery" or "awaiting port 4440 to be open". This is normal and clears on its own.

![The watchdog window on Starting, with Valkey, Database, Chore and the NMOS services ticked, and the remaining services marked with a yellow icon and messages such as waiting for app-discovery and waiting for go-bcsdd](https://bitfocus.io/api/docs-media/file/starting-services.png?prefix=docs-media)

When every service is ticked, the watchdog shows **Running** and **Launch Editor UI** becomes available.

![The Buttons watchdog window on macOS, listing its services (Valkey, Database, Chore, Discovery, Render Engine and the rest; Windows shows Garnet instead of Valkey) all running, with Launch Editor UI at the bottom](https://bitfocus.io/api/docs-media/file/watchdog-window-1.png?prefix=docs-media)

## Upgrade a headless Linux install

`watchdog-cli` doesn't have a picker. On the first start of a new version, it prints the configurations you can import, numbered from 1, and then stops:

```
Configurations you can import (use --migrate <number> with the number shown):
 * 1: ...
```

Configurations that can't be imported are listed separately, with the reason, and have no number.

1. Start `watchdog-cli` once with `--migrate` and the number you want, for example `--migrate 1`. Use `--migrate 0` to start with an empty configuration.
2. When it's running, stop it and start Buttons the usual way, for example with `sudo systemctl start bitfocus-buttons`.

Once a version has its own configuration, `--migrate` has no effect, so it does no harm if you leave it in.

See [Startup configuration](/docs/buttons/v1.10/reference/startup-configuration) for the full list of `watchdog-cli` flags.

## Check the upgrade

1. Select **Launch Editor UI** and sign in.
2. Check that your connections, surfaces and positions are there.
3. Open **Connections** and check that each connection comes online.

## Go back to an earlier version

There's no rollback button, but reinstalling an older version isn't blocked. Because each version keeps its own configuration, the older version starts with the configuration it had before you upgraded, as long as it's still on the machine. Anything you changed after upgrading stays with the new version.

Treat this as a side effect of how versions are stored, not a supported rollback. To return to a known-good state on purpose, [restore a backup](/docs/buttons/v1.10/administration/restore-and-verify) instead.

## If you get stuck

| What you see | What to try |
| --- | --- |
| **No previous configurations were found.** | This version can't find an earlier configuration on this machine. Select **Start with a new configuration**, then import an exported archive if you have one. See [Export or import Buttons configuration](/docs/buttons/v1.10/administration/configuration-import-export). |
| The configuration you want is greyed out. | Hover over the red icon for the reason. A configuration from a newer version, a version before 1.4, a 1.5 beta or a custom build can't be imported. |
| **Error migrating configuration** appears under the list. | Note the message, then [collect support information](/docs/buttons/v1.10/troubleshooting/collect-support-information) and contact Bitfocus support. The configuration you imported from is unchanged. |
| You started with a new configuration by mistake. | **Configuration Options** only appears on a version's first start. Start the earlier version, export its configuration, and import that archive into the new version. See [Export or import Buttons configuration](/docs/buttons/v1.10/administration/configuration-import-export). |
| A service stays on a yellow icon during **Starting**. | Wait a minute: services wait for the ones they depend on. If one never starts, see [Collect support information](/docs/buttons/v1.10/troubleshooting/collect-support-information). |
| On Linux, `watchdog-cli` exits right after the first start of a new version. | This is expected. Re-run it with `--migrate <number>` or `--migrate 0`, as described above. |
| On Linux, the new version conflicts with a system-wide PostgreSQL or Valkey. | Buttons runs its own PostgreSQL and Valkey: disable any system-wide services of the same kind, as during the first install. |
| Buttons was still running when you upgraded on Windows. | Next time, quit it yourself first: the installer force-terminates it rather than shutting it down cleanly. |

## Where to go next

- [Remove Buttons](/docs/buttons/v1.10/installation/remove-buttons)
- [Export or import Buttons configuration](/docs/buttons/v1.10/administration/configuration-import-export)
- [Restore a backup and verify it](/docs/buttons/v1.10/administration/restore-and-verify)
