(solved) Mender-convert failed When running: (modules/grub.sh:22): run_and_log_cmd():

I tried to convert my image but it showed failed here.

2022-10-05 03:59:09 [INFO] [mender-convert-modify] Installing GRUB...
2022-10-05 03:59:09 [INFO] [mender-convert-modify] Installing mender-grub-editenv
2022-10-05 03:59:09 [INFO] [mender-convert-modify] Installing the GRUB editenv binary
2022-10-05 03:59:13 [INFO] [mender-convert-modify] GRUB EFI: bootx64.efi
2022-10-05 03:59:16 [INFO] [mender-convert-modify] Generating the mender-grub config...
mender-convert-modify has finished. Cleaning up...
2022-10-05 03:59:17 [ERROR] [mender-convert] mender-convert failed
2022-10-05 03:59:17 [DEBUG] [mender-convert-modify] When running: (modules/grub.sh:22): run_and_log_cmd():

        wget -Nq 'https://github.com/mendersoftware/grub-mender-grubenv/archive/2ac898f5924d5870f8394ad8ecd3ef1ab1422e3b.tar.gz' -P work/
2022-10-05 03:59:17 [ERROR] [mender-convert] mender-convert failed
2022-10-05 03:59:17 [ERROR] [mender-convert] mender-convert exit code: 4
Log file available at: /home/ak_lai/mender-convert/logs/convert.log.1664942188-2684

This is my command.

sudo MENDER_ARTIFACT_NAME=test ./docker-mender-convert --disk-image input/sourcegw-1664853624.img --config configs/gateway_config --config configs/overlaypermissions_config --overlay input/rootfs_overlay_demo/

If there is anyone met the problem before please tell me how to solve it. Thanks a lot!.

I solved the problem with change another sub network on the GCP instance.

It seems like a network issue.

I’m getting a similar problem. This was on a local PC. It was working fine yesterday.

2023-08-29 00:52:45 [INFO] [mender-convert-modify] Installing GRUB...
2023-08-29 00:52:45 [INFO] [mender-convert-modify] Installing mender-grub-editenv
2023-08-29 00:52:45 [INFO] [mender-convert-modify] Installing the GRUB editenv binary
2023-08-29 00:52:45 [INFO] [mender-convert-modify] GRUB EFI: bootx64.efi
2023-08-29 00:52:45 [INFO] [mender-convert-modify] Generating the mender-grub config...
mender-convert-modify has finished. Cleaning up...
2023-08-29 00:52:46 [e[0;31mERRORe[0m] [mender-convert] mender-convert failed
2023-08-29 00:52:46 [DEBUG] [mender-convert-modify] When running: (modules/grub.sh:21): run_and_log_cmd():  


	wget -Nq 'https://github.com/mendersoftware/grub-mender-grubenv/archive/a525df022c10950ddbadad05adaefe7b2451ec62.tar.gz' -P work/
2023-08-29 00:52:46 [e[0;31mERRORe[0m] [mender-convert] mender-convert failed
2023-08-29 00:52:46 [e[0;31mERRORe[0m] [mender-convert] mender-convert exit code: 8

I tried the wget command and the following was the result

$ wget -N 'https://github.com/mendersoftware/grub-mender-grubenv/archive/a525df022c10950ddbadad05adaefe7b2451ec62.tar.gz' -P work/
--2023-08-29 11:23:43--  https://github.com/mendersoftware/grub-mender-grubenv/archive/a525df022c10950ddbadad05adaefe7b2451ec62.tar.gz
Resolving github.com (github.com)... 20.27.177.113
Connecting to github.com (github.com)|20.27.177.113|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/mendersoftware/grub-mender-grubenv/tar.gz/a525df022c10950ddbadad05adaefe7b2451ec62 [following]
--2023-08-29 11:23:43--  https://codeload.github.com/mendersoftware/grub-mender-grubenv/tar.gz/a525df022c10950ddbadad05adaefe7b2451ec62
Resolving codeload.github.com (codeload.github.com)... 20.27.177.114
Connecting to codeload.github.com (codeload.github.com)|20.27.177.114|:443... connected.
HTTP request sent, awaiting response... 403 Forbidden
2023-08-29 11:23:43 ERROR 403: Forbidden.

I can download the .tar.gz file if I enter the URL into my browser.

I’m not sure what to do to get the mender convert working again