i have a Chirpstack Server (v3) and the following directories in /etc
chirpstack
chirpstack-application-server
chirpstack-gateway-bridge
chirpstack-network-server
The idea is, to subscribe the mqtt topics mit the an mqtt client. e.g.: application/#
The problem is, that my mqtt Client connects correctly with the MQTT Broker of the Chirpstack Server, but the connection crashes every 2-4 seconds. The client reconnects but crashes again and again.
Added to the already suggested options, have you looked at your MQTT broker logs? You might need to change the log level to debug to get more information. If it is the MQTT broker that kills the connection, then you will probably find the reason in the logs…
1732635006: Connecting bridge (step 1) bridge-01 (172.22.100.83:1883)
1732635007: mosquitto version 1.6.9 starting
1732635007: Config loaded from /etc/mosquitto/mosquitto.conf.
1732635007: Opening ipv4 listen socket on port 1883.
1732635007: Connecting bridge (step 1) bridge-01 (172.22.100.83:1883)
1732635007: Connecting bridge (step 2) bridge-01 (172.22.100.83:1883)
1732635008: New connection from 127.0.0.1 on port 1883.
1732635008: New connection from 127.0.0.1 on port 1883.
1732635008: New client connected from 127.0.0.1 as auto-F48BE8FC-C521-E738-9195-AB36D6CCEC24 (p2, c1, k30).
1732635008: New client connected from 127.0.0.1 as auto-A58A6056-0FA7-8B90-1B74-45025A99B441 (p2, c1, k30).
1732635008: New connection from 127.0.0.1 on port 1883.
1732635008: New client connected from 127.0.0.1 as auto-042E77A2-9C4F-AD01-F91F-915FDE12FD43 (p2, c1, k30).
1732635008: New connection from xxxx on port 1883.
1732635008: New client connected from xxxx as ixxx.0 (p2, c1, k60, u’admin’).
1732635008: New connection from xxxx on port 1883.
1732635008: New client connected from xxxx as auto-E01B9652-3122-244C-1036-177B030A3AFB (p2, c1, k30).
1732635008: New connection from xxxx on port 1883.
1732635008: New client connected from xxxx as auto-FCB37F31-E4B2-8D26-2C6E-4CAE1653B486 (p2, c1, k30, u’admin’).
1732635008: New connection from xxxx on port 1883.
1732635008: New client connected from xxxxx as auto-6215A158-E455-9C34-C3E2-BBE38CDC3195 (p2, c1, k30).
1732635009: Error creating bridge: Broken pipe.