I’m trying to use an existing mqtt server with custom auth, basically username password auth. From tcpdump logs, it would appear that the service is attempting to open two mqtt connections, but only one uses a user/password. Is there any explanation of the second, and why it doesn’t use a user/pass even though the [integration.mqtt] config includes it?
Output of logs includes
Dec 07 00:21:20 iot chirpstack[544240]: 2023-12-07T00:21:20.487856Z INFO chirpstack::integration::mqtt: Connected to MQTT broker
Dec 07 00:21:20 iot chirpstack[544240]: 2023-12-07T00:21:20.488249Z INFO chirpstack::integration::mqtt: Starting MQTT consumer loop
Dec 07 00:21:20 iot chirpstack[544240]: 2023-12-07T00:21:20.488301Z INFO chirpstack::gateway::backend: Setting up gateway backends for the different regions
Dec 07 00:21:20 iot chirpstack[544240]: 2023-12-07T00:21:20.488737Z WARN chirpstack::gateway::backend: Config exists, but region is not enabled. To enable it, add 'au915_4' to 'network.enabled_regions'
Dec 07 00:21:20 iot chirpstack[544240]: 2023-12-07T00:21:20.488863Z INFO chirpstack::gateway::backend: Setting up gateway backend for region region_id=us915_1 region_common_name=US915
Dec 07 00:21:20 iot chirpstack[544240]: 2023-12-07T00:21:20.488994Z INFO chirpstack::integration::mqtt: Subscribing to command topic command_topic=application/+/device/+/command/+
Dec 07 00:21:20 iot chirpstack[544240]: 2023-12-07T00:21:20.489645Z INFO chirpstack::gateway::backend::mqtt: Connecting to MQTT broker region_config_id=us915_1 server_uri=tcp://localhost:1883 clean_session=false client_id=9a0dfe3410fcf90c
Dec 07 00:21:22 iot chirpstack[544240]: Error: New MQTT gateway backend error
Dec 07 00:21:22 iot chirpstack[544240]: Caused by:
Dec 07 00:21:22 iot chirpstack[544240]: 0: Connect to MQTT broker
Dec 07 00:21:22 iot chirpstack[544240]: 1: [3] CONNACK return code
Dec 07 00:21:22 iot systemd[1]: chirpstack.service: Main process exited, code=exited, status=1/FAILURE
Dec 07 00:21:22 iot systemd[1]: chirpstack.service: Failed with result 'exit-code'.
Dec 07 00:21:22 iot systemd[1]: chirpstack.service: Scheduled restart job, restart counter is at 3.
Dec 07 00:21:22 iot systemd[1]: Stopped chirpstack.service - ChirpStack open-source LoRaWAN Network Server.
Dec 07 00:21:22 iot systemd[1]: Started chirpstack.service - ChirpStack open-source LoRaWAN Network Server.```