Unable to convert mender artifacts

AkshatVyas
Mon, 14 Aug 2023 10:27:02 +0000
General Discussions

Hi team,

I was mainly using Mender to understand the operating system update. In my case, I am using two virtual machines and mainly trying to update from Ubuntu 18.04 LTS to Ubuntu 20.04 LTS.

I have been stuck at a point while converting from .img to .mender using mender-convert while Convert a Mender Debian image | Mender documentation. I have executed all the steps carefully. So, after executing the below command.

MENDER_ARTIFACT_NAME=release-1 ./docker-mender-convert *
** --disk-image input/golden-image-1.img *
** --config configs/raspberrypi3_config **
** --overlay input/rootfs_overlay_demo/**

The log it is showing is below:

Running mender-convert-extract: --config ./work/override_compression_config --disk-image input/gateway-os-image.img --config configs/generic_x86-64_hdd_config.save --overlay ./rootfs_overlay_demo/
2023-08-11 13:19:37 [INFO] [mender-convert-extract] Using configuration file: configs/mender_convert_config
2023-08-11 13:19:37 [INFO] [mender-convert-extract] Using configuration file: ./work/override_compression_config
2023-08-11 13:19:37 [INFO] [mender-convert-extract] Using configuration file: configs/generic_x86-64_hdd_config.save
2023-08-11 13:19:37 [INFO] [mender-convert-extract] Validating disk image
2023-08-11 13:19:37 [INFO] [mender-convert-extract] Disk parsed successfully
2023-08-11 13:19:37 [INFO] [mender-convert-extract] NUMBER OF PARTS: 3 TYPE: gpt
2023-08-11 13:19:37 [INFO] [mender-convert-extract] PART 1: SIZE: 29.9G TYPE: 0fc63daf-8483-4772-8e79-3d69d8477de4
2023-08-11 13:19:37 [INFO] [mender-convert-extract] PART 1: extracting to work/part-1.fs
2023-08-11 13:32:41 [INFO] [mender-convert-extract] PART 14: SIZE: 4M TYPE: 21686148-6449-6e6f-744e-656564454649
2023-08-11 13:32:41 [INFO] [mender-convert-extract] PART 14: extracting to work/part-14.fs
2023-08-11 13:32:42 [INFO] [mender-convert-extract] PART 15: SIZE: 106M TYPE: c12a7328-f81f-11d2-ba4b-00a0c93ec93b
2023-08-11 13:32:42 [INFO] [mender-convert-extract] PART 15: extracting to work/part-15.fs
mender-convert-extract has finished. Cleaning up…
Running mender-convert-modify: --config ./work/override_compression_config --disk-image input/gateway-os-image.img --config configs/generic_x86-64_hdd_config.save --overlay ./rootfs_overlay_demo/
2023-08-11 13:32:43 [INFO] [mender-convert-modify] Using configuration file: configs/mender_convert_config
2023-08-11 13:32:43 [INFO] [mender-convert-modify] Using configuration file: ./work/override_compression_config
2023-08-11 13:32:43 [INFO] [mender-convert-modify] Using configuration file: configs/generic_x86-64_hdd_config.save
mount: /data/mender-convert/work/rootfs: special device work/part-2.fs does not exist.
mender-convert-modify has finished. Cleaning up…
umount: work/rootfs: not mounted.
2023-08-11 13:32:43 [ERROR] [mender-convert] mender-convert failed
2023-08-11 13:32:43 [DEBUG] [mender-convert-extract] When running: (modules/disk.sh:63): run_and_log_cmd():

    dd if=input/gateway-os-image.img of=work/part-15.fs skip=10240 bs=512 count=217088 conv=sparse status=none

2023-08-11 13:32:43 [INFO] [mender-convert-modify] Using configuration file: configs/mender_convert_config
2023-08-11 13:32:43 [INFO] [mender-convert-modify] Using configuration file: ./work/override_compression_config
2023-08-11 13:32:43 [INFO] [mender-convert-modify] Using configuration file: configs/generic_x86-64_hdd_config.save
2023-08-11 13:32:44 [ERROR] [mender-convert] mender-convert exit code: 32

Kindly, provide some solution ASAP.
Thanks

1 post - 1 participant