Concentratord and Gateway in docker

Hi,
I have the ChirpStack up and running in docker on a RPI3B, I am now trying to get concentratord running and connected.

I got concentratord built and running local (not in docker, don’t know if this would be possible) and I get a log from the concentratord like:

2020-09-05 03:53:08,905 INFO  [chirpstack_concentratord_sx1301::handler::uplink] Frame received, uplink_id: 87e518aa-3f09-424a-a45e-6297800e8dc2, count_us: 3872129540, freq: 916200000, bw: 125000, mod: LoRa, dr: SF7
2020-09-05 03:53:24,519 INFO  [libconcentratord::events] Publishing stats event, stats_id: f4ee56da-37e6-4fee-b3f8-7b78837bbb67, rx_received: 1, rx_received_ok: 0, tx_received: 0, tx_emitted: 0
2020-09-05 03:53:42,383 INFO  [chirpstack_concentratord_sx1301::handler::uplink] Frame received, uplink_id: 82d05134-a5c8-4302-acd4-97823d8ca792, count_us: 3905613412, freq: 916400000, bw: 125000, mod: LoRa, dr: SF8
2020-09-05 03:53:54,519 INFO  [libconcentratord::events] Publishing stats event, stats_id: db3299dc-1531-4215-a6a9-1f44fb4175a6, rx_received: 1, rx_received_ok: 0, tx_received: 0, tx_emitted: 0
2020-09-05 03:54:24,520 INFO  [libconcentratord::events] Publishing stats event, stats_id: ddea6462-67fc-4c5f-b36c-05e8d1f01ec6, rx_received: 0, rx_received_ok: 0, tx_received: 0, tx_emitted: 0
2020-09-05 03:54:54,520 INFO  [libconcentratord::events] Publishing stats event, stats_id: b358bdde-0852-4a8b-9922-eaa91042e649, rx_received: 0, rx_received_ok: 0, tx_received: 0, tx_emitted: 0
2020-09-05 03:55:24,521 INFO  [libconcentratord::events] Publishing stats event, stats_id: e935e2fc-e2bb-4318-9b09-6fbb441a5e56, rx_received: 0, rx_received_ok: 0, tx_received: 0, tx_emitted: 0

so it looks to be working, but when I change the Gateway config to:

# Gateway backend configuration.
[backend]

# Backend type.
#
# Valid options are:
#   * semtech_udp
#   * concentratord
#   * basic_station
type="concentratord"

  # ChirpStack Concentratord backend.
  [backend.concentratord]

  # Check for CRC OK.
  crc_check=true

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

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

[integration.mqtt.auth.generic]
servers=["tcp://mosquitto:1883"]
username=""
password=""

I just get error in the gateway like:

chirpstack-gateway-bridge        | time="2020-09-05T03:59:14Z" level=error msg="backend/concentratord: event socket dial error" error="dial event api url error: zmq4: could not dial to \"ipc:///tmp/concentratord_event\": dial unix /tmp/concentratord_event: connect: no such file or directory"
chirpstack-gateway-bridge        | time="2020-09-05T03:59:17Z" level=error msg="backend/concentratord: event socket dial error" error="dial event api url error: zmq4: could not dial to \"ipc:///tmp/concentratord_event\": dial unix /tmp/concentratord_event: connect: no such file or directory"
chirpstack-gateway-bridge        | time="2020-09-05T03:59:21Z" level=error msg="backend/concentratord: event socket dial error" error="dial event api url error: zmq4: could not dial to \"ipc:///tmp/concentratord_event\": dial unix /tmp/concentratord_event: connect: no such file or directory"

Docker-Compose config for the gateway looks like:

  chirpstack-gateway-bridge:
    container_name: chirpstack-gateway-bridge
    image: local/chirpstack-gateway-bridge:arm64
    # restart: unless-stopped
    networks:
      - internal-network
    ports:
      - 1700:1700/udp
    volumes:
      - /home/gateway/.containers/chirpstack-gateway-bridge/data/conf:/etc/chirpstack-gateway-bridge

networks:
  internal-network:

Any suggestion on how to debug this problem or have I done something wrong?

Regards,

As normal been working on the problem all day and when you post the question you find a solution yourself.

anyways, I found I had to mount /tmp as a volume in the docker-compose don’t know if this is the correct way to do it but it works for now.

the gateway docker-compose bit now llok like:

  chirpstack-gateway-bridge:
    container_name: chirpstack-gateway-bridge
    image: local/chirpstack-gateway-bridge:arm64
    # restart: unless-stopped
    networks:
      - internal-network
    ports:
      - 1700:1700/udp
    volumes:
      - /tmp:/tmp # Added this bit to get it working
      - /home/gateway/.containers/chirpstack-gateway-bridge/data/conf:/etc/chirpstack-gateway-bridge

networks:
  internal-network:

If anyone knows the correct or better way to do this, please let me know.

Thanks.