Gateway/mqtt: tx_info must not be nil

I am using gateway bridge docker container chirpstack/chirpstack-gateway-bridge:4.0 with LoRaBasicsStation.

When a join request arrives from a device, it is being sent to MQTT:

time="2023-01-04T23:25:40.547079015Z" level=debug msg="backend/basicstation: message received" gateway_id=0242acfffe1f0003 message="{\"msgtype\":\"jreq\",\"MHdr\":0,\"JoinEui\":\"BE-7A-00-00-00-00-14-E3\",\"DevEui\":\"E6-60-CC-C1-4B-48-22-31\",\"DevNonce\":9646,\"MIC\":642779200,\"RefTime\":0.000000,\"DR\":0,\"Freq\":909900000,\"upinfo\":{\"rctx\":0,\"xtime\":60517120844501250,\"gpstime\":0,\"fts\":-1,\"rssi\":-53,\"snr\":13.25,\"rxtime\":1672874740.546505}}"
time="2023-01-04T23:25:40.547627844Z" level=info msg="backend/basicstation: join-request received" gateway_id=0242acfffe1f0003 uplink_id=938678213
time="2023-01-04T23:25:40.548067101Z" level=info msg="integration/mqtt: publishing event" event=up qos=0 topic=gateway/0242acfffe1f0003/event/up uplink_id=938678213
time="2023-01-04T23:25:40.548215341Z" level=debug msg="[client]   enter Publish" module=mqtt
time="2023-01-04T23:25:40.548420284Z" level=debug msg="[client]   sending publish message, topic: gateway/0242acfffe1f0003/event/up" module=mqtt
time="2023-01-04T23:25:40.54865719Z" level=debug msg="[net]      obound msg to write 0" module=mqtt
time="2023-01-04T23:25:40.549076631Z" level=debug msg="[net]      obound wrote msg, id: 0" module=mqtt
time="2023-01-04T23:25:40.549261241Z" level=debug msg="[net]      outgoing waiting for an outbound message" module=mqtt

but the network server (docker container chirpstack/chirpstack-network-server:latest) does not like the contents of the MQTT payload:

time="2023-01-04T23:25:40.601400855Z" level=error msg="gateway/mqtt: tx_info must not be nil" data_base64="ChcA4xQAAAAAer4xIkhLwcxg5q4lQAhQJiISCODx77EDEgoaCAjI0AcQCigBKkIKEDAyNDJhY2ZmZmUxZjAwMDMQxa/MvwMaBgj0ldidBjDL//////////8BPQAAVEFqEAAAAAAAAAAAANcAADLEEQI="

The decoded data is

0a1700e314000000007abe3122484bc1cc60e6ae2540085026221208e0f1efb103120a1a0808c8d007100a28012a420a103032343261636666666531663030303310c5afccbf031a0608f495d89d0630cbffffffffffffffff013d000054416a10000000000000000000d7000032c41102

Oh I followed https://www.chirpstack.io/project/, which I just discovered is for chirpstack v3.
So I am running a v3 network server and a v4 gateway bridge, which explains this issue.

1 Like