Hello everyone i integrated mender into my custom system created using Yocto thud the system is very basic the problem that i’m facing is that mender.service stopped working ,
here is the error :
systemd[1]: mender.service: Service RestartSec=100ms expired, scheduling restart.
systemd[1]: mender.service: Scheduled restart job, restart counter is at 5.
systemd[1]: Stopped Mender OTA update service.
systemd[1]: [[0;1;39m[[0;1;31m[[0;1;39mmender.service: Start request repeated too quickly.[[0m
systemd[1]: [[0;1;39m[[0;1;31m[[0;1;39mmender.service: Failed with result ‘signal’.[[0m
systemd[1]: [[0;1;31m[[0;1;39m[[0;1;31mFailed to start Mender OTA update service.[[0m
@systeam would be possible to share build log for mender from yocto? As @mirzak mentioned if you get segmentation fault there is issue with binary compatibility. Also as reference pls use mentioned topic. Thanks.
The log does not indicate that the Mender client has been built. Do you share your Yocto environment between different boards with different architectures?
I would at least try:
bitbake -c cleansstate mender
and then re-build to make sure that the Mender client is re-built.
OK i will try to rebuild it , and no i don’t share yocto environment between diffrenet borads i keep them separated the only folder shared between them is the downloads folder
after that i tried to rebuild my system using the commend
bitbake core-image-minimal
i got this error
WARNING: mender-1.7.0-r0 do_package_qa: QA Issue: mender rdepends on u-boot-fw-utils, but it isn’t a build dependency, missing u-boot-fw-utils in DEPENDS or PACKAGECONFIG? [build-deps]
WARNING: mender-1.7.0-r0 do_package_qa: QA Issue: mender rdepends on u-boot-fw-utils, but it isn’t a build dependency, missing u-boot-fw-utils in DEPENDS or PACKAGECONFIG? [build-deps]
Ignoring this for now, as it should not have any impact on the reported error.
Did the re-build of the Mender client resolve the segfault problem?
finally it’s work , i used google repo as in the tutorial , everything works fine now , and i think i found the real problem , when i compile my distribution using musl ,
TCLIBC=“musl”
i get the error Segmentation fault, is there any relation between c libraries an mender. because when i use glibc like i said everything works fine
and thank you so much @mirzak for all your replies
Thank you @systeam for reporting back your findings. This will definitely be helpful to our community.
is there any relation between c libraries an mender
We need to investigate this as we have not much testing using musl libc. This could be a golang thing or yocto + muslc + mender. Quick look does hint that muls libc should work with golang.
Thank you @mirzak for all the exchanged information it’s helped me a lot in my project and working with mender is real pleasure it’s a very good solution for OTA update , and thank you for creating bug on tracker.
I’ve been investigating a bit your issue. I am able to reproduce the error when using musl libc, so it is clear that it is not a problem on your setup only.
To make the story short: there must be some of our C/C++ code in the mender client that triggers this segfault. However, disabling the PIC option on gcc seems to work.