Skip to content

The update fails at the first boot of the board (time sync) #53

@dido18

Description

@dido18

Motivation

When the board is booted the first time, the update always fails. After the first restart, the update works as expected.

Error in the AppLab:
Image

Error in the Console log:

Error: {"details":"Error checking for upgradable packages: no internet connectivity"}

Root cause

Before doing a system update, Arduino App CLI checks the internet connectivity by performing a HEAD https://download.arduino.cc

The check fails with the error:

"Head \"https://downloads.arduino.cc/[\](https://downloads.arduino.cc//)": tls: failed to verify certificate: x509: certificate has expired or is not yet valid: current time 2025-09-09T09:03:56Z is before 2025-10-28T08:59:20Z

This TLS verification fails because the board does not have the internal clock updated. This causes the TLS verification to fail.

Possible solution

  • add retries
  • force the board to update the datetime (when? at first startup? every time an update check?).

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions