atmark-techno / mkswu

Tools to manage swupdate images for armadillo
MIT License
5 stars 2 forks source link

My swupdate-hawkbit service was be crashed when I was using the hawkbit server to update an image weighs about 70 MB #2

Open Hoang-Anh-Duong opened 1 year ago

Hoang-Anh-Duong commented 1 year ago

I using swdesc_embed_container option to update podman image So, my image .swu weighs about 70 MB When I run a rollout to update device, my swupdate-hawkbit service on the device was be crashed and update failed. I found log in /var/log/message and it have nothing error and log stop at "...delete volumes". Plz, help me and thank you so much!

martinetd commented 1 year ago

Hard to say without more details; I've confirmed swupdate/hawkbit works last week but didn't try a larger file sorry.

Could you run swupdate manually to try to get more informations?

# swupdate package version
apk list swupdate
# settings to allow core dump
ulimit -c 0
cd /var/tmp
# swupdate itself
rc-service swupdate-hawkbit stop
SWUPDATE_HAWKBIT=1 swupdate -u "-e -c 0"

At this point it should start install immediately if it was still pending, but if not retrigger update, wait 5 minutes and it should behave like the service, with logs in stdout. Would really help to have the output here, and if you got a core get something out of it... Unfortunately the build script did not keep symbols so that might be easier said than done.

Thanks!

Hoang-Anh-Duong commented 1 year ago

Could you run swupdate manually to try to get more informations?

I tried and successfully updated the image. When I update with hawkbit then only service swupdate-hawkbit was be crashed after a long time about 5-10 minutes.

Thank you for your reply!

Hoang-Anh-Duong commented 1 year ago

I think the cause of this error is a timeout of service SW update-hawkbit during the time downloading files and handling updates from the hawkbit server. So, where can I config timeout of swupdate-hawkbit?

Thank you so much!