# Mender convert image not connecting to Mender host

**URL:** <https://hub.mender.io/t/mender-convert-image-not-connecting-to-mender-host/3019>\
**Category:** General Discussions\
**Created:** [December 21, 2020, 10:19pm UTC](https://hub.mender.io/t/mender-convert-image-not-connecting-to-mender-host/3019 "2020-12-21T22:19:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rnehrbossc](https://avatars.discourse-cdn.com/v4/letter/r/13edae/32.png) [@rnehrbossc](https://hub.mender.io/u/rnehrbossc)\
**Post date:** [December 21, 2020, 10:19pm UTC](https://hub.mender.io/t/mender-convert-image-not-connecting-to-mender-host/3019/1 "2020-12-21T22:19:43Z")

</div>

Hi there,

I am using mender convert on a RPI0w image. And on booting it doesn’t successfully connect to mender host or show up as a “pending” device.

mender-client journal gives the below output, additionally, the mender.conf files seems to be empty. From what I understand, the host url should be in this file, but it is not. Any idea what could be causing that?

Dec 21 21:16:39 raspberrypi mender[562]: time=“2020-12-21T21:16:39Z” level=info msg=“State transition: authorize-wait [Idle] -\> authorize [Sync]”  
Dec 21 21:16:40 raspberrypi mender[562]: time=“2020-12-21T21:16:40Z” level=error msg="Failure occurred while executing authorization request: &url.Error{Op:“Post”, URL:"https:///api/devices/v1/authenticati  
Dec 21 21:16:40 raspberrypi mender[562]: time=“2020-12-21T21:16:40Z” level=error msg="Failure occurred while executing authorization request: &url.Error{Op:“Post”, URL:"https:///api/devices/v1/authenticati  
Dec 21 21:16:40 raspberrypi mender[562]: time=“2020-12-21T21:16:40Z” level=error msg=“Authorization request error: http: no Host in request URL”  
Dec 21 21:16:40 raspberrypi mender[562]: time=“2020-12-21T21:16:40Z” level=error msg="Authorize failed: transient error: authorization request failed: generic error occurred while executing authorization requ  
Dec 21 21:16:40 raspberrypi mender[562]: time=“2020-12-21T21:16:40Z” level=info msg=“State transition: authorize [Sync] -\> authorize-wait [Idle]”  
Dec 21 21:16:40 raspberrypi mender[562]: time=“2020-12-21T21:16:40Z” level=warning msg=“RetryPollIntervalSeconds is not defined”  
Dec 21 21:16:40 raspberrypi mender[562]: time=“2020-12-21T21:16:40Z” level=error msg=“Authorization request error: http: no Host in request URL”  
Dec 21 21:16:40 raspberrypi mender[562]: time=“2020-12-21T21:16:40Z” level=error msg="Authorize failed: transient error: authorization request failed: generic error occurred while executing authorization requ  
Dec 21 21:16:40 raspberrypi mender[562]: time=“2020-12-21T21:16:40Z” level=warning msg=“RetryPollIntervalSeconds is not defined”  
Dec 21 21:21:39 raspberrypi mender[562]: time=“2020-12-21T21:21:39Z” level=info msg=“State transition: authorize-wait [Idle] -\> authorize [Sync]”  
Dec 21 21:21:40 raspberrypi mender[562]: time=“2020-12-21T21:21:40Z” level=error msg="Failure occurred while executing authorization request: &url.Error{Op:“Post”, URL:"https:///api/devices/v1/authenticati  
Dec 21 21:21:40 raspberrypi mender[562]: time=“2020-12-21T21:21:40Z” level=error msg="Failure occurred while executing authorization request: &url.Error{Op:“Post”, URL:"https:///api/devices/v1/authenticati  
Dec 21 21:21:40 raspberrypi mender[562]: time=“2020-12-21T21:21:40Z” level=error msg=“Authorization request error: http: no Host in request URL”  
Dec 21 21:21:40 raspberrypi mender[562]: time=“2020-12-21T21:21:40Z” level=error msg=“Authorization request error: http: no Host in request URL”  
Dec 21 21:21:40 raspberrypi mender[562]: time=“2020-12-21T21:21:40Z” level=error msg="Authorize failed: transient error: authorization request failed: generic error occurred while executing authorization requ  
Dec 21 21:21:40 raspberrypi mender[562]: time=“2020-12-21T21:21:40Z” level=info msg=“State transition: authorize [Sync] -\> authorize-wait [Idle]”  
Dec 21 21:21:40 raspberrypi mender[562]: time=“2020-12-21T21:21:40Z” level=warning msg=“RetryPollIntervalSeconds is not defined”  
Dec 21 21:21:40 raspberrypi mender[562]: time=“2020-12-21T21:21:40Z” level=error msg="Authorize failed: transient error: authorization request failed: generic error occurred while executing authorization requ  
Dec 21 21:21:40 raspberrypi mender[562]: time=“2020-12-21T21:21:40Z” level=warning msg=“RetryPollIntervalSeconds is not defined”  
Dec 21 21:26:39 raspberrypi mender[562]: time=“2020-12-21T21:26:39Z” level=info msg=“State transition: authorize-wait [Idle] -\> authorize [Sync]”  
Dec 21 21:26:40 raspberrypi mender[562]: time=“2020-12-21T21:26:40Z” level=error msg="Failure occurred while executing authorization request: &url.Error{Op:“Post”, URL:"https:///api/devices/v1/authenticati  
Dec 21 21:26:40 raspberrypi mender[562]: time=“2020-12-21T21:26:40Z” level=error msg="Failure occurred while executing authorization request: &url.Error{Op:“Post”, URL:"https:///api/devices/v1/authenticati  
Dec 21 21:26:40 raspberrypi mender[562]: time=“2020-12-21T21:26:40Z” level=error msg=“Authorization request error: http: no Host in request URL”  
Dec 21 21:26:40 raspberrypi mender[562]: time=“2020-12-21T21:26:40Z” level=error msg="Authorize failed: transient error: authorization request failed: generic error occurred while executing authorization requ  
Dec 21 21:26:40 raspberrypi mender[562]: time=“2020-12-21T21:26:40Z” level=info msg=“State transition: authorize [Sync] -\> authorize-wait [Idle]”  
Dec 21 21:26:40 raspberrypi mender[562]: time=“2020-12-21T21:26:40Z” level=error msg=“Authorization request error: http: no Host in request URL”  
Dec 21 21:26:40 raspberrypi mender[562]: time=“2020-12-21T21:26:40Z” level=warning msg=“RetryPollIntervalSeconds is not defined”  
Dec 21 21:26:40 raspberrypi mender[562]: time=“2020-12-21T21:26:40Z” level=error msg="Authorize failed: transient error: authorization request failed: generic error occurred while executing authorization requ  
Dec 21 21:26:40 raspberrypi mender[562]: time=“2020-12-21T21:26:40Z” level=warning msg=“RetryPollIntervalSeconds is not defined”  
Dec 21 21:31:39 raspberrypi mender[562]: time=“2020-12-21T21:31:39Z” level=info msg=“State transition: authorize-wait [Idle] -\> authorize [Sync]”  
Dec 21 21:31:40 raspberrypi mender[562]: time=“2020-12-21T21:31:40Z” level=error msg="Failure occurred while executing authorization request: &url.Error{Op:“Post”, URL:"https:///api/devices/v1/authenticati  
Dec 21 21:31:40 raspberrypi mender[562]: time=“2020-12-21T21:31:40Z” level=error msg="Failure occurred while executing authorization request: &url.Error{Op:“Post”, URL:"https:///api/devices/v1/authenticati  
Dec 21 21:31:40 raspberrypi mender[562]: time=“2020-12-21T21:31:40Z” level=error msg=“Authorization request error: http: no Host in request URL”  
Dec 21 21:31:40 raspberrypi mender[562]: time=“2020-12-21T21:31:40Z” level=error msg=“Authorization request error: http: no Host in request URL”  
Dec 21 21:31:40 raspberrypi mender[562]: time=“2020-12-21T21:31:40Z” level=error msg="Authorize failed: transient error: authorization request failed: generic error occurred while executing authorization requ  
Dec 21 21:31:40 raspberrypi mender[562]: time=“2020-12-21T21:31:40Z” level=info msg=“State transition: authorize [Sync] -\> authorize-wait [Idle]”  
Dec 21 21:31:40 raspberrypi mender[562]: time=“2020-12-21T21:31:40Z” level=warning msg=“RetryPollIntervalSeconds is not defined”  
Dec 21 21:31:40 raspberrypi mender[562]: time=“2020-12-21T21:31:40Z” level=error msg="Authorize failed: transient error: authorization request failed: generic error occurred while executing authorization requ  
Dec 21 21:31:40 raspberrypi mender[562]: time=“2020-12-21T21:31:40Z” level=warning msg=“RetryPollIntervalSeconds is not defined”  
Dec 21 21:36:39 raspberrypi mender[562]: time=“2020-12-21T21:36:39Z” level=info msg=“State transition: authorize-wait [Idle] -\> authorize [Sync]”  
Dec 21 21:36:40 raspberrypi mender[562]: time=“2020-12-21T21:36:40Z” level=error msg="Failure occurred while executing authorization request: &url.Error{Op:“Post”, URL:"https:///api/devices/v1/authenticati  
Dec 21 21:36:40 raspberrypi mender[562]: time=“2020-12-21T21:36:40Z” level=error msg="Failure occurred while executing authorization request: &url.Error{Op:“Post”, URL:"https:///api/devices/v1/authenticati  
Dec 21 21:36:40 raspberrypi mender[562]: time=“2020-12-21T21:36:40Z” level=error msg=“Authorization request error: http: no Host in request URL”  
Dec 21 21:36:40 raspberrypi mender[562]: time=“2020-12-21T21:36:40Z” level=error msg="Authorize failed: transient error: authorization request failed: generic error occurred while executing authorization requ  
Dec 21 21:36:40 raspberrypi mender[562]: time=“2020-12-21T21:36:40Z” level=info msg=“State transition: authorize [Sync] -\> authorize-wait [Idle]”

---

<div class="post-metadata">

**Author:** ![dellgreen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/dellgreen/32/85_2.png) [@dellgreen](https://hub.mender.io/u/dellgreen)\
**Post date:** [December 22, 2020, 12:12am UTC](https://hub.mender.io/t/mender-convert-image-not-connecting-to-mender-host/3019/2 "2020-12-22T00:12:08Z")

</div>

> [@rnehrbossc](#):
>
> “Authorization request error: http: no Host in request URL

I would check your mender convert configuration as your Mender host Url is missing the hostname

---

<div class="post-metadata">

**Author:** ![rnehrbossc](https://avatars.discourse-cdn.com/v4/letter/r/13edae/32.png) [@rnehrbossc](https://hub.mender.io/u/rnehrbossc)\
**Post date:** [December 23, 2020, 1:21am UTC](https://hub.mender.io/t/mender-convert-image-not-connecting-to-mender-host/3019/3 "2020-12-23T01:21:53Z")

</div>

Thanks for responding so quickly. My mender convert config file that I am using is below. I tried it both with and without the MENDER\_SERVER\_URL variable set. My

RASPBERRYPI\_CONFIG=“raspberrypi0w”\*  
RASPBERRYPI\_KERNEL\_IMAGE=“kernel.img”\*  
MENDER\_KERNEL\_IMAGETYPE=zImage\*  
MENDER\_DEVICE\_TYPE=“raspberrypi0w”\*  
MENDER\_STORAGE\_TOTAL\_SIZE\_MB=16000\*  
MENDER\_SERVER\_URL=https://hosted.mender.io\*

source configs/raspberrypi\_config

My mender.conf file in the device iteslf only has the following inside:

{  
“RootfsPartA”: “/dev/mmcblk0p2”,  
“RootfsPartB”: “/dev/mmcvlk0p3”  
}

It seems to me that this should have much more, including the mender host url. Any idea why this is not being generated/how to fix?

And I am using the following commands for the convert:

./scripts/bootstrap-rootfs-overlay-hosted-server.sh   
–output-dir ${PWD}/deploy   
–tenant-token _token here_

```
MENDER_ARTIFACT_NAME=host-fixed ./docker-mender-convert \
--disk-image input/menderize_image.img \
--config configs/raspberrypi0w_config \
```

---

<div class="post-metadata">

**Author:** ![dellgreen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/dellgreen/32/85_2.png) [@dellgreen](https://hub.mender.io/u/dellgreen)\
**Post date:** [December 23, 2020, 11:57am UTC](https://hub.mender.io/t/mender-convert-image-not-connecting-to-mender-host/3019/4 "2020-12-23T11:57:27Z")

</div>

wrap quotes around the url, and why are they stars at the end of your key value pairs? if these are actually in your config file and not just an artifact of creating the forum posting then i believe they will be interpreted as glob patterns when the config file is source’d

---

<div class="post-metadata">

**Author:** ![rnehrbossc](https://avatars.discourse-cdn.com/v4/letter/r/13edae/32.png) [@rnehrbossc](https://hub.mender.io/u/rnehrbossc)\
**Post date:** [December 23, 2020, 7:28pm UTC](https://hub.mender.io/t/mender-convert-image-not-connecting-to-mender-host/3019/5 "2020-12-23T19:28:50Z")

</div>

Yep, the stars were just an artifact of posting, they are not in the config file. I retried the conversion with quotes around the host url and got the same result unfortunately.

Am I potentially using the wrong command when setting the parameters?

./scripts/bootstrap-rootfs-overlay-hosted-server.sh

This is what was in the documentation, but I think I don’t have a good grasp of what it does. Should this be modified.

Beyond that, any thoughts about what could be happening? It’s very strange. Are there maybe two different config files I need to modify?

---

<div class="post-metadata">

**Author:** ![dellgreen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/dellgreen/32/85_2.png) [@dellgreen](https://hub.mender.io/u/dellgreen)\
**Post date:** [December 23, 2020, 11:43pm UTC](https://hub.mender.io/t/mender-convert-image-not-connecting-to-mender-host/3019/6 "2020-12-23T23:43:11Z")

</div>

looks like MENDER\_SERVER\_URL isnt a supported variable with mender convert, take a look at the docs as it look like you need to create a custom rootfs overlay using the scripts supplied in the scripts folder in mender-convert folder to configure the mender client.

> **[mendersoftware/mender-convert - Using Mender Professional](https://github.com/mendersoftware/mender-convert#using-mender-professional)**
>
> An easy way to integrate the Mender client into an existing image
