Mender troubleshoot doesn't work anymore after upgrading from kirkstone to scarthgap

We are using Mender on a Raspberry Pi CM4 device and after we have upgraded the release to scarthgap the troubleshoot isn’t working anymore. Has there something changed in the configuration to use the troubleshoot plugin?

This is our current configuration:

    MENDER_STORAGE_TOTAL_SIZE_MB = "8192"
    MENDER_BOOT_PART_SIZE_MB = "128"
    MENDER_DATA_PART_SIZE_MB = "2048"
    MENDER_ARTIFACT_NAME = "<artifact name>"
    MENDER_SERVER_URL = "https://eu.hosted.mender.io"
    MENDER_INVENTORY_POLL_INTERVAL_SECONDS = "28800"
    MENDER_RETRY_POLL_INTERVAL_SECONDS = "1800"
    MENDER_UPDATE_POLL_INTERVAL_SECONDS = "1800"
    INHERIT:append = " mender-full"
    MENDER_FEATURES_ENABLE:append = " mender-image-sd"
    MENDER_FEATURES_DISABLE:append = " mender-image-uefi mender-grub mender-growfs-data"
    MENDER_EFI_LOADER = ""
    KERNEL_DEVICETREE:append = " broadcom/bcm2711-rpi-cm4.dtb"
    MENDER_DTB_NAME_FORCE = "broadcom/bcm2711-rpi-cm4.dtb"
    RPI_USE_U_BOOT = "1"
    SDIMG_ROOTFS_TYPE = "ext4"
    MENDER_TENANT_TOKEN = "<tennent token>"
    PACKAGECONFIG:append:pn-mender-client = " modules"
    IMAGE_INSTALL:append = " mender-connect"

Git commit of the Mender repository we’re currently using: 0d393c2267a92091f975eb932338c07109f5f5fd

Hi @StMartin81,

I have just tried the Troubleshoot Add-On with scarthgap and didn’t run into any problems. What kind of “isn’t working” are you seeing? Does it install in the build, but not connecting? Can you maybe gather logs from systemd?

Greetz,
Josef

I have accepted the device in Mender:

But when I open the Troubleshooting tab I don’t see an option to log into the device:

This is the ouput from journalctl when I grep for Mender output:

hi @StMartin81,

Ah, now I get it. Can you make sure the mender-connect package is installed, and the corresponding systemd unit is enabled and running?

Greetz,
Josef

Thank you! I got it working. I had two problems:

  • While I was debugging another problem I accidentally removed mender-connect from the image
  • I had to update the path to bash: MENDER_CONNECT_SHELL = “/usr/bin/bash” in local.conf
1 Like