# Mender distribution "not supported" - what triggers this response?

**URL:** <https://hub.mender.io/t/mender-distribution-not-supported-what-triggers-this-response/6956>\
**Category:** General Discussions\
**Tags:** yocto, dunfell, installation-script\
**Created:** [June 17, 2024, 12:59pm UTC](https://hub.mender.io/t/mender-distribution-not-supported-what-triggers-this-response/6956 "2024-06-17T12:59:06Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![BenH](https://avatars.discourse-cdn.com/v4/letter/b/8baadc/32.png) [@BenH](https://hub.mender.io/u/BenH)\
**Post date:** [June 17, 2024, 12:59pm UTC](https://hub.mender.io/t/mender-distribution-not-supported-what-triggers-this-response/6956/1 "2024-06-17T12:59:06Z")

</div>

I’m building the BeagleBoneBlack Mender Yocto as provided.  
I’ve had to update the Yocto to Dunfell. This builds and runs OK, but on contacting Mender with the supplied demo script, its gets rejected:  
“ERROR: your distribution (poky) is either not recognized or not supported.”

The branch I’m building is this:

> [@BeagleBone Black](https://hub.mender.io/t/beaglebone-black/83):
>
> The official [Mender documentation](https://docs.mender.io/) explains how Mender works. This is simply a board-specific complement to the official documentation. Board description BeagleBone Black is a low-cost, community-supported development platform for developers and hobbyists based on AM335x 1GHz ARM® Cortex-A8 [image] URL: [https://beagleboard.org/black](https://beagleboard.org/black) Wiki: [https://elinux.org/Beagleboard:BeagleBoneBlack](https://elinux.org/Beagleboard:BeagleBoneBlack) Test results BeagleBone Black is one of the official reference devices of Mender and is easy to get started …

Thanks in advance

Aborting.

---

<div class="post-metadata">

**Author:** ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)\
**Post date:** [June 17, 2024, 1:04pm UTC](https://hub.mender.io/t/mender-distribution-not-supported-what-triggers-this-response/6956/2 "2024-06-17T13:04:40Z")

</div>

Hi @BenH,

When using a Yocto-based build then the Mender Client is already installed and integrated in the image. The demo script is only for Debian-based images.  
So if you have the image running on the BBB, you should be able to use `mender setup` to connect the device to your Hosted Mender account.

Greets,  
Josef

---

<div class="post-metadata">

**Author:** ![BenH](https://avatars.discourse-cdn.com/v4/letter/b/8baadc/32.png) [@BenH](https://hub.mender.io/u/BenH)\
**Post date:** [June 17, 2024, 1:29pm UTC](https://hub.mender.io/t/mender-distribution-not-supported-what-triggers-this-response/6956/3 "2024-06-17T13:29:36Z")

</div>

HI Josef,  
Thanks for the quick response. I’m just trying that now.  
Thanks,  
Ben

---

<div class="post-metadata">

**Author:** ![BenH](https://avatars.discourse-cdn.com/v4/letter/b/8baadc/32.png) [@BenH](https://hub.mender.io/u/BenH)\
**Post date:** [June 17, 2024, 12:51pm UTC](https://hub.mender.io/t/mender-distribution-not-supported-what-triggers-this-response/6956/4 "2024-06-17T12:51:17Z")

</div>

EDIT by @TheYoctoJester: moved this over from other thread, as it is essentially a duplicate.

Old post, but I’ve created a BBB Mender Yocto which boots and runs. It contacts the Mender server which refuses it on account of an unknown disribution  
“ERROR: your distribution (poky) is either not recognized or not supported.  
Aborting.”  
Did you test your Dunfell build?  
I’v tried going back to Zeus, but that drags in Python3.9 and I get loads of failures in bitbakes. (once downgraded to 3.9 and adding diskutils).

---

<div class="post-metadata">

**Author:** ![BenH](https://avatars.discourse-cdn.com/v4/letter/b/8baadc/32.png) [@BenH](https://hub.mender.io/u/BenH)\
**Post date:** [June 17, 2024, 2:32pm UTC](https://hub.mender.io/t/mender-distribution-not-supported-what-triggers-this-response/6956/5 "2024-06-17T14:32:15Z")

</div>

Hi Josef,  
I used my github account as my login to [Mender.io](http://Mender.io) and the mender setup is rejecting my attempts to use the email address and/or the password.  
I’ve tried requesting a password reset but am not receiving an email.  
Is there a way to restart the mender login?  
Regards,  
Ben

---

<div class="post-metadata">

**Author:** ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)\
**Post date:** [June 17, 2024, 2:35pm UTC](https://hub.mender.io/t/mender-distribution-not-supported-what-triggers-this-response/6956/6 "2024-06-17T14:35:41Z")

</div>

@BenH if you are using a SSO provider such as GitHub, then the username/password flow is not available. You have two options:

- create a new Hosted Mender trial account using username/password
- use the organization tenant token flow, as described here [Installing | Mender documentation](https://docs.mender.io/client-installation/install-with-debian-package#configure-the-mender-client)

Greets,  
Josef

---

<div class="post-metadata">

**Author:** ![BenH](https://avatars.discourse-cdn.com/v4/letter/b/8baadc/32.png) [@BenH](https://hub.mender.io/u/BenH)\
**Post date:** [June 17, 2024, 2:40pm UTC](https://hub.mender.io/t/mender-distribution-not-supported-what-triggers-this-response/6956/7 "2024-06-17T14:40:59Z")

</div>

I did try the tenant-token but no luck yet.  
Is the device-type from an official list, or just the value you entered when generating the TenantToken in the Web GUI?

---

<div class="post-metadata">

**Author:** ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)\
**Post date:** [June 17, 2024, 2:44pm UTC](https://hub.mender.io/t/mender-distribution-not-supported-what-triggers-this-response/6956/8 "2024-06-17T14:44:08Z")

</div>

@BenH the device type is an arbitrary string that you can choose to identify the hardware type to your liking.

On a related note, when doing a Yocto build one usually does not follow the interactive authentication flow. By setting [`MENDER_TENANT_TOKEN`](https://docs.mender.io/operating-system-updates-yocto-project/variables#mender_tenant_token) according to the account, and eventually adding the `meta-mender-demo` layer for a shorter polling cycle, the image is ready for immediate onboarding.

Greets,  
Josef

---

<div class="post-metadata">

**Author:** ![BenH](https://avatars.discourse-cdn.com/v4/letter/b/8baadc/32.png) [@BenH](https://hub.mender.io/u/BenH)\
**Post date:** [June 17, 2024, 4:49pm UTC](https://hub.mender.io/t/mender-distribution-not-supported-what-triggers-this-response/6956/9 "2024-06-17T16:49:59Z")

</div>

I’ve created a new login with new email and password. This is rejected by the mender setup script every time.  
I’ll have a look at adding the tenant to the Yocto build but I was hoping to get a basic test going with the vanilla build.  
Is there a test I can run to check connectivity?  
When I have run the installation script it seems to be talking to the Mender server OK.

```auto
Connecting to get.mender.io (34.107.174.45:443)
wget: note: TLS certificate validation not implemented
Connecting to downloads.mender.io (18.164.68.77:443)
writing to stdout
- 100% | ***************************************************** | 22088 0:00:00 ETA
written to stdout

                          _
 _ _____  ______  __| |___ _ __
| '_ ` _ \ / _ \ '_ \ / _` |/ _ \ '__|
| | | | | | __/ | | | (_| |__/ |
|_| |_| |_|\ ___|_| |_|\__ ,_|\___|_|

Running the Mender installation script.

```

type or paste code here

```auto
type or paste code here

```

---

<div class="post-metadata">

**Author:** ![BenH](https://avatars.discourse-cdn.com/v4/letter/b/8baadc/32.png) [@BenH](https://hub.mender.io/u/BenH)\
**Post date:** [June 18, 2024, 9:49am UTC](https://hub.mender.io/t/mender-distribution-not-supported-what-triggers-this-response/6956/10 "2024-06-18T09:49:18Z")

</div>

This is the config:

```auto
root@beaglebone-yocto:~# cat /etc/mender/mender.conf
{
    "ArtifactVerifyKey": "",
    "HttpsClient": {
        "Certificate": "",
        "Key": "",
        "SSLEngine": ""
    },
    "Security": {
        "AuthPrivateKey": "",
        "SSLEngine": ""
    },
    "RootfsPartA": "/dev/mmcblk0p2",
    "RootfsPartB": "/dev/mmcblk0p3",
    "DeviceTypeFile": "/var/lib/mender/device_type",
    "DBus": {
        "Enabled": true
    },
    "UpdatePollIntervalSeconds": 5,
    "InventoryPollIntervalSeconds": 5,
    "SkipVerify": false,
    "RetryPollIntervalSeconds": 30,
    "StateScriptTimeoutSeconds": 0,
    "StateScriptRetryTimeoutSeconds": 0,
    "StateScriptRetryIntervalSeconds": 0,
    "ModuleTimeoutSeconds": 0,
    "ServerCertificate": "",
    "ServerURL": "",
    "UpdateLogPath": "",
    "TenantToken": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    "Servers": [
        {
            "ServerURL": "https://hosted.mender.io"
        }
    ]

```

Tenant blanked.

Should this be working?

> ps  
> 2039 root 0 IW [kworker/u2:2-ev]  
> 3110 root 868m S /usr/bin/mender daemon  
> 4052 root 0 IW [kworker/0:0-eve]

I’ve tried increasing the logging level but nothing is output to the file I specified (an empty file is created).

root@beaglebone-yocto:~# mender --version  
2.6.1 runtime: go1.14.15  
Does 2.6.1 still work?

---

<div class="post-metadata">

**Author:** ![BenH](https://avatars.discourse-cdn.com/v4/letter/b/8baadc/32.png) [@BenH](https://hub.mender.io/u/BenH)\
**Post date:** [June 18, 2024, 3:27pm UTC](https://hub.mender.io/t/mender-distribution-not-supported-what-triggers-this-response/6956/11 "2024-06-18T15:27:21Z")

</div>

OK. It’s now working by going straight to adding the Tenant Token to the Yocto build and the server IP address.  
It’s appeared in the dash board and I’ve done the demo deployment.  
Should be able to move on now.  
Thanks.

This is with Dunfell Yocto release.
