# Client is not being detected by mender Server

**URL:** <https://hub.mender.io/t/client-is-not-being-detected-by-mender-server/4401>\
**Category:** General Discussions\
**Tags:** mender-client, raspberry-pi-4\
**Created:** [December 11, 2021, 4:53pm UTC](https://hub.mender.io/t/client-is-not-being-detected-by-mender-server/4401 "2021-12-11T16:53:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![matchsp](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/matchsp/32/1402_2.png) [@matchsp](https://hub.mender.io/u/matchsp)\
**Post date:** [December 11, 2021, 4:53pm UTC](https://hub.mender.io/t/client-is-not-being-detected-by-mender-server/4401/1 "2021-12-11T16:53:52Z")

</div>

Hi. I’m experiencing problems with the installation of the mender clinet. I installed mender server following this guide `https://docs.mender.io/3.1/server-installation` then I prepared the raspberrypi 4 following this instructions `https://docs.mender.io/3.1/get-started/preparation/prepare-a-raspberry-pi-device`

After that I paste in the client the command generated by my mender server:

```auto
wget -q -O- https://get.mender.io | sudo bash -s -- --demo -- --quiet --device-type "raspberrypi4" --demo --server-ip "my.server.ip.address"

```

Checking the logs in the client

```auto
-- Logs begin at Thu 2019-02-14 11:11:59 CET. --
Dez 11 17:16:12 MenderJC mender[4782]: time="2021-12-11T17:16:12+01:00" level=error msg="Authorize failed: transient error: authorization request failed: transient error: authorization request failed: Unknown url.Error type: Host validation error"
Dez 11 17:16:12 MenderJC mender[4782]: time="2021-12-11T17:16:12+01:00" level=error msg="Authorize failed: transient error: authorization request failed: transient error: authorization request failed: Unknown url.Error type: Host validation error"
Dez 11 17:16:12 MenderJC mender[4782]: time="2021-12-11T17:16:12+01:00" level=info msg="State transition: authorize [Sync] -> authorize-wait [Idle]"
Dez 11 17:16:42 MenderJC mender[4782]: time="2021-12-11T17:16:42+01:00" level=info msg="State transition: authorize-wait [Idle] -> authorize [Sync]"
Dez 11 17:16:42 MenderJC mender[4782]: using interface /sys/class/net/eth0
Dez 11 17:16:42 MenderJC mender[4782]: time="2021-12-11T17:16:42+01:00" level=error msg="Failure occurred while executing authorization request: Method: Post, URL: https://docker.mender.io/api/devices/v1/authentication/auth_requests"
Dez 11 17:16:42 MenderJC mender[4782]: time="2021-12-11T17:16:42+01:00" level=error msg="Failure occurred while executing authorization request: Method: Post, URL: https://docker.mender.io/api/devices/v1/authentication/auth_requests"
Dez 11 17:16:42 MenderJC mender[4782]: time="2021-12-11T17:16:42+01:00" level=error msg="Authorize failed: transient error: authorization request failed: transient error: authorization request failed: Unknown url.Error type: Host validation error"

```

the mender.config looks like this:

```auto
{
    "HttpsClient": {},
    "Security": {},
    "RootfsPartA": "/dev/mmcblk0p2",
    "RootfsPartB": "/dev/mmcblk0p3",
    "DeviceTypeFile": "/var/lib/mender/device_type",
    "DBus": {
        "Enabled": true
    },
    "UpdateControlMapExpirationTimeSeconds": 90,
    "UpdateControlMapBootExpirationTimeSeconds": 45,
    "UpdatePollIntervalSeconds": 5,
    "InventoryPollIntervalSeconds": 5,
    "RetryPollIntervalSeconds": 30,
    "ServerCertificate": "/usr/share/doc/mender-client/examples/demo.crt",
    "Servers": [
        {
            "ServerURL": "https://docker.mender.io"
        }
    ]
}

```

after that I have also tried replacing `"ServerCertificate": "/usr/share/doc/mender-client/examples/demo.crt"` with the certificate generated by the server having a final config `"ServerCertificate": "/usr/share/doc/mender-client/examples/cert.crt"`

Any help would be really appreciate it

by the way, at the time I’m posting this the mender docu site is not available: “502 bad gateway”

---

<div class="post-metadata">

**Author:** ![oleorhagen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/oleorhagen/32/297_2.png) [@oleorhagen](https://hub.mender.io/u/oleorhagen)\
**Post date:** [December 13, 2021, 7:56am UTC](https://hub.mender.io/t/client-is-not-being-detected-by-mender-server/4401/2 "2021-12-13T07:56:26Z")

</div>

> [@matchsp](#):
>
> by the way, at the time I’m posting this the mender docu site is not available: “502 bad gateway”

Thanks, seems to be working again now however 🙂

Just to start out, the server and the client are run on separate machines and networks?

---

<div class="post-metadata">

**Author:** ![matchsp](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/matchsp/32/1402_2.png) [@matchsp](https://hub.mender.io/u/matchsp)\
**Post date:** [December 13, 2021, 7:59am UTC](https://hub.mender.io/t/client-is-not-being-detected-by-mender-server/4401/3 "2021-12-13T07:59:26Z")

</div>

Hi,

Yes, the client and server are running in different networks. The server runs on DigitalOcean and the client on a raspberrypi 4 with the mender image

---

<div class="post-metadata">

**Author:** ![oleorhagen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/oleorhagen/32/297_2.png) [@oleorhagen](https://hub.mender.io/u/oleorhagen)\
**Post date:** [December 14, 2021, 8:03am UTC](https://hub.mender.io/t/client-is-not-being-detected-by-mender-server/4401/4 "2021-12-14T08:03:16Z")

</div>

> [@matchsp](#):
>
> `"ServerURL": "https://docker.mender.io"`

Then how is the client resolving this domain name?
