How to debug and log "mender-convert"?

For several days I’ve been trying to convert the latest version of RPI Image from 2019-06-20 and get the same result.

After starting the following command:
./docker-mender-convert from-raw-disk-image
–raw-disk-image $RAW_DISK_IMAGE
–mender-disk-image $MENDER_DISK_IMAGE
–device-type $DEVICE_TYPE
–artifact-name $ARTIFACT_NAME
–bootloader-toolchain arm-buildroot-linux-gnueabihf
–server-url “https://hosted.mender.io
–tenant-token $TENANT_TOKEN

The following output of the console is received:
Running mender-convert from-raw-disk-image --raw-disk-image input/2019-06-20-raspbian-buster.img --mender-disk-image 2019-06-20-raspbian-buster.sdimg --device-type raspberrypi3 --artifact-name 2019-06-20-raspbian-buster --bootloader-toolchain arm-buildroot-linux-gnueabihf --server-url https://hosted.mender.io --tenant-token

Then there is no change for 24 hours or more. Where is the problem?

How can I debug mender-convert?

How can I make detailed logs to understand what’s happening and how to fix it?

When I type “ps -eaf | grep mender”, the following processes are started:

  • root 12746 12743 0 09:37 pts/0 00:00:00 /bin/sh ./docker-mender-convert from-raw-disk-image --raw-disk-image input/2019-06-20-raspbian-buster.img --mender-disk-image 2019-06-20-raspbian-buster.sdimg --device-type raspberrypi3 --artifact-name 2019-06-20-raspbian-buster --bootloader-toolchain arm-buildroot-linux-gnueabihf --server-url https://hosted.mender.io --tenant-token
  • root 12754 12746 0 09:37 pts/0 00:00:00 docker run --mount type=bind,source=/home/miron/works/mender.io/mender-convert,target=/mender-convert --privileged=true --cap-add=SYS_MODULE -v /dev:/dev -v /lib/modules:/lib/modules:ro mender-convert from-raw-disk-image --raw-disk-image input/2019-06-20-raspbian-buster.img --mender-disk-image 2019-06-20-raspbian-buster.sdimg --device-type raspberrypi3 --artifact-name 2019-06-20-raspbian-buster --bootloader-toolchain arm-buildroot-linux-gnueabihf --server-url https://hosted.mender.io --tenant-token
  • root 12937 12908 0 09:37 ? 00:00:00 /bin/sh /usr/local/bin/docker-entrypoint.sh from-raw-disk-image --raw-disk-image input/2019-06-20-raspbian-buster.img --mender-disk-image 2019-06-20-raspbian-buster.sdimg --device-type raspberrypi3 --artifact-name 2019-06-20-raspbian-buster --bootloader-toolchain arm-buildroot-linux-gnueabihf --server-url https://hosted.mender.io --tenant-token
  • root 13087 12937 79 09:37 ? 00:00:28 /bin/bash ./mender-convert from-raw-disk-image --raw-disk-image input/2019-06-20-raspbian-buster.img --mender-disk-image 2019-06-20-raspbian-buster.sdimg --device-type raspberrypi3 --artifact-name 2019-06-20-raspbian-buster --bootloader-toolchain arm-buildroot-linux-gnueabihf --server-url https://hosted.mender.io --tenant-token

A detailed log is written to output/build.log, I would inspect that. It definitely seems wrong that there is no change for 24 hours.

I believe the problem is that your TENANT_TOKEN variable is empty, or did you mask it when posting the log?

Currently is empty. Is TENANT_TOKEN variable mandatory?
As I know, to have TENANT_TOKEN, I have to pay membership here hosted.mender.io. Is it true?

Currently is empty. Is TENANT_TOKEN variable mandatory?

It is not mandatory, but you can not have empty values. So just remove --tenant-token if you are not provided that value. You can check ./mender-convert --help for other available server options.

As I know, to have TENANT_TOKEN, I have to pay membership here hosted.mender.io. Is it true?

Yes, this requires you to have an account on hosted.mender.io