I’m trying to build mender-connect version 2.3.0 on a Toradex Apalis iMX8 using the tdx-reference-multimedia-image (Yocto-based), and I’m running into an error during the do_install step:
install: cannot stat ‘/…/mender-connect-2.3.0/support/mender-connect.service’: No such file or directory
It seems like the recipe is expecting a mender-connect.service file inside the support/ directory of the source tree, but it’s not there. The build fails because it can’t install this missing systemd unit file.
Was the mender-connect.service file removed or moved in version 2.3.0?
and each bitbake mender-connect this error occured :
ERROR: mender-connect-2.3.0-r0 do_package: Didn’t find service unit ‘mender-connect.service’, specified in SYSTEMD_SERVICE:mender-connect.
and i added this part to my bblayers.conf :
${TOPDIR}/../layers/meta-mender/meta-mender-core
${TOPDIR}/../layers/meta-mender/meta-mender-demo
${TOPDIR}/../layers/meta-mender/meta-mender-community/meta-mender-toradex-nxp \
and when i run bitbake tdx-reference-multimedia-image this error occur :
ERROR: mender-connect-2.3.0-r0 do_package: Didn’t find service unit ‘mender-connect.service’, specified in SYSTEMD_SERVICE:mender-connect.
/home/ranim/pixii_os/build/../layers/meta-mender/meta-mender-core/recipes-mender/mender-connect/mender-connect_2.3.0.bb:do_package
But then mender-connect can not build because the .service file is missing :
ERROR: mender-connect-2.3.0-r0 do_package: Didn’t find service unit ‘mender-connect.service’, specified in SYSTEMD_SERVICE:mender-connect.
ERROR: Logfile of failure stored in: /opt/conga-STDA4/build/arago-tmp-default-glibc/work/aarch64-oe-linux/mender-connect/2.3.0/temp/log.do_package.2224
ERROR: Task (/opt/conga-STDA4/sources/meta-mender/meta-mender-core/recipes-mender/mender-connect/mender-connect_2.3.0.bb:do_package) failed with exit code ‘1’
In my build directory (mender-connect/2.3.0/mender-connect-2.3.0/src/github.com/mendersoftware/mender-connect/), I can see the mender-connect.service file in the support directory, but it looks like Yocto/Bitbake can not see it.
The build issue with mender-connect version 2.3.0, where the mender-connect.service file was not found during the do_package step, has been resolved. The error stemmed from the Yocto/Bitbake build process failing to locate the systemd service file, despite its presence in the source directory (mender-connect-2.3.0/src/github.com/mendersoftware/mender-connect/support/).
To address this, the mender-connect.inc file was updated as follows:
The omission of mender-systemd from MENDER_FEATURES was unintentional, as it was not explicitly included in my local.conf configuration, which currently has:
However, this did not cause any issues with the mender-connect build after modifying the mender-connect.inc file to unconditionally install the mender-connect.service file using do_install:append(), as shared previously. My local.conf ensures systemd is enabled as the init system via:
DISTRO_FEATURES:append = " systemd"
VIRTUAL-RUNTIME_init_manager = “systemd”
INIT_MANAGER = “systemd”
DISTRO_FEATURES_BACKFILL_CONSIDERED = “sysvinit”
VIRTUAL-RUNTIME_initscripts = “”
This configuration guaranteed systemd was present, allowing the service file installation to succeed.
Please let me know if you recommend any further adjustments.