# Ignition mqtt tag red once ignition gateway restart

**URL:** https://forum.cirrus-link.com/t/ignition-mqtt-tag-red-once-ignition-gateway-restart/287
**Category:** Ignition Modules
**Created:** [December 5, 2022, 4:47am UTC](https://forum.cirrus-link.com/t/ignition-mqtt-tag-red-once-ignition-gateway-restart/287 "2022-12-05T04:47:00Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![chao](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@chao](https://forum.cirrus-link.com/u/chao)
#### Post date: [December 5, 2022, 4:47am UTC](https://forum.cirrus-link.com/t/ignition-mqtt-tag-red-once-ignition-gateway-restart/287/1 "2022-12-05T04:47:00Z")

</div>

Hi,

We have ignition gateway on the cloud and all site ignition edge communicating with the gateway via MQTT.

Each time we restart the gateway, I have to login some of the site edge unit to refresh mqtt tags manually. otherwise, the mqtt tags on the gateway will be red, quality “bad”.

![image](https://canada1.discourse-cdn.com/flex028/uploads/cirrus_link/original/1X/a234fe9d35b5236ae7c7240a48f5d086567f3261.png)

I would like to know,  
Why it happens?  
How to resolve the issue?  
If it cannot be resolved, is there anyway I can say add a button on the gateway project to send a signal to restart the MQTT service on the edge unit, just like the manual refresh action I have to do each time on the edge station?

Many thanks.

---

<div class="post-metadata">

### Author: ![nathan.davenport](https://avatars.discourse-cdn.com/v4/letter/n/3ab097/32.png) [@nathan.davenport](https://forum.cirrus-link.com/u/nathan.davenport)
#### Post date: [December 7, 2022, 12:38am UTC](https://forum.cirrus-link.com/t/ignition-mqtt-tag-red-once-ignition-gateway-restart/287/2 "2022-12-07T00:38:13Z")

</div>

This can happen with Engine side tags on a GW restart as the Edge node is no longer considered to be online after MQTT Engine is restarted. In earlier versions of MQTT Engine we would “stale” tags on Engine shutdown to signify the Edge node is offline and its tags are no longer up-to-date/Good. We no longer do this in later versions of MQTT Engine. With the latest version of MQTT Engine, tags under MQTT Engine will not be visible post MQTT Engine restart until MQTT Engine receives a new Birth message from the Edge. The way to ensure each Edge node will automatically publish its Birth message after an MQTT Engine / GW restart is to set the Primary Host ID in MQTT Engine configuration and then set the same Primary Host ID on the Edge (in the Server Set under MQTT Transmission if using Transmission). Using Primary Host ID will ensure the Sparkplug Edge node client publishes its Birth automatically after MQTT Engine comes online post module or GW restart.

---

<div class="post-metadata">

### Author: ![chao](https://avatars.discourse-cdn.com/v4/letter/c/839c29/32.png) [@chao](https://forum.cirrus-link.com/u/chao)
#### Post date: [February 20, 2023, 6:20am UTC](https://forum.cirrus-link.com/t/ignition-mqtt-tag-red-once-ignition-gateway-restart/287/3 "2023-02-20T06:20:05Z")

</div>

> [@nathan.davenport](#):
>
> Primary Host ID

Thank you. It’s working.
