brocaar / chirpstack-packet-multiplexer

Forward Semtech packet-forwarder data to multiple servers.
https://www.chirpstack.io
MIT License
70 stars 41 forks source link

Installation OK but no config .toml to be found #11

Open GrayCygnus opened 2 years ago

GrayCygnus commented 2 years ago

I followed the steps as indicated, and reached the part of editing the .toml config file. However, it is nowhere to be found...

To complete the installation, update the configuration file which is located at /etc/chirpstack-packet-multiplexer/chirpstack-packet-multiplexer.toml and (re)start the service:

sudo systemctl restart chirpstack-packet-multiplexer

Such folder under /etc does not exist, nor the .toml... I ran a search from root and no results of such .toml... Running chirpstack-packet-multiplexer configfile does print the default configuration shown in the Readme...

Any hints on this one? Running on Ubuntu 20.04. Another colleague tried in 18.04 and had the same issue.

Thanks

ccall48 commented 2 years ago
[general]
# Log level
#
# debug=5, info=4, warning=3, error=2, fatal=1, panic=0
log_level=4

[packet_multiplexer]
# Bind
#
# The interface:port on which the packet-multiplexer will bind for receiving
# data from the packet-forwarder (UDP data).
bind="0.0.0.0:1800"

# Backends
#
# The backends to which the packet-multiplexer will forward the
# packet-forwarder UDP data.
#

# # First place to multiplex to... this is my chirpstack network server running in docker
[[packet_multiplexer.backend]]
# # ChirpStack Router & Gateway IDs
host="chirpstack-docker_chirpstack-gateway-bridge_1:1700"
# uplink_only=false
# #
# # The Gateway IDs to forward data for.
gateway_ids = [
  "<YOUR GW 1 EUI>",    # gateway 1 eui
  "<YOUR GW 2 EUI>",    # gateway 2 eui
  "<YOUR GW 3 EUI>",    # gateway 3 eui
  "<YOUR GW 4 EUI>",    # gateway 4 eui
]

# # Second place to multiplex to... Add as many of these blocks as you need
[[packet_multiplexer.backend]]
host="<HOST:PORT>"
# uplink_only=false
# #
# # The Gateway IDs to forward data for.
gateway_ids = [
  "<YOUR GW 1 EUI>",    # gateway 1 eui
  "<YOUR GW 2 EUI>",    # gateway 2 eui
  "<YOUR GW 3 EUI>",    # gateway 3 eui
  "<YOUR GW 4 EUI>",    # gateway 4 eui
]

Try this example, add or remove as many blocks as you need. Likewise with the gateways you need in each block.

If you built the multiplexer with docker, the config location for the toml file is chirpstack-packet-multiplexer/config/chirpstack-packet-multiplexer.toml.

GrayCygnus commented 2 years ago

@ccall48 hey there thanks for the fast response. I think you misunderstood my question.

I'm not asking how to configure, I'm saying that the file /etc/chirpstack-packet-multiplexer/chirpstack-packet-multiplexer.toml does not exist after installation, as the installation steps suggest (and also as the package itself suggests just after you install it, or when using the -help option).

I did not build it with Docker.

It seems that manually creating such directory and .toml and then passing that path with the --config option helps to configure the multiplexer...

However, it's confusing as the instructions, and the command itself suggest a file/location that does not exist nor is created on installation.

Thanks for the config sample BTW :)