Zeroed values on stats_id and gateway_id on zeromq betwwen gateway-bridge and concentratord

 chirpstack-concentratord  2022-08-05 14:20:00,670 INFO [libconcentratord::events] Publishing stats event, rx_received: 1, rx_received_ok: 1, tx_received: 0, tx_emitted: 0
 chirpstack-gateway-bridge  INFO[0021] backend/concentratord: stats event received   stats_id=00000000-0000-0000-0000-000000000000
 chirpstack-gateway-bridge  INFO[0021] integration/mqtt: publishing event            event=stats qos=0 stats_id=00000000-0000-0000-0000-000000000000 topic=gateway/0000000000000000/event/stats
 chirpstack-gateway-bridge  DEBU[0021] [client]   enter Publish                      module=mqtt
 chirpstack-gateway-bridge  DEBU[0021] [client]   sending publish message, topic: gateway/0000000000000000/event/stats  module=mqtt

Hello, I am building a docker setup with concentratord and gateway-bridge running in different containers, and communicating between a shared volume folder. However the event data appear to be zero, while concentratord logs report correct gateway id.

chirpstack-gateway-bridge.toml:

# This configuration provides a Semtech UDP packet-forwarder backend and
# integrates with a MQTT broker. Many options and defaults have been omitted
# for simplicity.
#
# See https://www.chirpstack.io/gateway-bridge/install/config/ for a full
# configuration example and documentation.

[general]
# debug=5, info=4, warning=3, error=2, fatal=1, panic=0
log_level=5

# Log to syslog.
#
# When set to true, log messages are being written to syslog.
log_to_syslog=false

# Gateway backend configuration.
[backend]
# Backend type.
type="concentratord"

  # ChirpStack Concentratord backend.
  [backend.concentratord]

  # Check for CRC OK.
  crc_check=true

  # Event API URL.
  event_url="ipc:///tmp/zeromq/concentratord_event"

  # Command API URL.
  command_url="ipc:///tmp/zeromq/concentratord_command"



# Integration configuration.
[integration]
# Payload marshaler.
#
# This defines how the MQTT payloads are encoded. Valid options are:
# * protobuf:  Protobuf encoding (this will become the LoRa Gateway Bridge v3 default)
# * json:      JSON encoding (easier for debugging, but less compact than 'protobuf')
marshaler="protobuf"

# MQTT integration configuration.
[integration.mqtt]
# Event topic template.
event_topic_template="gateway/{{ .GatewayID }}/event/{{ .EventType }}"

# Command topic template.
command_topic_template="gateway/{{ .GatewayID }}/command/#"

# MQTT authentication.
[integration.mqtt.auth]
# Type defines the MQTT authentication type to use.
type="generic"

# Generic MQTT authentication.
[integration.mqtt.auth.generic]
# MQTT server (e.g. scheme://host:port where scheme is tcp, ssl or ws)
server="tcp://192.168.1.15:1883"

# Connect with the given username (optional)
username=""
# Connect with the given password (optional)
password=""

global.toml

# Concentratord configuration.
[concentratord]

# Log level.
#
# Valid options are:
#   * TRACE
#   * DEBUG
#   * INFO
#   * WARN
#   * ERROR
#   * OFF
log_level="DEBUG"

# Log to syslog.
#
# When set to true, log messages are being written to syslog instead of stdout.
log_to_syslog=false

# Statistics interval.
stats_interval="30s"

  # Configuration for the (ZeroMQ based) API.
  [concentratord.api]

  # Event PUB socket bind.
  event_bind="ipc:///tmp/zeromq/concentratord_event"

  # Command REP socket bind.
  command_bind="ipc:///tmp/zeromq/concentratord_command"


# LoRa gateway configuration.
[gateway]

# Antenna gain (dB).
antenna_gain=0

# Public LoRaWAN network.
lorawan_public=true

# Gateway vendor / model.
#
# This configures various vendor and model specific settings like the min / max
# frequency, TX gain table.
model="rak_2287_eu868"

# Gateway vendor / model flags.
model_flags=["GNSS",]

Which versions are you using?

concentratord v4.0.0-test.2 compiled from github repo
gateway bridge 3.14.2 downloaded from Downloads - ChirpStack open-source LoRaWAN<sup>®</sup> Network Server

I compiled https://github.com/chirpstack/chirpstack-udp-forwarder and added it between concentratord and gateway bridge: concentratord → zeromq → udp-forwarder->gateway bridge and the stats and gateway id appear to be correct now. I suspect that the problem occurs in the zeromq subsystem of gateway bridge. Maybe I should also compile it from source.

Make sure that the other components are v4 too!