Gateway not sending data

I have been testing the server for quite some time now. Recently, I notice that gateway does not send anything for some time and needs restart to get connected to server.
Also, I do not receive stats of gateway as I have configured it to send stats at every 30 secs.
I tried checking into logs but couldn’t find anything. Do you have any clue what might be wrong here or if I am missing something?

Do you mean you restarted:

  1. the packet-forwarder?
  2. the packet-forwarder and LoRa Gateway Bridge?

Could you share the LoRa Gateway Bridge version you’re using?
Could you share your packet-forwarder + LoRa Gateway Bridge logs?

I mean restarting the packet forwarder solves the problem.
LoraGateway Bridge - version 2.1.5

Lora Packet Forwarder -

    {
       "SX1301_conf": {        "lbt_cfg": {
           "enable": false,
           "rssi_target": -80,
           
           "sx127x_rssi_offset": -4
       },
       "antenna_gain": 0,
       "lorawan_public": true,
       "clksrc": 0,

       "radio_0": {
           "enable": true,
           "type": "SX1257",
           "freq": 865500000,
           "rssi_offset": -166.0,
           "tx_enable": true,
           "tx_notch_freq": 129000,
           "tx_freq_min": 863000000,
           "tx_freq_max": 870000000
       },
       "radio_1": {
           "enable": true,
           "type": "SX1257",
           "freq": 865985000,
           "rssi_offset": -166.0,
           "tx_enable": false
       },
       "chan_multiSF_0": {
           "enable": true,
           "radio": 0,
           "if": -437000
       },
       "chan_multiSF_1": {
           "enable": true,
           "radio": 0,
           "if": -97000
       },
       "chan_multiSF_2": {
           "enable": true,
           "radio": 1,
           "if": 0

       },
       "chan_multiSF_3": {
           "enable": true,
           "radio": 1,
           "if": 0,
           "bandwidth": 250000,
           "spread_factor": 7

       },
       "chan_Lora_std": {
           "enable": true,
           "radio": 0,
           "if": 1050000,
           "bandwidth": 125000,
           "spread_factor": 8
       },
       "chan_FSK": {
           "enable": true,
           "radio": 1,
           "if": 300000,
           "bandwidth": 125000,
           "datarate": 50000
       }
       },

       "gateway_conf": {
       "gateway_ID": "00800000A00000A8",
       "server_address": "13.126.17.100",
       "serv_port_up": 1700,
       "serv_port_down": 1700,
       "keepalive_interval": 10,
       "stat_interval": 30,
       "push_timeout_ms": 100,
       "forward_crc_valid": true,
       "forward_crc_error": false,
       "forward_crc_disabled": false
       }
    }

When you need to restart the packet-forwarder to make things work again, I’m not sure if the issue is related to the LoRa Gateway Bridge. It could be related to a firewall or NAT between your gateway and the LoRa Gateway Bridge. The packet-forwarder UDP protocol is prone to these issues as there is no “persistent connection” and UDP packets might get blocked.

You could try installing LoRa Gateway Bridge on your server. Then packet-forwarder - LoRa Gateway Bridge UDP communication is on localhost and LoRa Gateway Bridge to your MQTT broker uses TCP.

We are already running LoRa Gateway Bridge on a server. But then how packet-forwarder - LoRa Gateway Bridge communicate on localhost through UDP.

Yes, I understand that your gateway is running on a server, what I recommend you to do is to install the LoRa Gateway Bridge on your gateway itself. That way you don’t have to deal with any firewall or NAT related issues because of the UDP protocol.