Hello,
Here is my setup.
Server:
chirpstack 4.9.0
chirpstack-gateway-bridge 4.0.11
Gateway
HW: Raspberry CM4 + RAK5146
OS: ChirpStack Gateway OS 4.5.2 Base / LuCI openwrt
Note it worked OK before I installed the mesh Chirpstack GatewayOS v4.5.2. Previous OS was also Chirpstack Gateway OS (but without mesh), working over MQTT.
After upgrading to Chirpstack GatewayOS v4.5.2: Upon booting up, gateway is online for few seconds and then it is loosing connection. From UI I see that Gateway ID is correctly set and after few seconds it says “could not read gateway_id”. This is happening, even before enabling the mesh features.

Here is the view from the GW UI:
System log from Gateway:
I have enabled anonymous access for mosquitto for the test, but still I see MQTT related errors.
Fri Oct 4 14:34:02 2024 user.info chirpstack-mqtt-forwarder[2345]: Subscribing to command topic, topic: eu868/gateway/0016c001ff1e958f/command/+
Fri Oct 4 14:34:02 2024 user.info chirpstack-mqtt-forwarder[2345]: Sending conn state, topic: eu868/gateway/0016c001ff1e958f/state/conn
Fri Oct 4 14:34:02 2024 user.err chirpstack-mqtt-forwarder[2354]: MQTT error, error: Mqtt state: Io error: Custom { kind: ConnectionAborted, error: "connection closed by peer" }
Fri Oct 4 14:34:03 2024 user.info chirpstack-mqtt-forwarder[2354]: Subscribing to command topic, topic: eu868/gateway/0016c001ff1e958f/command/+
Fri Oct 4 14:34:03 2024 user.info chirpstack-mqtt-forwarder[2354]: Sending conn state, topic: eu868/gateway/0016c001ff1e958f/state/conn
Fri Oct 4 14:34:03 2024 user.err chirpstack-mqtt-forwarder[2345]: MQTT error, error: Mqtt state: Io error: Custom { kind: ConnectionAborted, error: "connection closed by peer" }
Fri Oct 4 14:34:04 2024 user.info chirpstack-mqtt-forwarder[2345]: Subscribing to command topic, topic: eu868/gateway/0016c001ff1e958f/command/+
Fri Oct 4 14:34:04 2024 user.info chirpstack-mqtt-forwarder[2345]: Sending conn state, topic: eu868/gateway/0016c001ff1e958f/state/conn
Fri Oct 4 14:34:04 2024 user.err chirpstack-mqtt-forwarder[2354]: MQTT error, error: Mqtt state: Io error: Custom { kind: ConnectionAborted, error: "connection closed by peer" }
Fri Oct 4 14:34:05 2024 user.info chirpstack-mqtt-forwarder[2354]: Subscribing to command topic, topic: eu868/gateway/0016c001ff1e958f/command/+
Fri Oct 4 14:34:05 2024 user.info chirpstack-mqtt-forwarder[2354]: Sending conn state, topic: eu868/gateway/0016c001ff1e958f/state/conn
Fri Oct 4 14:34:05 2024 user.err chirpstack-mqtt-forwarder[2345]: MQTT error, error: Mqtt state: Io error: Custom { kind: ConnectionAborted, error: "connection closed by peer" }
Fri Oct 4 14:34:06 2024 user.info chirpstack-mqtt-forwarder[2345]: Subscribing to command topic, topic: eu868/gateway/0016c001ff1e958f/command/+
Fri Oct 4 14:34:06 2024 user.info chirpstack-mqtt-forwarder[2345]: Sending conn state, topic: eu868/gateway/0016c001ff1e958f/state/conn
Fri Oct 4 14:34:06 2024 user.err chirpstack-mqtt-forwarder[2354]: MQTT error, error: Mqtt state: Io error: Custom { kind: ConnectionAborted, error: "connection closed by peer" }
From Server side mosquitto logs I do not see any rejected requests at all, only successful gateways.
1728038113: New client connected from 178.134.176.10:50200 as 0016c001ff1e958f (p5, c0, k30, u'GW').
1728038114: New connection from 178.134.176.10:50206 on port 1883.
1728038114: Client 0016c001ff1e958f already connected, closing old connection.
1728038114: New client connected from 178.134.176.10:50206 as 0016c001ff1e958f (p5, c0, k30, u'GW').
1728038115: New connection from 178.134.176.10:57064 on port 1883.
1728038115: Client 0016c001ff1e958f already connected, closing old connection.
1728038115: New client connected from 178.134.176.10:57064 as 0016c001ff1e958f (p5, c0, k30, u'GW').
1728038116: New connection from 178.134.176.10:57070 on port 1883.
1728038116: Client 0016c001ff1e958f already connected, closing old connection.
1728038116: New client connected from 178.134.176.10:57070 as 0016c001ff1e958f (p5, c0, k30, u'GW').
1728038183: New connection from 178.134.176.10:52666 on port 1883.
1728038183: Client 0016c001ff1e958f already connected, closing old connection.
1728038183: New client connected from 178.134.176.10:52666 as 0016c001ff1e958f (p5, c0, k30, u'GW').
@Liam_Philipp can you suggest the next thing to check?