# (solved) Mender-convert failed When running: (modules/grub.sh:22): run\_and\_log\_cmd():

**URL:** <https://hub.mender.io/t/solved-mender-convert-failed-when-running-modules-grub-sh-22-run-and-log-cmd/5297>\
**Category:** General Discussions\
**Tags:** error, convert\
**Created:** [October 5, 2022, 4:10am UTC](https://hub.mender.io/t/solved-mender-convert-failed-when-running-modules-grub-sh-22-run-and-log-cmd/5297 "2022-10-05T04:10:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ak8893893](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/ak8893893/32/1746_2.png) [@ak8893893](https://hub.mender.io/u/ak8893893)\
**Post date:** [October 5, 2022, 4:10am UTC](https://hub.mender.io/t/solved-mender-convert-failed-when-running-modules-grub-sh-22-run-and-log-cmd/5297/1 "2022-10-05T04:10:20Z")

</div>

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

```auto
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.

```auto
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!.

---

<div class="post-metadata">

**Author:** ![ak8893893](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/ak8893893/32/1746_2.png) [@ak8893893](https://hub.mender.io/u/ak8893893)\
**Post date:** [October 5, 2022, 8:27am UTC](https://hub.mender.io/t/solved-mender-convert-failed-when-running-modules-grub-sh-22-run-and-log-cmd/5297/2 "2022-10-05T08:27:38Z")

</div>

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

It seems like a network issue.

---

<div class="post-metadata">

**Author:** ![schen](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@schen](https://hub.mender.io/u/schen)\
**Post date:** [August 29, 2023, 2:36am UTC](https://hub.mender.io/t/solved-mender-convert-failed-when-running-modules-grub-sh-22-run-and-log-cmd/5297/3 "2023-08-29T02:36:59Z")

</div>

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

```auto
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

```auto
$ 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

---

<div class="post-metadata">

**Author:** ![roborto1999](https://avatars.discourse-cdn.com/v4/letter/r/db5fbb/32.png) [@roborto1999](https://hub.mender.io/u/roborto1999)\
**Post date:** [April 15, 2025, 11:11am UTC](https://hub.mender.io/t/solved-mender-convert-failed-when-running-modules-grub-sh-22-run-and-log-cmd/5297/4 "2025-04-15T11:11:04Z")

</div>

Hello, did you fix this? I have this issue also.
