Only 1 out of 3 packages sended to chirpstack

Hi everyone,

I have installed Chirpstack (on docker) on a CentOS 7 machine. On my gateways (currently 3 Lorix One gateways) I use the chirpstack gateway bridge (directly on my gateway) and forward my data to my MQTT server. This means that on my gateway under Bridge configuration > Integration > Server I put my MQTT server the rest are default values (Bridge configuration > Backend [semetech_dupo, 127.0.0.1] and Backend configuration > Server 127.0.01 and port 1700).

My current use case is that I have some devices that send messages every 2 minutes. I know 2 minutes is a lot but I only use it for testing purpose. I am also sure that I do not reach the duty cycle since before moving to Chirpstack I was using The Things Network and their it worked. However, what is weird is that only 1 out of 3 (so every 2 minutes) or 2 out of 3 (so every 4 minutes) packages seem to arrive on my network server. Did anyone face a similar issue already ?

I would check the packet forwarder logs and the gateway bridge logs on the gateway to see what the gateway is receiving/sending.

What I get quite often is

chirpstack-network-server_1      | time="2020-11-17T14:35:02Z" level=info msg="uplink: frame(s) collected" ctx_id=9993dac7-048f-4bd4-b009-ebcf428e7d1f mtype=UnconfirmedDataUp uplink_ids="[683dabb0-fff5-4b05-ad59-b07d5c6273b0]"
chirpstack-network-server_1      | time="2020-11-17T14:35:02Z" level=error msg="uplink: processing uplink frame error" ctx_id=9993dac7-048f-4bd4-b009-ebcf428e7d1f error="get device-session error: object does not exist"

Is it possible that the network server implies some kind of limit ? Cause I have the exact same behavior when using the gateway bridge on a gateway and when I use the UDP packet forwarder. When I use the bridge the data are forwarded to MQTT and then to chirpstack-ns, if I use the UDP packet forwarder the packages are forwarded to chirpstack-gb (on my docker container) and then to the network server. So the common point seem to be the network server.

My configuration:

[postgresql]
dsn="postgres://chirpstack_ns:chirpstack_ns@postgresql/chirpstack_ns?sslmode=disable"

[redis]
url="redis://redis:6379"

[network_server]
  net_id="000000"
  deduplication_delay="200ms"

  [network_server.network_settings]
    disable_adr=true
    [[network_server.network_settings.extra_channels]]
       frequency=867100000
       min_dr=0
       max_dr=5

    [[network_server.network_settings.extra_channels]]
      frequency=867300000
      min_dr=0
      max_dr=5

    [[network_server.network_settings.extra_channels]]
      frequency=867500000
      min_dr=0
      max_dr=5

    [[network_server.network_settings.extra_channels]]
      frequency=867700000
      min_dr=0
      max_dr=5

    [[network_server.network_settings.extra_channels]]
      frequency=867900000
      min_dr=0

[network_server.band]
    name="EU868"

 [network_server.api]
    bind="0.0.0.0:8000"
    ca_cert=""
    tls_cert=""
    tls_key=""

[network_server.gateway.backend.mqtt]
event_topic="gateway/+/event/+"
command_topic_template="gateway/{{ .GatewayID }}/command/{{ .CommandType }}"
username=""
password=""
max_reconnect_interval="1m0s"
qos=0
server="tcp://mosquitto:1883"

[join_server.default]
server="http://chirpstack-application-server:8003"

[geolocation_server]
server="chirpstack-geolocation-server:8005"

Are you sure that the channels configured on your gateway do match with the channels configured in the chirpstack-network-server.toml? Else the device might be sending uplinks on channels to which the gateway is not listening.

1 Like

HI @brocaar,

Thanks for your reply.

Quite sure. I am using a Lorix One Gateway with the OS 1.1.1 (Mont Fort) and I put the EU868 in the hardware settings.

When using chirpstack gateway bridge (on the gateway) I also put the values on the bridge. When I use the UDP packet forwarder I cannot configure this.

I am thinking that it is somehow related to this error message:

[35mchirpstack-network-server_1      |[0m time="2020-11-18T12:11:59Z" level=info msg="uplink: frame(s) collected" ctx_id=6fba703b-1f83-4304-9730-b8e3b593cdc9 mtype=UnconfirmedDataUp uplink_ids="[76e9d0ab-67ea-4222-a1ca-5c35e892a962]"
[35mchirpstack-network-server_1      |[0m time="2020-11-18T12:11:59Z" level=error msg="uplink: processing uplink frame error" ctx_id=6fba703b-1f83-4304-9730-b8e3b593cdc9 error="get device-session error: object does not exist"

The reason is that I get this error message quite often and the interval seem to match (2 minutes)

Another common info in the log is:

evel=info msg="pending mac-command block set" cid=NewChannelReq commands=3