# Mender-connect.service not found

**URL:** https://hub.mender.io/t/mender-connect-service-not-found/7719
**Category:** General Discussions
**Tags:** yocto, nxp, mender-client, mender-server
**Created:** [April 15, 2025, 9:30am UTC](https://hub.mender.io/t/mender-connect-service-not-found/7719 "2025-04-15T09:30:58Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Rani13958](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/rani13958/32/2479_2.png) [@Rani13958](https://hub.mender.io/u/Rani13958)
#### Post date: [April 15, 2025, 9:30am UTC](https://hub.mender.io/t/mender-connect-service-not-found/7719/1 "2025-04-15T09:30:58Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)
#### Post date: [April 15, 2025, 2:44pm UTC](https://hub.mender.io/t/mender-connect-service-not-found/7719/2 "2025-04-15T14:44:33Z")

</div>

Hi @Rani13958,

Just by looking at the 2.3.x source branches, the file seems to be available: [mender-connect/support at 2.3.x · mendersoftware/mender-connect · GitHub](https://github.com/mendersoftware/mender-connect/tree/2.3.x/support)

Can you gather a little more information, like which layer revisions are involved? Also, have you tried inspecting the actual source directory?

Greetz,  
Josef

---

<div class="post-metadata">

### Author: ![Rani13958](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/rani13958/32/2479_2.png) [@Rani13958](https://hub.mender.io/u/Rani13958)
#### Post date: [April 15, 2025, 3:01pm UTC](https://hub.mender.io/t/mender-connect-service-not-found/7719/3 "2025-04-15T15:01:31Z")

</div>

hi @TheYoctoJester

to be clear i cloned the meta-mender and the meta-mender-community to my build env and this is the mender configuration in my local.conf :

# Enable Mender features

MENDER\_FEATURES\_ENABLE:append = " mender-uboot mender-image mender-image-sd"  
MENDER\_FEATURES\_DISABLE:append = " mender-grub mender-image-uefi"

# Mender Artifact info

MENDER\_ARTIFACT\_NAME = “scooter-v1.0”

# Flash layout

MENDER\_STORAGE\_TOTAL\_SIZE\_MB = “4096”  
MENDER\_BOOT\_PART\_SIZE\_MB = “64”  
MENDER\_DATA\_PART\_SIZE\_MB = “256”

# Mender and Toradex Tezi integration

INHERIT += “mender-toradex”  
IMAGE\_CLASSES += “image\_type\_mender\_tezi”  
IMAGE\_FSTYPES:append = " mender\_tezi"  
IMAGE\_FSTYPES:remove = " teziimg"

MENDER\_IMAGE\_BOOTLOADER\_BOOTSECTOR\_OFFSET = “0”  
DISTRO\_FEATURES:append = " systemd"  
VIRTUAL-RUNTIME\_init\_manager = “systemd”  
DISTRO\_FEATURES\_BACKFILL\_CONSIDERED = “sysvinit”  
VIRTUAL-RUNTIME\_initscripts = “”

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

---

<div class="post-metadata">

### Author: ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)
#### Post date: [April 17, 2025, 12:16pm UTC](https://hub.mender.io/t/mender-connect-service-not-found/7719/4 "2025-04-17T12:16:46Z")

</div>

3 posts were split to a new topic: [OTA binary coredump](https://hub.mender.io/t/ota-binary-coredump/7737)

---

<div class="post-metadata">

### Author: ![Damien](https://avatars.discourse-cdn.com/v4/letter/d/9de053/32.png) [@Damien](https://hub.mender.io/u/Damien)
#### Post date: [June 25, 2025, 9:53am UTC](https://hub.mender.io/t/mender-connect-service-not-found/7719/5 "2025-06-25T09:53:28Z")

</div>

Any news about this issue ?  
I’ve the exact same issue.  
I’ve cloned the scarthgap branch of [GitHub - mendersoftware/meta-mender: Yocto Project meta layer for the Mender client](https://github.com/mendersoftware/meta-mender.git)  
Added the bblayer :  
BBLAYERS += “/opt/conga-STDA4/sources/meta-mender/meta-mender-core”

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.

Thanks for your help.

---

<div class="post-metadata">

### Author: ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)
#### Post date: [June 25, 2025, 10:33am UTC](https://hub.mender.io/t/mender-connect-service-not-found/7719/6 "2025-06-25T10:33:37Z")

</div>

Hi @Damien,

Far-fetched guess - have you checked in `mender-systemd` is in `MENDER_FEATURES`? Otherwise the service file will not be installed to the root filesystem, see [meta-mender/meta-mender-core/recipes-mender/mender-connect/mender-connect.inc at 033fe1f44f6f89f105f4d371a08bab6b80c8806b · mendersoftware/meta-mender · GitHub](https://github.com/mendersoftware/meta-mender/blob/033fe1f44f6f89f105f4d371a08bab6b80c8806b/meta-mender-core/recipes-mender/mender-connect/mender-connect.inc#L63).

Greetz,  
Josef

---

<div class="post-metadata">

### Author: ![Rani13958](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/rani13958/32/2479_2.png) [@Rani13958](https://hub.mender.io/u/Rani13958)
#### Post date: [June 25, 2025, 11:14am UTC](https://hub.mender.io/t/mender-connect-service-not-found/7719/7 "2025-06-25T11:14:57Z")

</div>

hi @Damien

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:

do\_install:append:mender-systemd() {  
# Install systemd service  
install -m 755 -d ${D}${systemd\_unitdir}/system  
install -m 0644 ${B}/src/${GO\_IMPORT}/support/mender-connect.service ${D}${systemd\_unitdir}/system/  
}

Updated Configuration:

do\_install:append() {  
# Always install systemd service  
install -d ${D}${systemd\_unitdir}/system  
install -m 0644 ${B}/src/github.com/mendersoftware/mender-connect/support/mender-connect.service ${D}${systemd\_unitdir}/system/  
}  
**Changes Made:**

1. Updated the source path to explicitly reference [github.com/mendersoftware/mender-connect/support/mender-connect.service](http://github.com/mendersoftware/mender-connect/support/mender-connect.service).

This modification ensures the mender-connect.service file is correctly installed, resolving the build error.

---

<div class="post-metadata">

### Author: ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)
#### Post date: [June 25, 2025, 12:48pm UTC](https://hub.mender.io/t/mender-connect-service-not-found/7719/8 "2025-06-25T12:48:06Z")

</div>

@Rani13958 did you intentionally build without `mender-systemd` in `MENDER_FEATURES`? It should definitely be picked up otherwise.

---

<div class="post-metadata">

### Author: ![Rani13958](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/rani13958/32/2479_2.png) [@Rani13958](https://hub.mender.io/u/Rani13958)
#### Post date: [June 25, 2025, 1:07pm UTC](https://hub.mender.io/t/mender-connect-service-not-found/7719/9 "2025-06-25T13:07:25Z")

</div>

The omission of mender-systemd from MENDER\_FEATURES was unintentional, as it was not explicitly included in my local.conf configuration, which currently has:

MENDER\_FEATURES\_ENABLE:append = " mender-uboot mender-image mender-image-sd"

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.

---

<div class="post-metadata">

### Author: ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)
#### Post date: [June 27, 2025, 11:03am UTC](https://hub.mender.io/t/mender-connect-service-not-found/7719/10 "2025-06-27T11:03:28Z")

</div>

Hi @Rani13958,

You’re totally right in your expectations, `mender-systemd` should automatically be enabled. To dig a bit further into this, can you try and run

```auto
bitbake-getvar -r core-image-minimal MENDER_FEATURES

```

and paste it, including the evaluation history? Thanks!

Greetz,  
Josef
