Chirpstack ActiveMQ setup

Hey all.

I am trying to set up chirpstack v4 server with an ActiveMQ 6.1.2 broker instead of Mosquito. My end goal is to have a setup in AWS services instead of having everything on the same machine.

Currently I installed everythign locally, configured them, but can’t seem to get the chirpstack server to connect to ActiveMQ.
Doing the same things with mosquito, everything is fine. Is there some config/flag/compatibility issue I am missing?

I continuously get the error in chirpstack:

ERROR chirpstack::integration::mqtt: MQTT error error=I/O: connection closed by peer
ERROR chirpstack::gateway::backend::mqtt: MQTT error error=I/O: Invalid packet type = 0

While in ActiveMQ I get the error:

failed: Unknown data type: 77
failed: Unsupported or invalid protocol version

I am not sure about the certificates part, I have not configured anything yet.
Is there a setup guide somewhere or any resources on this? Could not find anything related to chirpstack + activemq.

Thank you,
Marton

ActiveMQ might not support MQTTv5, which is a requirement (and supported by Mosquitto).