Troubleshooting
MQTT Engine server definition not found: the typographic quote cause
Short answer
When MQTT Engine logs no server definition found, check the startup log for a JsonParseException: a General-tab JSON value opened its field name with a typographic quote, so module startup failed before connection objects were built. Retype the value with plain quotes and restart; the brokers, the firewall and the installation were never at fault.
On this page
Your server records are still there. MQTT Engine is failing inside its own startup, before it builds the connection objects those records describe, and the status No server definition found for MQTT Server record is what that failure looks like from the status page. In the reported case, on Ignition 8.0.14 Maker Edition with MQTT Engine 4.05, the startup log held a com.fasterxml.jackson.core.JsonParseException raised at EngineGwHook.startup: the JSON value in the module's General tab opened its field name with a typographic left double quote instead of the plain quote JSON requires. Retype that value, restart the module, and the servers connect again. The firewall, the brokers and the installation were never the problem.
The failure happens before any connection exists #
The startup log fixes the order of events:
- The module reads its saved settings, including the JSON value in the General tab.
- It parses that value.
- It builds the server and connection objects from the configured records.
- It connects to each broker and reports status.
A parse exception in the second step aborts everything after it. The records are still in the saved configuration, but no runtime object ever represents them, so every server shows disconnected and Engine logs the no-definition status. That is also why online brokers prove nothing: their status is measured on their side of the network, and Engine never reached the stage of opening a socket.
The rule the value broke is not a module quirk. JSON, as specified in RFC 8259, requires every field name to be wrapped in the plain quotation mark, Unicode U+0022. To a JSON parser a typographic quote is an ordinary text character, not a delimiter, so the parser stops on it.
Read the startup exception #
Expand the error in the Gateway log. The parts that matter, from the reported case:
com.fasterxml.jackson.core.JsonParseException: Unexpected character ('“' (code 8220 / 0x201c)):
was expecting double-quote to start field name
at [Source: (String)"{“allowCustomNamespacesQos1”:true}"; line: 1, column: 3]
com.fasterxml.jackson.core.JsonParseExceptionis a syntax rejection from the JSON parser. Nothing was sent to any broker, so no broker setting can be the cause.code 8220 / 0x201cnames the offending character: the typographic left double quote.was expecting double-quote to start field nameshows the parser stopped at the delimiter, before it read the name.[Source: (String)"{“allowCustomNamespacesQos1”:true}"]is the exact saved value. The character after the opening brace is the wrong quote; the nameallowCustomNamespacesQos1is spelled correctly and must be preserved.line: 1, column: 3places the failure at the front of the value, not deep inside it.EngineGwHook.startupis the stage: module startup, which is why every server went down together.
This is a syntax failure, not an authentication response and not a quality-of-service rejection. The property name contains Qos1, but the parser never got far enough to apply the option's value.
Rule out the network in one pass #
Put the startup log and the broker log side by side. One reading decides the case:
- Parse exception in the startup log: the fault is local to the saved configuration. Fix the value in the next section; no network change can help.
- Clean startup log and no connection attempt in the broker log: the module is up, so test reachability from the Gateway host itself to the configured address and port, and check a firewall rule scoped to that endpoint.
- Connection attempt rejected at the broker: compare the server record's transport and credentials with the broker's listener.
- Gateway renamed and the local connection record left stale: that is a naming fault with its own repair, covered in an Ignition Gateway rename that left the local connection stale.
Do not lean on the other side's online status either; why MQTT Engine shows an online status after an edge node drops explains how that status misleads. In this fault the decisive evidence is the exception, and it points at one character.
Correct the General-tab value #
- Open the MQTT Engine configuration page in the Gateway and switch to the General tab.
- Copy the current JSON value into a plain-text editor, so you keep a recovery copy and can see the real characters.
- Retype it as
{"allowCustomNamespacesQos1":true}: same name, same value, plain quotes only. Keeptrueunquoted, because RFC 8259 readstrueas a Boolean and"true"as a string, which is a different setting. - Paste the corrected value back, save, and restart the module.
- Open a fresh startup log: the exception must be gone and the server records must show connected.
Retype the value by hand rather than pasting it back out of a formatted document, or the same substitution happens again.
Worked example: checking the character codes #
The exception names the character twice, once in decimal and once in hexadecimal, and the two agree:
0x201C = 2×4096 + 0×256 + 1×16 + 12 = 8192 + 0 + 16 + 12 = 8220
So code 8220 and 0x201c are the same character, the typographic left double quote, Unicode U+201C. Size gives you a second check. In UTF-8, U+201C needs three bytes (E2 80 9C) while the required U+0022 is a single byte (0x22). The corrected value {"allowCustomNamespacesQos1":true} is 33 characters, all ASCII, so 33 bytes on disk. The reported value has the same 33 characters, but each typographic quote costs two extra bytes:
- valid value: 33 bytes
- reported value: 33 + 2 + 2 = 37 bytes
A hex view of the saved setting that shows E2 80 9C where 22 belongs confirms the diagnosis. After the repair, the same view shows 22.
What to leave alone #
- The server records: leave them untouched. Engine never read them, and recreating them adds risk while fixing nothing.
- The firewall: turn it back on and allow only the broker endpoint. No connection request leaves the host while parsing fails, so the open firewall bought nothing and only widened the OT network's exposure.
- The installation: restart, reboot and module reinstall all reproduced the same exception in the reported case, because the value lives in the Gateway's saved configuration and each of those actions reloads it unchanged.
The decision for each case #
- Startup log shows the
JsonParseExceptionon the typographic quote: retype the General-tab value with plain quotes, restart the module, and stop there. That one edit is the whole repair. - Startup log clean and the broker log silent: the module is healthy, so work the path from the Gateway host — address, port, transport and a scoped firewall rule.
- Broker rejects the attempt: correct the transport or credentials in the server record.
- Same exception after every restart: it is the stored string, and only editing the string clears it.
Questions asked
The servers worked for months. Why would this error appear now?
Because the saved string changed. Nothing on the broker side can alter the Gateway's stored setting, so the typographic quote arrived the last time someone edited or re-pasted the General-tab value, and the module failed at its next restart. That is why the outage seems to start out of nowhere: the edit and the failure can be days apart.
Which tools replace plain quotes with typographic ones?
Word processors, note-taking apps, chat and mail clients, and rich-text fields apply smart-quote substitution while you type or paste. Plain-text editors and code editors do not. Type JSON settings in a plain-text editor or key them directly into the Gateway field, and re-check any value that passed through a formatted document.
Will upgrading Ignition or the MQTT Engine module clear the error?
No. RFC 8259 requires the plain quotation mark around every field name, and every parser build enforces that, so the same string fails before and after an upgrade. Upgrade for its own reasons if you want newer fixes, but correct the character first, or the newer module stops at exactly the same point.
I want the option set to false anyway. Should I change it during the repair?
No, split the work. First restore valid syntax with the value still true and confirm a clean startup, because that proves the parse fault is gone. Then make the behavior change in a second edit and restart again. One edit that repairs syntax and changes behavior together hides which change caused any new symptom.