Skip to content

Verify, update & troubleshoot ​

How to check a BYOC broker after deployment, what the common log messages mean, and how to update it.

Verify the deployment ​

bash
docker logs connectmq-broker        # or CloudWatch / Log Analytics / Cloud Logging / kubectl logs

A healthy start looks like this:

text
Central API is HEALTHY (attempt 1/3).
Broker login SUCCESSFUL! Session token received (...)
MQTT TCP listener bound to port 1883.

Then test with credentials from your ConnectMQ console:

bash
mosquitto_sub -h mqtt.example.com -p 8883 --capath /etc/ssl/certs \
  -i '<client ID>_test-sub' -u '<user>' -P '<password>' -t 'demo/#' -v
mosquitto_pub -h mqtt.example.com -p 8883 --capath /etc/ssl/certs \
  -i '<client ID>_test-pub' -u '<user>' -P '<password>' -t 'demo/hello' -m 'hi'

Troubleshooting ​

Log message / symptomCause and fix
BROKER_SECRET_KEY is not setThe variable never reached the container. Put every -e option before the image name, and do not pass -e BROKER_SECRET_KEY without a value unless it is set in your shell.
Central Authentication API ... UNREACHABLEOutbound HTTPS to brokerapi.connectmq.com is blocked. Check NAT, firewall and proxy.
Invalid broker secret keyWrong Broker ID / secret pair. Check your BYOC subscription details.
No SSL/TLS certificate foundNo certificate at /app/certs/broker.pem, so 8883 and 8084 are off. Mount one, or terminate TLS at the load balancer.
Clients disconnected within 3 secondsThey opened a socket without sending MQTT CONNECT. Expected for port scanners.
All clients banned at onceThe load balancer hides client IPs. Enable client IP preservation (Ports).
Clients refused with reason codesSame meaning as on the managed service: see Troubleshooting.

Updating ​

bash
docker pull connectmqcom/broker:<new-version>
docker rm -f connectmq-broker && docker run ...   # same arguments, new tag

On ECS, Container Apps or Kubernetes, change the image tag in the task definition or deployment. Pin a specific version in production instead of latest. Because only one container may run per Broker ID, expect a short reconnect of your clients during the update; well-behaved clients reconnect automatically.

Image tags ​

TagMeaning
1.0.0First BYOC release
latestNewest stable release

Support ​

BYOC onboarding, Broker IDs and help: through your ConnectMQ account or support.

Fully managed MQTT broker for connected devices.