simao / ota-lith

Mozilla Public License 2.0
7 stars 3 forks source link

Device can't seem to be reaching image repo #5

Closed Jeredriq closed 2 years ago

Jeredriq commented 2 years ago

I am not 100% sure this is the reason but device, device group,update, campaign all defined without any problem and campaign is launched through API. But when we try to update the device it gives the following error:

No matching target in Image repo Targets metadata for Target
(mypkg_0.0.1 ecu_identifiers: (42aa40984adf576f143236c9b865a7f6c9cb2dfbd7d528d390dbad9f831a2d38 (hw_id: ota-ce-device), ) hw_ids: () length:832 hashes: (Hash: 2774BC60C60C0976BED4BE9908D7F578CFA3E4F4E18B6505210081DE4A12ECF8, ))
The target metadata in the Image and Director repos do not match.
-----------------------Target mismatch.
{
  "signatures": [
    {
      "keyid": "7c6f3d6bc7212a6f5d26edd14cd4e801faa53d31609ddbd5b0325301365118f0",
      "method": "ed25519",
      "sig": "+PkmqU0EY1z2kqRySB1qFftTY/EoGqNbgx4HJIrEKOoKEN761wBzojKiuvnWuCfE9OjOk9LQV9ouvtvgWBngDQ=="
    }
  ],
  "signed": {
    "_type": "Targets",
    "custom": {
      "correlationId": "urn:here-ota:campaign:c30f75c6-6955-40b6-9813-147b8a071039"
    },
    "expires": "2021-12-26T16:10:41Z",
    "targets": {
      "mypkg_0.0.1": {
        "custom": {
          "ecuIdentifiers": {
            "42aa40984adf576f143236c9b865a7f6c9cb2dfbd7d528d390dbad9f831a2d38": {
              "hardwareId": "ota-ce-device"
            }
          },
          "uri": null
        },
        "hashes": {
          "sha256": "2774bc60c60c0976bed4be9908d7f578cfa3e4f4e18b6505210081de4a12ecf8"
        },
        "length": 832
      }
    },
    "version": 14
  }
}

And server just says 100% failed and gives the following csv:

Device ID;Failure Code;Failure Description
7beea27a-1cef-47d7-9379-70a1e44d67ca;VERIFICATION_FAILED;Metadata verification failed.
simao commented 2 years ago

Difficult to say without looking at your metadata, can you show the full output of running aktualizr with --loglevel 0 ?

Jeredriq commented 2 years ago

It was my bad, forgot a ' character on string