# Host \`{host}\` failed to handle message. No devices matches uplink

**URL:** <https://www.thethingsnetwork.org/forum/t/host-host-failed-to-handle-message-no-devices-matches-uplink/42757>\
**Category:** The Things Stack v3\
**Created:** [January 9, 2021, 2:35am UTC](https://www.thethingsnetwork.org/forum/t/host-host-failed-to-handle-message-no-devices-matches-uplink/42757 "2021-01-09T02:35:58Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![vulcanum\_engenharia](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/vulcanum_engenharia/32/25844_2.png) [@vulcanum\_engenharia](https://www.thethingsnetwork.org/forum/u/vulcanum_engenharia)\
**Post date:** [January 9, 2021, 2:35am UTC](https://www.thethingsnetwork.org/forum/t/host-host-failed-to-handle-message-no-devices-matches-uplink/42757/1 "2021-01-09T02:35:58Z")

</div>

I installed ttn stack v3 on my private server and got everything working, but when I receive something on the gateway, I get the following error:

Host `cluster` failed to handle message: No device matches uplink

I already created the application and the end device with matching eui, device addr, network key, app key… I don’t know what is wrong.  
Here’s the json with error… Maybe it helps.

],  
“data”: {  
“@type”: “[type.googleapis.com/ttn.lorawan.v3.ErrorDetails](http://type.googleapis.com/ttn.lorawan.v3.ErrorDetails)”,  
“namespace”: “pkg/gatewayserver”,  
“name”: “host\_handle”,  
“message\_format”: “host `{host}` failed to handle message”,  
“attributes”: {  
“host”: “cluster”  
},  
“cause”: {  
“namespace”: “pkg/networkserver”,  
“name”: “device\_not\_found”,  
“message\_format”: “device not found”,  
“correlation\_id”: “7bfcc498ceea4575b3cde530051ed318”,  
“cause”: {  
“namespace”: “pkg/networkserver/redis”,  
“name”: “no\_uplink\_match”,  
“message\_format”: “no device matches uplink”,  
“code”: 5  
},  
“code”: 5  
},  
“code”: 5  
},  
“correlation\_ids”: [  
“gs:conn:01EVH85VV7Y81Z2TEWC1RFKQ4F”,  
“gs:up:host:01EVH85WJYFYJXQNR6K21DNY0P”,  
“gs:uplink:01EVJFTJRAAWD6B0H2BWZWG0K5”  
],  
“origin”: “cc7df4ef1d13”,  
“visibility”: {  
“rights”: [  
“RIGHT\_GATEWAY\_TRAFFIC\_READ”  
]  
},  
“unique\_id”: “01EVJFTJRGNNXQ9SCW2JA9PA3R”  
}

---

<div class="post-metadata">

**Author:** ![cslorabox](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/cslorabox/32/35697_2.png) [@cslorabox](https://www.thethingsnetwork.org/forum/u/cslorabox)\
**Post date:** [January 9, 2021, 5:20am UTC](https://www.thethingsnetwork.org/forum/t/host-host-failed-to-handle-message-no-devices-matches-uplink/42757/2 "2021-01-09T05:20:17Z")

</div>

If you’re willing to burn a set of secrets, try using the online decoder on the raw packet received by the gateway and see if it _really_ matches the details you configured, or if something got mis-trasncribed or byte reversed.

Are you sure that’s even your traffic?

---

<div class="post-metadata">

**Author:** ![vulcanum\_engenharia](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/vulcanum_engenharia/32/25844_2.png) [@vulcanum\_engenharia](https://www.thethingsnetwork.org/forum/u/vulcanum_engenharia)\
**Post date:** [January 9, 2021, 11:58am UTC](https://www.thethingsnetwork.org/forum/t/host-host-failed-to-handle-message-no-devices-matches-uplink/42757/3 "2021-01-09T11:58:13Z")

</div>

Yeah, i’m sure…  
On the gateway log, I see the device address, wich is correct, but even with the application and end-device created, I’m getting these errors…  
If I simulate the uplink, it goes ok…

---

<div class="post-metadata">

**Author:** ![vulcanum\_engenharia](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/vulcanum_engenharia/32/25844_2.png) [@vulcanum\_engenharia](https://www.thethingsnetwork.org/forum/u/vulcanum_engenharia)\
**Post date:** [January 9, 2021, 12:02pm UTC](https://www.thethingsnetwork.org/forum/t/host-host-failed-to-handle-message-no-devices-matches-uplink/42757/4 "2021-01-09T12:02:16Z")

</div>

I’m in doubt with this “link” thing… This is in my application screen, and i’m leaving this network server address empty because the server is the same for everything… does have something to do with it?  
It says the application is linked, btw…

![image](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/8/d/8d990d44a157c2e2dd87fc5450595871228ed96c.png)

---

<div class="post-metadata">

**Author:** ![vulcanum\_engenharia](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/vulcanum_engenharia/32/25844_2.png) [@vulcanum\_engenharia](https://www.thethingsnetwork.org/forum/u/vulcanum_engenharia)\
**Post date:** [January 11, 2021, 11:03am UTC](https://www.thethingsnetwork.org/forum/t/host-host-failed-to-handle-message-no-devices-matches-uplink/42757/5 "2021-01-11T11:03:15Z")

</div>

Anyone knows what problem might be?

---

<div class="post-metadata">

**Author:** ![vulcanum\_engenharia](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/vulcanum_engenharia/32/25844_2.png) [@vulcanum\_engenharia](https://www.thethingsnetwork.org/forum/u/vulcanum_engenharia)\
**Post date:** [January 12, 2021, 12:15am UTC](https://www.thethingsnetwork.org/forum/t/host-host-failed-to-handle-message-no-devices-matches-uplink/42757/6 "2021-01-12T00:15:14Z")

</div>

Anyone?

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [January 12, 2021, 11:15am UTC](https://www.thethingsnetwork.org/forum/t/host-host-failed-to-handle-message-no-devices-matches-uplink/42757/7 "2021-01-12T11:15:57Z")

</div>

Paging @htdvisser for input - @vulcanum_engenharia, mostly it’s TTI staff who are the subject matter experts on the V3 stack but right now they will be busy getting ready for the conference.

---

<div class="post-metadata">

**Author:** ![vulcanum\_engenharia](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/vulcanum_engenharia/32/25844_2.png) [@vulcanum\_engenharia](https://www.thethingsnetwork.org/forum/u/vulcanum_engenharia)\
**Post date:** [January 12, 2021, 6:23pm UTC](https://www.thethingsnetwork.org/forum/t/host-host-failed-to-handle-message-no-devices-matches-uplink/42757/8 "2021-01-12T18:23:45Z")

</div>

I understand… I’ll be waiting, and meanwhile trying to make it work…

---

<div class="post-metadata">

**Author:** ![vulcanum\_engenharia](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/vulcanum_engenharia/32/25844_2.png) [@vulcanum\_engenharia](https://www.thethingsnetwork.org/forum/u/vulcanum_engenharia)\
**Post date:** [January 15, 2021, 11:15pm UTC](https://www.thethingsnetwork.org/forum/t/host-host-failed-to-handle-message-no-devices-matches-uplink/42757/9 "2021-01-15T23:15:16Z")

</div>

@htdvisser

---

<div class="post-metadata">

**Author:** ![htdvisser](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/htdvisser/32/45312_2.png) [@htdvisser](https://www.thethingsnetwork.org/forum/u/htdvisser)\
**Post date:** [January 18, 2021, 8:59am UTC](https://www.thethingsnetwork.org/forum/t/host-host-failed-to-handle-message-no-devices-matches-uplink/42757/10 "2021-01-18T08:59:09Z")

</div>

I’m afraid I can’t be of much help here. With LoRaWAN, matching an uplink to an device can fail at several points, and it’s often impossible to say what exactly went wrong.

At a high level, the matching process is as follows:

- Find all device registrations with the DevAddr that’s in the uplink. This can result in multiple device “candidates”, as DevAddrs are not unique.
- For each device registration, try to determine the most likely frame counter. The uplink message only contains half of the actual frame counter. Simply said: an uplink contains `xx00` instead of `1200`, and the network needs to “guess” what that `xx` is. Since the LoRaWAN specification dictates that frame counters can only increase, this may result in a wrong “guess” for ABP devices that reset frame counters.
- Using that (guessed) frame counter, the NwkSKey (and in case of LoRaWAN 1.1+ some more fields) the network computes the MIC (“signature”) it would expect for this uplink, given those fields. It compares this MIC to the MIC that’s actually in the message. If it matches, great! If it doesn’t match, it’s impossibly to say why.

* * *

In most cases, device matching failures occur with ABP devices, which is why we always recommend using OTAA. If you’re already using OTAA, try to make the device perform a new join procedure. If the join procedure succeeds, but subsequent uplinks fail, we’d need to take a closer look.

---

<div class="post-metadata">

**Author:** ![vulcanum\_engenharia](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/vulcanum_engenharia/32/25844_2.png) [@vulcanum\_engenharia](https://www.thethingsnetwork.org/forum/u/vulcanum_engenharia)\
**Post date:** [January 19, 2021, 12:06pm UTC](https://www.thethingsnetwork.org/forum/t/host-host-failed-to-handle-message-no-devices-matches-uplink/42757/11 "2021-01-19T12:06:37Z")

</div>

I understand…  
I’m going to try that. Thanks!

---

<div class="post-metadata">

**Author:** ![vulcanum\_engenharia](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/vulcanum_engenharia/32/25844_2.png) [@vulcanum\_engenharia](https://www.thethingsnetwork.org/forum/u/vulcanum_engenharia)\
**Post date:** [January 19, 2021, 1:01pm UTC](https://www.thethingsnetwork.org/forum/t/host-host-failed-to-handle-message-no-devices-matches-uplink/42757/12 "2021-01-19T13:01:19Z")

</div>

I’m doing the same configuration as I did on the public the things network… everything worked fine there… 😕

---

<div class="post-metadata">

**Author:** ![kersing](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/kersing/32/44777_2.png) [@kersing](https://www.thethingsnetwork.org/forum/u/kersing)\
**Post date:** [January 19, 2021, 1:28pm UTC](https://www.thethingsnetwork.org/forum/t/host-host-failed-to-handle-message-no-devices-matches-uplink/42757/13 "2021-01-19T13:28:13Z")

</div>

Have you selected the right MAC version for the node?

---

<div class="post-metadata">

**Author:** ![vulcanum\_engenharia](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/vulcanum_engenharia/32/25844_2.png) [@vulcanum\_engenharia](https://www.thethingsnetwork.org/forum/u/vulcanum_engenharia)\
**Post date:** [January 19, 2021, 1:36pm UTC](https://www.thethingsnetwork.org/forum/t/host-host-failed-to-handle-message-no-devices-matches-uplink/42757/14 "2021-01-19T13:36:18Z")

</div>

Yes, I even tried different ones, but didn’t work…

---

<div class="post-metadata">

**Author:** ![vulcanum\_engenharia](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/vulcanum_engenharia/32/25844_2.png) [@vulcanum\_engenharia](https://www.thethingsnetwork.org/forum/u/vulcanum_engenharia)\
**Post date:** [January 19, 2021, 2:25pm UTC](https://www.thethingsnetwork.org/forum/t/host-host-failed-to-handle-message-no-devices-matches-uplink/42757/15 "2021-01-19T14:25:31Z")

</div>

I’m using the exactly same configuration as on public ttn… Same device addr, same netkey, appkey…

---

<div class="post-metadata">

**Author:** ![system](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/6/2/6250ea44fd2b0d6259489e1a92748df681e1f970.png) [@system](https://www.thethingsnetwork.org/forum/u/system)\
**Post date:** [February 8, 2021, 2:36am UTC](https://www.thethingsnetwork.org/forum/t/host-host-failed-to-handle-message-no-devices-matches-uplink/42757/16 "2021-02-08T02:36:00Z")

</div>

This topic was automatically closed after 30 days. New replies are no longer allowed.
