Deploy System Updates
Select the release that a device runs, control when it updates, and roll a release out to a fleet. Nexigon Hub stores which release each device should run; the device installs it and reports its progress.
Before You Start
You need a device with a system update integration and a release published as described in Set Up System Updates. For a private repository, link it to the device’s project under Project Settings → Linked Repositories so the device can download its software. To choose a package in the web interface, link its repository even if it is public.
The Nexigon CLI commands assume an organization API token. With a user token,
add --organization <org-id> to each command, as
Organization Selection
describes.
How a Deployment Works
A deployment changes the device’s desired state, stored in its protected
dev.nexigon.ota.config property. At its next check, the device resolves the
selected release, installs it, and reports the result in its
dev.nexigon.ota.status property. A deployment therefore only requests the
update; the reported version confirms it. The web interface, Nexigon CLI, and
device profiles all work through these properties.
Update Model explains this approach.
The release is either a tag that the device follows or a version that it pins.
Following a floating tag such as stable installs each version that the tag
moves to. Pinning holds the device at one version until you change the
configuration.
Deploy a Release to a Device
- Open a device that reports the
dev.nexigon.ota.statusproperty. - Choose Configure Updates in the device header.
- If the device reports no package, choose one under Update Package. The list contains the packages of the repositories linked to the device’s project.
- Under Release, enter the tag to follow or search for the version to pin. The tag field suggests the package’s tags and the version each one points to. The version search matches version names, IDs, and tags. Choose Follow or Pin.
- Monitor the device’s update status.
Once the device reports the chosen package, the panel offers the releases of that package. To choose another package, choose Use Default Release and wait for the device’s next update check.
The panel writes dev.nexigon.ota.config and requests an immediate check
through nexigon.ota.check when that command is available.
Configure Updates for a Device Profile
A device profile sets property values on all devices that apply it, including
dev.nexigon.ota.config. To configure the updates of these devices in one
place:
- Open the profile under Profiles in the project’s sidebar.
- Open its System Updates page and choose Configure System Updates.
- Choose the settings the profile should set, for example a tag to follow or a version to pin, and choose Save Settings.
Saving creates a new revision of the profile. A setting that the profile leaves at Not set by this profile comes from the device’s other profiles or from the defaults built into its image. A value that a device sets itself takes precedence over its profiles.
Devices following the latest revision apply each save immediately. Use a profile rollout to apply a revision in stages and check device status before releasing the next stage.
Change the Update Channel with Nexigon CLI
Scripts set the property directly, for example to make a device follow the
beta tag of my-repo/my-package:
nexigon-cli devices properties set --protected=true <device-id> dev.nexigon.ota.config \
'{"path": "my-repo/my-package/beta"}'
The path has the format <repository>/<package>/<version>, where
<repository> is the repository’s
path name in the
device’s organization or its repository ID, and <version> is a tag or
version ID. The device applies the change at its next check. To restore values
from profiles or the defaults built into the image, remove the device’s own
value:
nexigon-cli devices properties remove <device-id> dev.nexigon.ota.config
Control When a Device Updates
Configure Updates also controls when the device installs updates. Each
setting is part of dev.nexigon.ota.config:
- Hold Updates keeps the device on its current version until you resume updates. An update already in progress completes.
- Maintenance Window restricts updates to time ranges in the device’s local time.
- Retries limits failed attempts and sets the delays between them.
- Spread delays updates by the device’s position in a spread. Devices that share a spread update one after another over its period, or only up to its share of devices.
The panel offers only the settings that the device’s integration supports and names the others. Windows and Retries and Spread describe the behavior in detail.
Roll Out a Release
The simplest rollout uses two tags. Test devices follow canary, and the rest
of the fleet follows stable:
-
Publish a release and tag it
canary. -
Check the update status, events, and application health of the test devices.
-
Move
stableto the tested version:nexigon-cli repositories versions tag <version-id> --tag stable,reassign
Devices that follow stable install the version at their next check, without
a new build or upload. To release it to these devices gradually, give them a
spread.
For stages that wait until devices report a successful update, configure the updates in a device profile and roll out its revisions:
- Apply the profile to the devices in rollout mode, as Profile Rollouts describes.
- On the profile’s System Updates page, pin the new version and save the settings, which creates a revision.
- On its Rollout page, start a rollout with this revision as its target,
with stages such as a
canarygroup, 10% of the devices, and all others. Choose Use System Update Expressions, so that a device completes once it reports the new version ascompleted.
Pin a version ID in the profile rather than following a tag. Devices that follow a tag install every version that the tag moves to, whether or not the rollout has reached them. Rollouts compares these approaches.
Monitor Update Progress
The device header shows the running version and the update state, such as
installing or rebooting. After the reboot, check that the device runs the
expected version and is healthy.
After a failure, the status badge shows the error, and the device’s event log
records each step in the ota category. Configure Updates shows the
failure count, the next attempt, and the update system with its slots,
including the slot that the device boots next. Retry Update resets the
failure count and requests a check.
Troubleshooting
| Symptom | What to Check |
|---|---|
| No new version is detected | Confirm the device is online and the configured repository tag resolves to the intended version. A blocked state explains why the device waits. Use Check Now when available. |
| Installation repeatedly fails | Read the reported error. Check free storage, download connectivity, and the bundle’s verification requirements. |
| Installing or rebooting remains reported | Inspect the device’s boot state and updater logs through the remote terminal. Confirm that the updater has run since reboot and is publishing current status. |