You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Process of reprovisioning](#process-of-reprovisioning)
48
48
49
49
The process needs some prerequiste knowledge of the balena ecosystem, [balena-cli][balena-cli] commands and shell commands. Please read all instructions carefully and make sure to try the update process first on a test device.
> Warning: For devices with internal storage, this procedure erases the internal media of your device. Hence, remove any mass storage devices containing user data.
200
-
201
-
With the update media ready having the latest release of the application preloaded. Follow the device's provisioning instructions present on balenaCloud dashboard for your specific device.
202
-
203
-
For example: For Raspberry Pi devices, insert the recently flashed SD card and power up the device. When the process is complete, (re)connect any mass storage devices containing user data back to the device. Reconnect the device to the local air-gapped network(s). Later, use SSH to connect and inspect application logs, etc.
204
-
205
-
#### Strategies to remotely update with an SD card or USB device
206
-
207
-
If a device isn't locally deployed, one can ship the flashed SD cards or USB sticks/drives to a remote location. There someone can run the update by simply inserting them into the devices and booting.
208
-
209
-
If the target device exists on an air-gapped or Internet restricted network, [inserting ssh keys][insert-ssh-key] during the configuration step will allow fleet managers at the remote site to connect into the device directly via OpenSSH and verify the update by examining container logs, etc.
210
-
211
-
If the target device is connected via a low-bandwidth connection, it should eventually establish a connection to balenaCloud. Depending on the connection's quality, it may respond to [web terminal][web-terminal] commands and output container logs to the dashboard.
212
-
213
197
### Update Device Registration(s)
214
198
215
-
This section deals with device registration in the cloud (balenaCloud or openBalena). The following steps help in manually reflecting the new state of the device for offline devices or devices on private networks without Internet access.
199
+
This section deals with device registration in the cloud (balenaCloud or openBalena). The following steps help in
200
+
* manually reflecting the new state of the device for offline devices or devices on private networks without Internet access
201
+
* prevent devices with restricted or low bandwidth connectivity from trying to download newer releases.
216
202
217
203
#### Patch State Endpoint - Update Device State in the Cloud
218
204
219
205
This step updates the device state in the cloud (balenaCloud or openBalena)
220
-
on behalf of the device, as if the device was online. It is only required for
221
-
devices that do not have an internet connection. If the device has an internet
222
-
connection, even if low bandwidth, this step may be skipped because the device
223
-
itself will be able to contact the cloud to update its state.
206
+
on behalf of the device, as if the had just installed the new release. It is
207
+
optional for devices that do not have an internet connection, but mandatory if
208
+
the device has a unreliable/limited connectivity or low bandwidth internet
209
+
connection.
210
+
211
+
In such unreliable or limited bandwidth connection situations, you will need to
212
+
run the commands of this step after you have powered off the device. This step
213
+
will pin the device to the release that was preloaded to the image, to ensure
214
+
that the device doesn't attempt to download a newer release over an unreliable
@@ -259,6 +251,22 @@ $ balena tag set 'offline:hostOS' "${os_version}" \
259
251
--device ${uuid}
260
252
```
261
253
254
+
### Process of Reprovisioning
255
+
256
+
> Warning: For devices with internal storage, this procedure erases the internal media of your device. Hence, remove any mass storage devices containing user data.
257
+
258
+
With the update media ready having the latest release of the application preloaded. Follow the device's provisioning instructions present on balenaCloud dashboard for your specific device.
259
+
260
+
For example: For Raspberry Pi devices, insert the recently flashed SD card and power up the device. When the process is complete, (re)connect any mass storage devices containing user data back to the device. Reconnect the device to the local air-gapped network(s). Later, use SSH to connect and inspect application logs, etc.
261
+
262
+
#### Strategies to remotely update with an SD card or USB device
263
+
264
+
If a device isn't locally deployed, one can ship the flashed SD cards or USB sticks/drives to a remote location.
265
+
266
+
If the target device exists on an air-gapped or Internet restricted network, [inserting ssh keys][insert-ssh-key] during the configuration step will allow fleet managers at the remote site to connect into the device directly via OpenSSH and verify the update by examining container logs, etc. In such cases someone can run the update by simply inserting them into the devices and booting.
267
+
268
+
If the target device is connected via a low-bandwidth connection, it should eventually establish a connection to balenaCloud. Depending on the connection's quality, it may respond to [web terminal][web-terminal] commands and output container logs to the dashboard.
269
+
262
270
Read more about how the process can work better for your usecase in the [offline updates](https://balena.io/blog/offline-updates-make-it-easier-to-update-balena-devices-without-the-internet) blog.
0 commit comments