Hi there, I am currently testing two gateways in a Gateway Mesh setup, one as a border and one as a relay.
When a new device is turned on and tries to join the Lora Network, when both gateways are near to the device and “Ignore Direct Uplinks” is disabled, the device is unable to join, with the error DevNonce has already been used
.
When “Ignore Direct Uplinks” is enabled, this problem does not surface, and the device is able to join as per normal.
Log from Chirpstack Docker service:
2025-06-05T21:07:45.371493Z TRACE chirpstack::gateway::backend::mqtt: MQTT event event=Incoming(Publish(Publish { dup: false, qos: AtMostOnce, retain: false, topic: b"au915/gateway/0016c001f15629fa/event/up", pkid: 0, payload: b"\n\xb8\x01@\\\x06\xf8\x01\0\x88[\x02\x9d\xb2\xf1n\xd7\xe0\x07\xf5\x8ej &+\xb1\x90\xef\x80+0\xf2C\xf6f\xea@\xc5/*c@\xe9i\x082\xef&h\xae\xcd\x08\x8e\xd9\x92 f:=\xfb*\xd7\x80\x87L\x7f<\x9b\xe6\xec^#\xa0\x0b\xf3;e\n\xb8\xc8\xb5\x83\xdd=\xf4\x9b\x85k\xcd\x80Zd\x1f-\xca\xa1\xc9\x14\xf7@\xd0\xff\xdf\x18\x02\xc3'\xdf\xec\xb8>\xd3w\xaf\xfd3\xee\trk\xf6\xbd*\xb3\x7f1{\xd5 \xc4\x82\0\x1e\xf8I\n\xc8c\xe0B\xbc>\xfcWM\xe6\x07H\xfb\xb46V\xddj~\xab\xce\x83\x89]\xd7\xac\x979s\n\xd9\xb18f*\xe6@\xc6A\xba\xdb1\x14\xd9\xdfM\x15w\xca\"2\"\x12\x08\x80\xe5\xcb\xb4\x03\x12\n\x1a\x08\x08\xc8\xd0\x07\x10\x07(\x01*O\n\x100016c001f15629fa\x10\xd7\xf1\xf3\x9d\x0b\x1a\x0c\x08\x89\xae\x88\xc2\x06\x10\xb7\x91\xf4\xd1\x02\"\x0c\x08\x9c\xb3\xb3\xab\x05\x10\xbf\xff\xe7\xd1\x020\xa3\xff\xff\xff\xff\xff\xff\xff\xff\x01=\0\0\x18A@\x02j\x04\xf2\xdf\x1e\xa3\x80\x01\x02", properties: None }))
2025-06-05T21:07:44.930828Z TRACE chirpstack::downlink::scheduler: class_b_c_scheduler_loop completed successfully
2025-06-05T21:07:44.930778Z TRACE chirpstack::downlink::scheduler: Got this number of devices with schedulable queue-items device_count=0
2025-06-05T21:07:44.925315Z TRACE chirpstack::downlink::scheduler: Getting devices that have schedulable queue-items
2025-06-05T21:07:44.925280Z TRACE chirpstack::downlink::scheduler: Starting class_b_c_scheduler_loop run
2025-06-05T21:07:44.885084Z TRACE chirpstack::downlink::scheduler: Multicast-group queue scheduler run completed successfully
2025-06-05T21:07:44.885035Z TRACE chirpstack::downlink::scheduler: Got this number of multicast-group queue items count=0
2025-06-05T21:07:44.880514Z TRACE chirpstack::downlink::scheduler: Getting schedulable multicast-group queue items
2025-06-05T21:07:44.880475Z TRACE chirpstack::downlink::scheduler: Starting multicast-group queue scheduler loop run
2025-06-05T21:07:44.728891Z TRACE chirpstack::integration::mqtt: MQTT event event=Outgoing(Publish(0))
2025-06-05T21:07:44.728045Z INFO chirpstack::integration::amqp: Publishing event routing_key=application.a0ffc665-675a-4176-9bac-4bcafe8f6e19.device.ac1f09fffe1a67b4.event.log
2025-06-05T21:07:44.727910Z INFO chirpstack::integration::mqtt: Publishing event topic=application/a0ffc665-675a-4176-9bac-4bcafe8f6e19/device/ac1f09fffe1a67b4/event/log
2025-06-05T21:07:44.727636Z TRACE chirpstack::integration::influxdb: Initializing InfluxDB integration
2025-06-05T21:07:44.721202Z ERROR up{deduplication_id=cf28c56e-438b-4ce7-bbcd-7c7a1fd7f647}: chirpstack::uplink::join: Handle join-request error error=Invalid DevNonce
2025-06-05T21:07:44.719875Z INFO up{deduplication_id=cf28c56e-438b-4ce7-bbcd-7c7a1fd7f647}:join_request{dev_eui="ac1f09fffe1a67b4"}: chirpstack::storage::metrics: Metrics saved name=device:ac1f09fffe1a67b4 aggregation=MONTH
2025-06-05T21:07:44.719829Z INFO up{deduplication_id=cf28c56e-438b-4ce7-bbcd-7c7a1fd7f647}:join_request{dev_eui="ac1f09fffe1a67b4"}: chirpstack::storage::metrics: Metrics saved name=device:ac1f09fffe1a67b4 aggregation=DAY
2025-06-05T21:07:44.719730Z INFO up{deduplication_id=cf28c56e-438b-4ce7-bbcd-7c7a1fd7f647}:join_request{dev_eui="ac1f09fffe1a67b4"}: chirpstack::storage::metrics: Metrics saved name=device:ac1f09fffe1a67b4 aggregation=HOUR
2025-06-05T21:07:44.717644Z TRACE up{deduplication_id=cf28c56e-438b-4ce7-bbcd-7c7a1fd7f647}:join_request{dev_eui="ac1f09fffe1a67b4"}: chirpstack::uplink::join: Validate dev-nonce and get device-keys
2025-06-05T21:07:44.717582Z TRACE up{deduplication_id=cf28c56e-438b-4ce7-bbcd-7c7a1fd7f647}:join_request{dev_eui="ac1f09fffe1a67b4"}: chirpstack::uplink::join: Setting random DevAddr
2025-06-05T21:07:44.716011Z TRACE up{deduplication_id=cf28c56e-438b-4ce7-bbcd-7c7a1fd7f647}:join_request{dev_eui="ac1f09fffe1a67b4"}: chirpstack::uplink::join: Logging uplink frame-set
2025-06-05T21:07:44.715975Z TRACE up{deduplication_id=cf28c56e-438b-4ce7-bbcd-7c7a1fd7f647}:join_request{dev_eui="ac1f09fffe1a67b4"}: chirpstack::uplink::join: Filtering rx_info by tenant_id
2025-06-05T21:07:44.715934Z TRACE up{deduplication_id=cf28c56e-438b-4ce7-bbcd-7c7a1fd7f647}:join_request{dev_eui="ac1f09fffe1a67b4"}: chirpstack::uplink::join: Validating region_config_id against device-profile
2025-06-05T21:07:44.714473Z TRACE up{deduplication_id=cf28c56e-438b-4ce7-bbcd-7c7a1fd7f647}:join_request{dev_eui="ac1f09fffe1a67b4"}: chirpstack::uplink::join: Getting device keys
2025-06-05T21:07:44.707669Z TRACE up{deduplication_id=cf28c56e-438b-4ce7-bbcd-7c7a1fd7f647}:join_request{dev_eui="ac1f09fffe1a67b4"}: chirpstack::uplink::join: Getting device
2025-06-05T21:07:44.707618Z TRACE up{deduplication_id=cf28c56e-438b-4ce7-bbcd-7c7a1fd7f647}:join_request: chirpstack::uplink::join: Getting JoinRequestPayload
2025-06-05T21:07:44.706231Z DEBUG up{deduplication_id=cf28c56e-438b-4ce7-bbcd-7c7a1fd7f647}: chirpstack::uplink: Logging uplink frame to Redis Stream
2025-06-05T21:07:44.704972Z DEBUG up{deduplication_id=cf28c56e-438b-4ce7-bbcd-7c7a1fd7f647}: chirpstack::uplink: Updating gateway meta-data for uplink frame-set
2025-06-05T21:07:44.704935Z INFO up{deduplication_id=cf28c56e-438b-4ce7-bbcd-7c7a1fd7f647}: chirpstack::uplink: Uplink received m_type=JoinRequest