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 logsA 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 / symptom | Cause and fix |
|---|---|
BROKER_SECRET_KEY is not set | The 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 ... UNREACHABLE | Outbound HTTPS to brokerapi.connectmq.com is blocked. Check NAT, firewall and proxy. |
Invalid broker secret key | Wrong Broker ID / secret pair. Check your BYOC subscription details. |
No SSL/TLS certificate found | No 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 seconds | They opened a socket without sending MQTT CONNECT. Expected for port scanners. |
| All clients banned at once | The load balancer hides client IPs. Enable client IP preservation (Ports). |
| Clients refused with reason codes | Same 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 tagOn 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
| Tag | Meaning |
|---|---|
1.0.0 | First BYOC release |
latest | Newest stable release |
Support
BYOC onboarding, Broker IDs and help: through your ConnectMQ account or support.