What to do when the connection to MQTT server fails after importing flows?

This troubleshooting guide describes how to connect mqtt-in node from an old Node-RED flow

Problem

When copying mqtt-in nodes from old Node-RED flow, it is not possible to connect them.

Untitled

Solution

The root cause is that there is an old MQTT server still preselected (”ia_mosquitto”).

  1. Change the server to united-manufacturing-hub-vernemq:1883

Untitled

If it does not exist yet, create a new one (in newer versions you do not have to specify “ia_nodered” anymore):

Untitled

Untitled

Last modified October 5, 2022: Historian article (#107) (5f30dc0)