Troubleshooting
Most connection problems are explained by the MQTT reason code. Use MQTT 5 where you can: it returns precise codes. With mosquitto add -d; in other libraries log the CONNACK / DISCONNECT reason.
Reason codes
| Code | Name | Usual cause | Fix |
|---|---|---|---|
| 0x85 | Client identifier not valid | Client ID is not your issued ID and does not start with <issued ID>_ | Use <issued client ID>_<suffix>. See Client IDs. |
| 0x86 | Bad user name or password | Wrong or deleted credentials, extra spaces when copying | Copy them again from MQTT Connection Settings. |
| 0x87 | Not authorized | ACL denies the publish/subscribe, or the credentials lack the Publisher/Subscriber permission | Check the rule with Test ACL Policies on the ACL page. |
| 0x8A | Banned | Too many failed or rejected connection attempts from your IP/client | Fix the cause; the block lifts automatically (within 24 hours at most). |
| 0x8E | Session taken over | Another client connected with the same client ID | Give every client a unique suffix. |
| 0x97 | Quota exceeded | On CONNECT: concurrent connections or session minutes used up. On PUBACK: the message broke a per-message limit (size over 256 KB, messages per second, topic levels, retained messages) or the monthly traffic is used up | Check usage in the console; send smaller or fewer messages; disconnect idle clients or upgrade. |
| 0x89 | Server busy | Too many new connections per second, or a client flooding the broker | Add reconnect backoff with random jitter; spread publishes out. |
A message that breaks a limit is dropped. QoS 0 publishers are not told; QoS 1 and 2 publishers on MQTT 5 get the reason code in the PUBACK / PUBREC, which is why QoS 1 is useful while testing.
MQTT 3.1.1 clients only see a few generic codes: 4 (bad username or password), 5 (not authorized), 2 (identifier rejected) and 3 (server unavailable, also used for quota limits).
The client connects and drops every few seconds
Two clients share a client ID and keep taking the session from each other (0x8E). This often happens when the same firmware runs on several devices with a hard-coded ID, or when you open the same script twice. Build the ID from a serial number or MAC address. The Connections tab's connection history shows the reason.
TLS errors
- Certificate verify failed / unknown CA: the device has no root CA store. Load ISRG Root X1 (see ESP32), or update the OS CA bundle.
- Hostname mismatch: connect to
broker.connectmq.com, not to an IP address. - Clock wrong on the device: some TLS stacks reject certificates when the device date is far off; sync with NTP.
- Handshake times out: the network blocks port 8883. Try
wss://broker.connectmq.com:8084/mqtt, which looks like normal HTTPS traffic to most firewalls.
Messages do not show up in the console
- Is the console Connected (top right)? If not, click it and Connect.
- Is the device publishing to the topic you think? Watch the TOPICS tree or subscribe to
#with mosquitto_sub. - Is the topic subscribed on the dashboard? Add it with Add Topic.
- With ACL on and Web console → Full access off, the console needs an allow rule too.
- Values appear per field only for JSON objects.
No alerts are raised
Alert rules are evaluated by the console in the browser, so at least one console tab must be open and connected. Check that the rule is Active, that the field name matches the payload exactly (it is case sensitive) and use the rule editor's live preview. See Alert rules.
Still stuck?
Write to support with your tenant code (from Tenant & Billing Settings), the client ID, the time of the problem and the reason code. Never send your password.