Re: [agl-dev-community] OTA Treehub push fails for Yocto build

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

 



Hi Milan,

It seems that you have an issue with the upload of OSTree artifacts to the server (HTTP error code 415). Although, I am not exactly familiar in details with the issue you are experiencing, here are a couple of links with guidelines how to use software over the air updates with OSTree and Aktualizr:

- Step by step instructions for building core-image-minimal for Raspberry Pi:
https://docs.ota.here.com/getstarted/dev/raspberry-pi.html

- For AGL, for example agl-demo-platform, the process is slightly different: you need to enable the agl-sota feature. More details are explained here:
https://docs.automotivelinux.org/docs/en/master/getting_started/reference/getting-started/machines/raspberrypi.html#sota
https://wiki.automotivelinux.org/agl-distro/agl-raspberrypi#sota

Also, these instructions for generating a provisioning key from HERE OTA Connect might be useful:
https://docs.ota.here.com/getstarted/dev/generating-provisioning-credentials.html

Best regards,
Leon

On 12.08.20 г. 10:04 ч., Milan Satpathy wrote:
Hi,

I am trying to create a core-image-minimal for raspberrypi4 and auto push the ostree repo to a remote treehub server. 

Below is the additions to my local.conf:

IMAGE_INSTALL_append += " aktualizr-resource-control"
SOTA_PACKED_CREDENTIALS = "/home/build/myproject/build/credentials.zip"
OSTREE_BRANCHNAME = "rpi4-test"
IMAGE_INSTALL_append += " vim "
BB_NUMBER_THREADS = "8"
PARALLEL_MAKE = "-j 8"


I am getting the following error for core-image-minimal.bb:do_image_ostreepush:

| Uploading 9d/3cbe726af11edb050ef03da52d48a8d369787a9491c5947e63ee299a09fbaf.filez
| * Found bundle for host treehub.otatest.com: 0x563ac730b420 [serially]
| * Re-using existing connection! (#0) with host treehub.otatest.com
| * Connected to treehub.otatest.com (104.197.119.108) port 80 (#0)
| > POST /api/v3/objects/9d/3cbe726af11edb050ef03da52d48a8d369787a9491c5947e63ee299a09fbaf.filez HTTP/1.1
| Host: treehub.otatest.com
| User-Agent: garage-push/2020.7-127-g4169157a1
| Accept: */*
| x-ats-ostree-force: true
| Content-Type: application/octet-stream
| Content-Length: 72
|
| * We are completely uploaded and fine
| * Mark bundle as not supporting multiuse
| < HTTP/1.1 415 Unsupported Media Type
| < Server: nginx/1.13.7
| < Date: Wed, 12 Aug 2020 06:14:27 GMT
| < Content-Type: text/plain; charset=UTF-8
| < Content-Length: 74
| < Connection: keep-alive
| < x-ats-version: treehub/0.1.18
| <
| * Connection #0 to host treehub.otatest.com left intact
| OSTree upload reported an error code:415 retrying...
| Http response code:415
| The request's Content-Type is not supported. Expected:
| multipart/form-data
| One or more errors while pushing
| Shutting down RequestPool...
| ...done
| Upload to treehub failed
| WARNING: /home/build/myproject/build/tmp/work/raspberrypi4-poky-linux-gnueabi/core-image-minimal/1.0-r0/temp/run.do_image_ostreepush.13417:1 exit 1 from 'garage-push --loglevel 0 --repo=/home/build/myproject/build/tmp/deploy/images/raspberrypi4/ostree_repo --ref=rpi4-test --credentials=/home/build/myproject/build/credentials.zip --cacert=/home/build/myproject/build/tmp/work/raspberrypi4-poky-linux-gnueabi/core-image-minimal/1.0-r0/recipe-sysroot-native/etc/ssl/certs/ca-certificates.crt $SEND_MANIFEST'

Shall appreciate any suggestions in this regard.

Thanks,
Milan
-- 
Leon Anavi
Software Engineer
konsulko.com
_._,_._,_

Links:

You receive all messages sent to this group.

View/Reply Online (#8576) | 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