> For the complete documentation index, see [llms.txt](https://help.qtech.co.nz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.qtech.co.nz/datran/datran-vi-scada/datran-vi/troubleshooting/comms-fail-after-restart.md).

# Sites show comms fail after a restart or upgrade

After restarting or upgrading DATRAN VI, sites on slow channels go into comms fail while every RTU log is collected at once.

When the HDI service is started (e.g. after a server restart) the offsets are ignored and HDI will request RTU log data from all sites (that are using RTU logging). After an upgrade it can take some time for log data to flow through from all sites to the SQL server. Operators should watch for Sites that appear to be in comms fail because the HDI log retrieval is impacting normal polling operation.

{% hint style="info" %}
**Applies to:** DATRAN VI V6.78 with RTU data logging.
{% endhint %}

## What to do

* **Before an upgrade,** it is best that the logs are retrieved prior to the upgrade of Datran so that the HDI requests will only affect small amounts of data that have been logged in the interim (during the upgrade).
* **Watch the Communications statistics** (channel packet queue lengths) and as before, adjust offsets on highly loaded channels.
* **If polling can't recover,** you can choose to stop the service until normal comms and contact with all sites has resumed after a restart.
* Over broadband channels (LAN, cellular WAN, Ethernet Radio etc) the offsets are less important so long as the channel is not too highly loaded.

## TCP and cellular RTUs (V6.77 and later)

TCP RTU and Cellular Data RTU comms fails are identified if and only if DATRAN sends to an RTU and does not receive an Ack after the specified timeout and number of retries as defined by the RTU object. Successful reestablishment of underlying TCP connection does not clear a Coms Fail - an expected Ack must still be received before Coms Fail status will clear. Successful receipt of a Change of State (COS) does not clear Coms Fail status. Just fixing the TCP connection is not enough. At the application level a message must be sent and an acknowledgment must be received before the comms fail state will reset.

The **ForcePoll** node causes the Base Station to immediately poll the site and retrieve its current I/O and status. Force a Poll of a site in Supervisor by selecting that site and clicking the **Force Poll** button.

The QCOMMS service QC\_Qtech had a memory leak. Customers, primarily those operating a larger number of TCP cellular RTUs (greater than about 30) experienced degradation of performance which could manifest in a number of ways. Most noticeably the memory used by the QCOMMS service Qc\_Qtech would increase over time until all maximum allocatable RAM memory on the server was consumed, forcing customers to restart the service. Other symptoms included the service restarting by itself putting TCP/IP connected devices into comms fail. The QC-QTech service was rearchitected to handle inbound connections better as well as rectify the memory leak.

## Still not working? Contact QTech

If sites stay in comms fail after the logs are collected, check the channel and the RTU as usual. If you need help, email <techsupport@qtech.co.nz> with your DATRAN VI version, the channel statistics, and which sites stay in comms fail.
