The software update installs a new release of the Weble IoT gateway software on a device: drivers, routes engine, web interface and system libraries. It is done from the web interface of the device, online or with a file, and keeps the whole configuration.
Software or OS? This page covers the software, updated in a few minutes from the web interface. The operating system itself (Linux image, kernel) is replaced by the OS update, a rarer procedure with a USB flash disk or a disk image. The OS update needs a recent software release: update the software first.
Open the window in one of two ways (administrators only):
The window has two tabs, chosen with the selector at the top:
| Tab | Content |
|---|---|
| IoT Gateway Software | The gateway software. Its Installed revision is the rNNN number of the Releases page. |
| System libraries | The libraries the software relies on. They have their own revision and are updated separately, with the same buttons. |
Each tab shows the Installed revision and its Last Changed Date, a link to the files for an offline update, and two buttons: offline and online.
The System informations box of the System home page also shows the installed version (line Version).
Windows installations have no System update window: install the Windows package of the new release instead. See Windows installation.
The device downloads the release from the Weble update server (repository.weble.ch).
If the installed release is already the latest one, the window says Your packages are up to date. Do you want to update them anyway ? See section 5.
When the device cannot reach the update server, the window offers: The gateway could not get the update from the server (…). Do you want to download it with your browser and send it to the gateway ?
Confirm: your computer downloads the file from the update server, then sends it to the device. The button shows Downloading…, Waiting for the gateway..., Uploading file… and Checking version..., then the installation starts as in an online update. Your computer needs Internet access and must stay on the page until the upload is finished.
If your browser cannot download the file either, the window gives the download link: download the file with any computer connected to Internet and use the offline button.
.wu file of the release: the link is under each release on the Releases page, and all files are listed at https://www.weble.ch/iot/releases/. The System libraries tab gives its own download link..wu file. The button shows Uploading file …%, then Checking version …%.Only the official .wu files are accepted: the device checks the signature of the package before installing it.
Reload packages reinstalls the current release. Use it when the support asks you to, or when a previous update was interrupted.
.wu file of the installed release, then Reload packages.Sending the .wu file again is also the way to repair a device whose software files are damaged (for example after a power cut during an update): the file contains the complete release.
If the installation fails, the device puts the previous release back and restarts the drivers on it: you can try again. If the power is cut during the installation, the device finishes the work at the next start.
The progress window cannot be closed while the installation runs. Do not reload the page.
| Message | Meaning and action |
|---|---|
| The system is updating... | An update is already running. Wait for the end. |
| A new version is available rNNN, do you want to install it? | A newer release exists on the server. |
| Your packages are up to date. Do you want to update them anyway ? | The installed release is the latest one, or the file is not newer. Reload packages reinstalls it. |
| The gateway could not get the update from the server (…) | The device has no access to the update server. Accept the update through the browser, or use offline. |
| Unable to get remote version | The update server did not answer. Check the Internet access of the device, or use offline. |
| Unable to fetch new version, probably in DEV mode. | The server has no file for this device. Contact support@weble.ch. |
| Archive error : … | The uploaded file is damaged or is not a .wu file. Download it again. |
| Invalid repository | The file is not meant for this tab or this device (for example a System libraries file in the IoT Gateway Software tab). |
| Invalid signature | The package is not an official Weble package. Nothing was installed. |
| Timeout during operation... | The device took too long to read the file. Try again; if it repeats, contact the support. |
| It seems that your directory is corrupted. | The installed revision cannot be read. Send the .wu file of the release with offline to repair it. |
The update can be scripted. POST /system/upgrade only uploads the .wu file to the device; the installation starts with the peers function system.upgradeSupervisionRevision('file'). Both need the matching right in the role of the account. See REST API: system and Peers API: system.