[agl-dev-community] Aktualizr : ecu registration fails with error 404

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



While starting aktualizr in device provision mode I keep getting the below error.

root@raspberrypi4:/var/sota# aktualizr --loglevel 0
Aktualizr version 2020.7-127-g4169157a1 starting
Reading config: "/usr/lib/sota/conf.d/20-sota-device-cred.toml"
Reading config: "/usr/lib/sota/conf.d/30-rollback.toml"
Reading config: "/etc/sota/conf.d/40-hardware-id.toml"
Final configuration that will be used:
[logger]
loglevel = 0

[p11]
module = ""
pass = ""
uptane_key_id = ""
tls_ca_id = ""
tls_pkey_id = ""
tls_clientcert_id = ""

[tls]
server = "https://ota-ce.uptanedemo.com:8443"
server_url_path = "/var/sota/import/gateway.url"
ca_source = "file"
pkey_source = "file"
cert_source = "file"

[provision]
server = "https://ota-ce.uptanedemo.com:8443"
p12_password = ""
expiry_days = "36000"
provision_path = ""
device_id = ""
primary_ecu_serial = "e7963201-e012-4d3c-b9c9-fca505ad8091"
primary_ecu_hardware_id = "raspberrypi4"
ecu_registration_endpoint = "https://ota-ce.uptanedemo.com:8443/director/api/v1/raspberrypi4/:e7963201-e012-4d3c-b9c9-fca505ad8091/ecus"
mode = "DeviceCred"

[uptane]
polling_sec = 10
director_server = "https://ota-ce.uptanedemo.com:8443/director"
repo_server = "https://ota-ce.uptanedemo.com:8443/repo"
key_source = "file"
key_type = "RSA2048"
force_install_completion = false
secondary_config_file = ""
secondary_preinstall_wait_sec = 600

[pacman]
type = "ostree"
os = ""
sysroot = ""
ostree_server = "https://ota-ce.uptanedemo.com:8443/treehub"
images_path = "/var/sota/images"
packages_file = "/usr/package.manifest"
fake_need_reboot = false

[storage]
type = "sqlite"
path = "/var/sota"
sqldb_path = "sql.db"
uptane_metadata_path = "metadata"
uptane_private_key_path = "ecukey.der"
uptane_public_key_path = "ecukey.pub"
tls_cacert_path = "root.crt"
tls_pkey_path = "pkey.pem"
tls_clientcert_path = "client.pem"

[import]
base_path = "/var/sota/import"
uptane_private_key_path = ""
uptane_public_key_path = ""
tls_cacert_path = "root.crt"
tls_pkey_path = "pkey.pem"
tls_clientcert_path = "client.pem"

[telemetry]
report_network = true
report_config = true

[bootloader]
rollback_mode = "uboot_masked"
reboot_sentinel_dir = "/var/run/aktualizr-session"
reboot_sentinel_name = "need_reboot"
reboot_command = "/sbin/reboot"

Current directory: /var/sota
Use existing SQL storage: "/var/sota/sql.db"
meta with role root in repo director not present in db
meta with role root in repo image not present in db
No serial found in database for this ECU, defaulting to empty serial
Checking if device is prov it showsisioned...
post request body:{
"ecus" :
[
{
"clientKey" :
{
"keytype" : "RSA",
"keyval" :
{
"public" : "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA1lP/49jYvsDxGFQ0vdqd\nsZJS"
}
},
"ecu_serial" : "e7963201-e012-4d3c-b9c9-fca505ad8091",
"hardware_identifier" : "raspberrypi4"
}
],
"primary_ecu_serial" : "e7963201-e012-4d3c-b9c9-fca505ad8091"
}

POST /director/api/v1/raspberrypi4/:e7963201-e012-4d3c-b9c9-fca505ad8091/ecus HTTP/1.1
Host: ota-ce.uptanedemo.com:8443
User-Agent: Aktualizr/2020.7-127-g4169157a1
Accept: /
Content-Type: application/json
Content-Length: 674

Any idea what's going wrong ?


Thanks in advance!


~Milan

_._,_._,_

Links:

You receive all messages sent to this group.

View/Reply Online (#8614) | Reply To Group | Reply To Sender | Mute This Topic | New Topic

Your Subscription | Contact Group Owner | Unsubscribe [list-automotive-discussions82@xxxxxxxxxxx]

_._,_._,_

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux