Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OTA App Update fails to apply or complete downloading: "Index was outside the bounds of the array." #775

Open
alexischr opened this issue Sep 23, 2024 · 0 comments

Comments

@alexischr
Copy link
Contributor

Describe the bug

When publishing a trivial Cultivar app update to a Meadow Project Lab, the download fails to complete downloading.

At around 100% completion (the display even says "Update Complete!"), the process stops and the update is not applied or the device automatically restarted. The following output is the last to show on the meadow listen channel before entering a futile retry loop:

[application] Download progress: 3,497,301 bytes downloaded
[application] Download progress: 3,501,397 bytes downloaded
[application] Temperature: 31.8 | Humidity: 39.3 | Moisture: 2.3
[application] Download progress: 3,505,493 bytes downloaded
[application] Failed to download Update after 206 seconds: Specified argument was out of the range of valid values.
[application] Retrying attempt 1 of 10 in 1000 milliseconds...
[application] Resuming download from existing file: /meadow0/update-store/c9c0c75084be482eb265e31a3ef2979a/c9c0c75084be482eb265e31a3ef2979a.zip. Appending to continue.
[cloud] making cloud request to /api/logs with payload: {"timestamp":"2024-09-23T04:54:32.8390940Z","severity":"Error","message":"[application] Failed to download Update after 206 seconds: Specified argument was out of the range of valid values.","exception":null}
[application] Failed to download Update after 206 seconds: Specified argument was out of the range of valid values.
[application] Retrying attempt 2 of 10 in 1000 milliseconds...
[cloud] cloud request to /api/logs completed successfully
[application] Temperature: 31.8 | Humidity: 39.3 | Moisture: 2.3
[application] Resuming download from existing file: /meadow0/update-store/c9c0c75084be482eb265e31a3ef2979a/c9c0c75084be482eb265e31a3ef2979a.zip. Appending to continue.
[application] Failed to download Update after 206 seconds: Specified argument was out of the range of valid values.
[application] Retrying attempt 3 of 10 in 1000 milliseconds...

To Reproduce
Steps to reproduce the behavior:

  1. Run Cultivar
  2. Create/Upload a new mpak using CLI
  3. meadow package publish ...
  4. Wait until the download is almost at 100%
  5. meadow listen
  6. Observe above output (indicating a swallowed ArgumentOutOfRange exception)
  7. Observe that the process is stuck and the update is never applied

Expected behavior
The update should be decompressed and applied, and the device should restart after that.

Meadow (please complete the following information as best as you can):

Meadow by Wilderness Labs
Board Information 
    Model: F7Micro
    Hardware version: F7CoreComputeV2
    Device name: Cultivar

Hardware Information 
    Processor type: STM32F777IIK6
    ID: 26-00-35-00-03-51-38-34-35-31-38-33
    Serial number: 336D31653438
    Coprocessor type: ESP32
    MAC Address - 
        WiFi: 4C:75:25:D7:13:6C


Firmware Versions 
    OS: 1.13.1.1
    Runtime: 1.13.1.1
    Coprocessor: 1.13.0.0
    Protocol: 8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants