Device fails to Join - Join Request/Join Accept seen, but device is never seen

I am trying to setup the Chirpstack v4 server for US915 region. In my setup, I have a GW simulator that uses a UDP packet forwarder that is talking to the Chirpstack GW broker. The broker is configured with the region prefix. The GW shows online. However my device is not getting registered.

I am trying to register a “Class A” device that supports OTAA. I see Join Request followed by Join Accept, but in the Chirpstack WUI, the device status Never seen.

Chirpstack log

Sep 20 17:49:08 chirpstack chirpstack[165300]: {"timestamp":"2023-09-20T21:49:08.296490Z","level":"INFO","fields":{"message":"Message received from gateway","region_config_id":"us915_0","topic":"us915_0/gateway/d29cf3b7965a2309/event/stats","qos":0,"json":true},"target":"chirpstack::gateway::backend::mqtt"}
Sep 20 17:49:08 chirpstack chirpstack[165300]: {"timestamp":"2023-09-20T21:49:08.298052Z","level":"INFO","fields":{"message":"Message received from gateway","region_config_id":"us915_0","topic":"us915_0/gateway/d29cf3b7965a2309/event/up","qos":0,"json":true},"target":"chirpstack::gateway::backend::mqtt"}
Sep 20 17:49:08 chirpstack chirpstack[165300]: {"timestamp":"2023-09-20T21:49:08.306447Z","level":"INFO","fields":{"message":"Gateway state and location updated","gateway_id":"d29cf3b7965a2309"},"target":"chirpstack::storage::gateway","span":{"gateway_id":"d29cf3b7965a2309","name":"stats"},"spans":[{"gateway_id":"d29cf3b7965a2309","name":"stats"}]}
Sep 20 17:49:08 chirpstack chirpstack[165300]: {"timestamp":"2023-09-20T21:49:08.308227Z","level":"INFO","fields":{"message":"Metrics saved","name":"gw:d29cf3b7965a2309","aggregation":"HOUR"},"target":"chirpstack::storage::metrics","span":{"gateway_id":"d29cf3b7965a2309","name":"stats"},"spans":[{"gateway_id":"d29cf3b7965a2309","name":"stats"}]}
Sep 20 17:49:08 chirpstack chirpstack[165300]: {"timestamp":"2023-09-20T21:49:08.310326Z","level":"INFO","fields":{"message":"Metrics saved","name":"gw:d29cf3b7965a2309","aggregation":"DAY"},"target":"chirpstack::storage::metrics","span":{"gateway_id":"d29cf3b7965a2309","name":"stats"},"spans":[{"gateway_id":"d29cf3b7965a2309","name":"stats"}]}
Sep 20 17:49:08 chirpstack chirpstack[165300]: {"timestamp":"2023-09-20T21:49:08.312576Z","level":"INFO","fields":{"message":"Metrics saved","name":"gw:d29cf3b7965a2309","aggregation":"MONTH"},"target":"chirpstack::storage::metrics","span":{"gateway_id":"d29cf3b7965a2309","name":"stats"},"spans":[{"gateway_id":"d29cf3b7965a2309","name":"stats"}]}
Sep 20 17:49:08 chirpstack chirpstack[165300]: {"timestamp":"2023-09-20T21:49:08.504311Z","level":"INFO","fields":{"message":"Uplink received","m_type":"JoinRequest"},"target":"chirpstack::uplink","span":{"deduplication_id":"770ffea5-9ac8-4c14-9516-1baa89373373","name":"up"},"spans":[{"deduplication_id":"770ffea5-9ac8-4c14-9516-1baa89373373","name":"up"}]}
Sep 20 17:49:08 chirpstack chirpstack[165300]: {"timestamp":"2023-09-20T21:49:08.504457Z","level":"DEBUG","fields":{"message":"Updating gateway meta-data for uplink frame-set"},"target":"chirpstack::uplink","span":{"deduplication_id":"770ffea5-9ac8-4c14-9516-1baa89373373","name":"up"},"spans":[{"deduplication_id":"770ffea5-9ac8-4c14-9516-1baa89373373","name":"up"}]}
Sep 20 17:49:08 chirpstack chirpstack[165300]: {"timestamp":"2023-09-20T21:49:08.509338Z","level":"DEBUG","fields":{"message":"Logging uplink frame to Redis Stream"},"target":"chirpstack::uplink","span":{"deduplication_id":"770ffea5-9ac8-4c14-9516-1baa89373373","name":"up"},"spans":[{"deduplication_id":"770ffea5-9ac8-4c14-9516-1baa89373373","name":"up"}]}
Sep 20 17:49:08 chirpstack chirpstack[165300]: {"timestamp":"2023-09-20T21:49:08.542312Z","level":"INFO","fields":{"message":"Device-nonce validated, join-nonce incremented and stored","dev_eui":"73bc6a425b714ce6","dev_nonce":9782},"target":"chirpstack::storage::device_keys","span":{"name":"join_request"},"spans":[{"deduplication_id":"770ffea5-9ac8-4c14-9516-1baa89373373","name":"up"},{"name":"join_request"}]}
Sep 20 17:49:08 chirpstack chirpstack[165300]: {"timestamp":"2023-09-20T21:49:08.545030Z","level":"INFO","fields":{"message"Device-session saved:"","dev_eui":"73bc6a425b714ce6","dev_addr":"01618d7f"},"target":"chirpstack::storage::device_session","span":{"name":"join_request"},"spans":[{"deduplication_id":"770ffea5-9ac8-4c14-9516-1baa89373373","name":"up"},{"name":"join_request"}]}
Sep 20 17:49:08 chirpstack chirpstack[165300]: {"timestamp":"2023-09-20T21:49:08.550098Z","level":"INFO","fields":{"message":"Device queue flushed","dev_eui":"73bc6a425b714ce6","count":0},"target":"chirpstack::storage::device_queue","span":{"name":"join_request"},"spans":[{"deduplication_id":"770ffea5-9ac8-4c14-9516-1baa89373373","name":"up"},{"name":"join_request"}]}
Sep 20 17:49:08 chirpstack chirpstack[165300]: {"timestamp":"2023-09-20T21:49:08.555903Z","level":"INFO","fields":{"message":"Enabled class updated","dev_eui":"73bc6a425b714ce6","enabled_class":"A"},"target":"chirpstack::storage::device","span":{"name":"join_request"},"spans":[{"deduplication_id":"770ffea5-9ac8-4c14-9516-1baa89373373","name":"up"},{"name":"join_request"}]}
Sep 20 17:49:08 chirpstack chirpstack[165300]: {"timestamp":"2023-09-20T21:49:08.567583Z","level":"INFO","fields":{"message":"Updated DevAddr","dev_eui":"73bc6a425b714ce6","dev_addr":"01618d7f"},"target":"chirpstack::storage::device","span":{"name":"join_request"},"spans":[{"deduplication_id":"770ffea5-9ac8-4c14-9516-1baa89373373","name":"up"},{"name":"join_request"}]}
Sep 20 17:49:08 chirpstack chirpstack[165300]: {"timestamp":"2023-09-20T21:49:08.572604Z","level":"INFO","fields":{"message":"Updated JoinEUI","dev_eui":"73bc6a425b714ce6","join_eui":"0000000000000000"},"target":"chirpstack::storage::device","span":{"name":"join_request"},"spans":[{"deduplication_id":"770ffea5-9ac8-4c14-9516-1baa89373373","name":"up"},{"name":"join_request"}]}
Sep 20 17:49:08 chirpstack chirpstack[165300]: {"timestamp":"2023-09-20T21:49:08.574085Z","level":"INFO","fields":{"message":"Downlink-frame saved","downlink_id":2472484309},"target":"chirpstack::storage::downlink_frame","span":{"name":"join_request"},"spans":[{"deduplication_id":"770ffea5-9ac8-4c14-9516-1baa89373373","name":"up"},{"name":"join_request"}]}
Sep 20 17:49:08 chirpstack chirpstack[165300]: {"timestamp":"2023-09-20T21:49:08.574558Z","level":"INFO","fields":{"message":"Sending downlink frame","gateway_id":"d29cf3b7965a2309","topic":"us915_0/gateway/d29cf3b7965a2309/command/down","json":true},"target":"chirpstack::gateway::backend::mqtt","span":{"name":"join_request"},"spans":[{"deduplication_id":"770ffea5-9ac8-4c14-9516-1baa89373373","name":"up"},{"name":"join_request"}]}
Sep 20 17:49:08 chirpstack chirpstack[165300]: {"timestamp":"2023-09-20T21:49:08.582667Z","level":"INFO","fields":{"message":"Publishing event","topic":"application/97fceaf0-9f7f-489c-bc9b-362ca15fe5e8/device/73bc6a425b714ce6/event/join"},"target":"chirpstack::integration::mqtt"}
Sep 20 17:49:11 chirpstack chirpstack[165300]: {"timestamp":"2023-09-20T21:49:11.305873Z","level":"INFO","fields":{"message":"Message received from gateway","region_config_id":"us915_0","topic":"us915_0/gateway/d29cf3b7965a2309/event/ack","qos":0,"json":true},"target":"chirpstack::gateway::backend::mqtt"}
Sep 20 17:49:11 chirpstack chirpstack[165300]: {"timestamp":"2023-09-20T21:49:11.307500Z","level":"INFO","fields":{"message":"Log downlink-frame for gateway","gateway_id":"d29cf3b7965a2309"},"target":"chirpstack::downlink::tx_ack"}
Sep 20 17:49:11 chirpstack chirpstack[165300]: {"timestamp":"2023-09-20T21:49:11.309513Z","level":"INFO","fields":{"message":"Log downlink-frame for device","device_eui":"73bc6a425b714ce6"},"target":"chirpstack::downlink::tx_ack"}

Log from the chirpstack-gateway-bridge

Sep 20 17:49:08 chirpstack chirpstack-gateway-bridge[167250]: {"event":"stats","level":"info","msg":"integration/mqtt: publishing event","qos":0,"time":"2023-09-20T17:49:08-04:00","topic":"us915_0/gateway/d29cf3b7965a2309/event/stats"}
Sep 20 17:49:08 chirpstack chirpstack-gateway-bridge[167250]: {"event":"up","level":"info","msg":"integration/mqtt: publishing event","qos":0,"time":"2023-09-20T17:49:08-04:00","topic":"us915_0/gateway/d29cf3b7965a2309/event/up","uplink_id":29706}
Sep 20 17:49:08 chirpstack chirpstack-gateway-bridge[167250]: {"level":"info","msg":"integration/mqtt: subscribing to topic","qos":0,"time":"2023-09-20T17:49:08-04:00","topic":"us915_0/gateway/d29cf3b7965a2309/command/#"}
Sep 20 17:49:08 chirpstack chirpstack-gateway-bridge[167250]: {"level":"warning","module":"mqtt","msg":"[store]    memorystore del: message 77 not found","time":"2023-09-20T17:49:08-04:00"}
Sep 20 17:49:08 chirpstack chirpstack-gateway-bridge[167250]: {"gateway_id":"d29cf3b7965a2309","level":"info","msg":"integration/mqtt: publishing state","qos":0,"state":"conn","time":"2023-09-20T17:49:08-04:00","topic":"gateway/d29cf3b7965a2309/state/conn"}
Sep 20 17:49:08 chirpstack chirpstack-gateway-bridge[167250]: {"downlink_id":2472484309,"gateway_id":"d29cf3b7965a2309","level":"info","msg":"integration/mqtt: downlink frame received","time":"2023-09-20T17:49:08-04:00"}
Sep 20 17:49:11 chirpstack chirpstack-gateway-bridge[167250]: {"event":"ack","level":"info","msg":"integration/mqtt: publishing event","qos":0,"time":"2023-09-20T17:49:11-04:00","topic":"us915_0/gateway/d29cf3b7965a2309/event/ack"}
Sep 20 17:50:43 chirpstack chirpstack-gateway-bridge[167250]: {"level":"info","msg":"integration/mqtt: unsubscribing from topic","time":"2023-09-20T17:50:43-04:00","topic":"us915_0/gateway/d29cf3b7965a2309/command/#"}
Sep 20 17:50:43 chirpstack chirpstack-gateway-bridge[167250]: {"level":"warning","module":"mqtt","msg":"[store]    memorystore del: message 78 not found","time":"2023-09-20T17:50:43-04:00"}
Sep 20 17:50:43 chirpstack chirpstack-gateway-bridge[167250]: {"gateway_id":"d29cf3b7965a2309","level":"info","msg":"integration/mqtt: publishing state","qos":0,"state":"conn","time":"2023-09-20T17:50:43-04:00","topic":"gateway/d29cf3b7965a2309/state/conn"}

