nida
December 18, 2024, 9:03am
1
I’m having problem where my gateway show last seen never and I noticed when i do
cd chirpstack-docker
sudo docker ps
sudo docker exec -it chirpstack-docker-mosquitto-1 sh
mosquitto_sub -t “#” -v
it doesn’t show any messages.
Any help is kindly appreciated.
Hello,
If I do that, I got this
mosquitto_sub -t "#" -v
eu868/gateway/ac1f09fffe0caacd/state/conn �ac1f09fffe0caacd
eu868/gateway/ac1f09fffe0cad1d/state/conn �ac1f09fffe0cad1d
eu868/gateway/ac1f09fffe0cadbb/state/conn �ac1f09fffe0cadbb
eu868/gateway/ac1f09fffe0cade7/state/conn �ac1f09fffe0cade7
� is normal it’s raw binary from grpc
Are you sure if your gateway successfully connected on your broker ?
In your gateway try this after restarting chirpstack-mqtt-forwarder
logread -f -l 50 -e chirpstack-mqtt-forwarder
I got that
Wed Dec 18 09:11:27 2024 user.info chirpstack-mqtt-forwarder[19482]: Starting ChirpStack MQTT Forwarder (version: 4.3.1, docs: https://www.chirpstack.io/)
Wed Dec 18 09:11:27 2024 user.info chirpstack-mqtt-forwarder[19482]: Setting up ChirpStack Concentratord backend
Wed Dec 18 09:11:27 2024 user.info chirpstack-mqtt-forwarder[19482]: Setting up ChirpStack Concentratord backend
Wed Dec 18 09:11:27 2024 user.info chirpstack-mqtt-forwarder[19482]: Connecting to Concentratord event API, event_url: ipc:///tmp/concentratord_slot1_event
Wed Dec 18 09:11:27 2024 user.info chirpstack-mqtt-forwarder[19482]: Connecting to Concentratord command API, command_url: ipc:///tmp/concentratord_slot1_command
Wed Dec 18 09:11:27 2024 user.info chirpstack-mqtt-forwarder[19482]: Reading gateway id
Wed Dec 18 09:11:27 2024 user.info chirpstack-mqtt-forwarder[19482]: Received gateway id, gateway_id: ac1f09fffe0caacd
Wed Dec 18 09:11:27 2024 user.info chirpstack-mqtt-forwarder[19482]: Received Gateway ID from backend, gateway_id: ac1f09fffe0caacd
Wed Dec 18 09:11:28 2024 user.info chirpstack-mqtt-forwarder[19482]: Configuring client with TLS certificate, ca_cert: /var/etc/chirpstack-mqtt-forwarder-slot1/ca.pem, tls_cert: /var/etc/chirpstack-mqtt-forwarder-slot1/cert.pem, tls_key: /var/etc/chirpstack-mqtt-forwarder-slot1/key.pem
Wed Dec 18 09:11:28 2024 user.info chirpstack-mqtt-forwarder[19482]: Starting MQTT event loop
Wed Dec 18 09:11:28 2024 user.info chirpstack-mqtt-forwarder[19482]: Subscribing to command topic, topic: eu868/gateway/ac1f09fffe0caacd/command/+
Wed Dec 18 09:11:28 2024 user.info chirpstack-mqtt-forwarder[19482]: Sending conn state, topic: eu868/gateway/ac1f09fffe0caacd/state/conn
Are you using the gateway bridge or the MQTT forwarder? On gateway or on server? Share it’s configuration if it’s on the gateway, otherwise share the gateways UDP forwarder configuration.
nida
December 19, 2024, 2:04am
5
Im using the default chirpstack-gateway-bridge
[integration.mqtt.auth.generic]
servers=[“tcp://mosquitto:1883”]
username=“”
password=“”
Sure, but on the server then? What type of gateway are you using? Is your gateways UDP packet forwarder configured to the right endpoint?
If so could be a firewall issue.