Deploy Applications
Install, update, and remove applications on devices from Nexigon. For each device, Nexigon Hub stores which apps should run, in which release, and when the device may update them. Nexigon Agent installs the apps with Rugix Apps, keeps them in this desired state, and reports their status.
Before You Start
You need a device with the Rugix Apps integration and an app published as described in Set Up Rugix Apps. Once the device reports the status of its apps, its page shows an Applications tab.
The Nexigon CLI commands assume an organization API token. With a user token,
add --organization <org-id> to each command, as
Organization Selection
describes.
Add an Application to a Device
- Open the device’s Applications tab and choose Add Application.
- Choose the package of the app and check the application name shown.
- Enter the tag to follow, such as
stable, and choose Follow. To install one specific version instead, search for it under Or Pin a Version and choose Pin.
The device installs the release and starts the app. The application list shows the version that each app runs, the state of its updates, and the status of its workload.
Change an Application
Select an application in the list to open its settings:
- Release follows another tag or pins another version. To return to an
earlier release, pin its version. If the device still has that version
installed, it switches back without downloading it again. By default, the
device keeps one previous version; the
gcpolicy sets how many. - Stop App stops the app’s workload and keeps the app installed. The app stays stopped across reboots until you choose Start App.
- Remove App uninstalls the app, including its persistent data.
After a failed update, Retry Update requests a new attempt.
Manage Apps Outside the Configuration
Nexigon manages only the apps that the device’s configuration lists. Other installed apps, for example apps included in the device image, appear as Not managed, and the device leaves them unchanged. Their row in the application list offers buttons that start, stop, roll back, or remove the app right away, which requires the device to be online.
To manage such an app, open it and choose a release. The device then installs that release as a new generation, even if the app already runs it, because only generations that the agent installs record their package version.
Configure Applications with Nexigon CLI
The apps of a device are part of its protected dev.nexigon.rugix-apps.config
property. For example, the following command makes a device run the stable
release of controller and keep historian stopped:
nexigon-cli devices properties set --protected=true <device-id> dev.nexigon.rugix-apps.config \
'{"apps": {"controller": {"path": "my-repo/controller/stable"},
"historian": {"path": "my-repo/historian/stable", "state": "stopped"}}}'
The path has the format <repository>/<package>/<version>, where <version>
is a tag or a version ID. The state is running, stopped, or removed.
Removing an app from the property ends its management and leaves it
installed. The command replaces the whole property, including other apps that
it lists.
Nexigon CLI does not ask the device to check, so the device applies the change at its next check.
To deploy apps to many devices, set the property in a device profile. Profiles merge the apps that they list, so separate profiles can manage separate apps of the same device.
Control When Applications Update
The same settings as for system updates control when a device updates its apps. Set them for all apps of the device or for a single app:
{
"window": { "ranges": [{ "start": "02:00", "end": "05:00" }] },
"apps": {
"controller": { "path": "my-repo/controller/stable" },
"historian": { "path": "my-repo/historian/stable", "hold": true }
}
}holdkeeps an app at its current version.windowrestricts when the device switches a running app to a new version. The device downloads and installs the new version earlier, so the switch itself takes little time.retrylimits failed attempts and sets the delays between them.spreaddelays updates by the device’s position in a spread.
A setting of an app replaces the setting for all apps. For example,
"hold": false lets one app update while the others are held. The
application settings in the web interface offer Hold Updates and a
Maintenance Window for a single app.
Windows and Retries and
Spread describe the settings in detail.
Monitor Applications
The application list shows each app’s update state and workload status. When
an update is blocked, the application settings explain why, for example while
the device waits for its maintenance window. The device also records an event
in the apps category for every installation and failure.
To find out what an app did, select it. Logs shows the most recent log records of its workload, which the device reads while it is online. Choose how many records to read, up to 1000. Reading logs requires Rugix Ctrl 1.4.1 or later on the device, and a plan that includes applications.
| Symptom | What to Check |
|---|---|
| The update is blocked by a missing bundle | The version contains a bundle named for the architecture that the device reports, such as controller-aarch64.rugixb. |
| The update failed | The reported error. If the new version failed to start, Rugix Apps restored the previous version, which keeps running. Choose Retry Update after fixing the cause. |
| The device does not apply a change | The device is online. Without commands, the device applies changes at its next check. |
| The workload failed or is unhealthy | The app’s Logs. |
Set Up Rugix Apps lists further causes.
Use Another Application Updater
For applications outside Rugix Apps, store the artifacts in a Nexigon
repository and install them with your own service on the device. The service
reads the configured release, for example from a device property, resolves its
tag, and downloads new files with nexigon-agent repositories issue-url. Your
service decides when and how to install them, how to report success, and how
to restore the previous release after a failure.
Keep system and application releases in separate packages, so that you can promote them independently. Use separate repositories when they need different access rules.