The device uses the following class A config:

Data Rate offset: 0

RX2 settings:
Channel Frequency: 923300000

Any pointers on how to resolve this device registration issue would be helpful. I feel, I am missing some configuration.
Thanks.

make sure you put in the app key for the device, i forgot once and was pulling my hair out for an hour or so lol. I feel like it should on the same page as the app eui and join eui :sweat_smile:

Thank you @ccall48 . Yes, I am putting the app key and verified that it is correct. If the app key is wrong then I see errors in event logs.

Here is what I am seeing in the Application->device->LoRaWAN Frames tab.

another thing to check is it possible you’re too close or too far away from the gateway for the sensor to connect properly?
what type of RSSI are you seeing on the joins?

Thank you @ccall48

I am using simulator to connect via the Chirpstack Gateway Bridge. I see the following ERROS in the log:

Sep 21 19:20:31 chirpstack chirpstack[483711]: {"timestamp":"2023-09-21T23:20:31.342884Z","level":"ERROR","fields":{"message":"Deduplication error","error":"No channel found for frequency: 902300000, dr: 4"},"target":"chirpstack::uplink"}
Sep 21 19:21:19 chirpstack chirpstack[483711]: {"timestamp":"2023-09-21T23:21:19.394304Z","level":"ERROR","fields":{"message":"Handle join-request error","error":"Invalid DevNonce"},"target":"chirpstack::uplink::join","span":{"deduplication_id":"c8b3f644-c6f7-4b80-a524-d2e9b7af01f0","name":"up"},"spans":[{"deduplication_id":"c8b3f644-c6f7-4b80-a524-d2e9b7af01f0","name":"up"}]}

Which seems to indicate that either my GW Bridge is not configured correctly or the Chirpstack is not configured properly. I can reset the DevNonce but even though my Chirpstack is configured for all regions and Chirpstack Gateway Bridge configured for us915_0 region, I am getting this error.

Double check your gateway bridge is going to the right mqtt topic, also check your gateway is sending to the correct udp port for that gateway bridge.

default port of 1700 is for eu868 iirc, so if this is the case you will need to fix it or change it to suit your requirements.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.