# Cannot auto-reconnect to remote OPC-UA

**URL:** <https://forum.inductiveautomation.com/t/cannot-auto-reconnect-to-remote-opc-ua/11232>\
**Category:** Ignition\
**Created:** [February 18, 2016, 12:28pm UTC](https://forum.inductiveautomation.com/t/cannot-auto-reconnect-to-remote-opc-ua/11232 "2016-02-18T12:28:39Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [February 18, 2016, 12:28pm UTC](https://forum.inductiveautomation.com/t/cannot-auto-reconnect-to-remote-opc-ua/11232/1 "2016-02-18T12:28:39Z")

</div>

My setup here in the plant has separate Ignition OPC servers at each line, and our “main” gateway attaches to them. Hub and Spoke, but OPC-only.

If one of the spokes go down, like on a power cycle, it won’t reconnect properly when the remote comes back online. Picking an endpoint, or disabling/re-enabling the connection puts things back in order, but it’s kind of a pain in the keester.

Running 7.8.1 on the Hub, 7.7.0 or .1 or .2 on the spokes.

This worked okay pre-7.8. Do I need to upgrade the spokes as well?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [February 18, 2016, 2:23pm UTC](https://forum.inductiveautomation.com/t/cannot-auto-reconnect-to-remote-opc-ua/11232/2 "2016-02-18T14:23:18Z")

</div>

You can send your logs in so we can double-check, but there was one last issue that looked like this fixed in 7.8.2. If you’d like an early copy of the module let me know.

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [February 18, 2016, 6:38pm UTC](https://forum.inductiveautomation.com/t/cannot-auto-reconnect-to-remote-opc-ua/11232/3 "2016-02-18T18:38:21Z")

</div>

Thanks for the info, Kevin.

If you can float me a copy of the module to try out, that would be great.

Although it would be even greater if our maintenance guys would power cycle a line as a last resort and not a first option… 😆

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [August 22, 2016, 10:20pm UTC](https://forum.inductiveautomation.com/t/cannot-auto-reconnect-to-remote-opc-ua/11232/4 "2016-08-22T22:20:55Z")

</div>

Just a quick revisit.

7.8.2 didn’t do anything for me, but installing 7.8.3 on a new VM (since the apt-repositories aren’t available anymore, it was most painless way to make sure there weren’t any other linux-y hiccups) seems to have done the trick.

Not sure if it was the version or the fresh install that did it for me, but I’ll be quiet about it for now. 🙂

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [August 22, 2016, 10:22pm UTC](https://forum.inductiveautomation.com/t/cannot-auto-reconnect-to-remote-opc-ua/11232/5 "2016-08-22T22:22:27Z")

</div>

There ended up being additional bugs fixed in 7.8.3 related to this. The only known/outstanding issue now is with connections to Kepware, but it’s a bug on their side that we’re waiting on.

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [August 23, 2016, 1:16am UTC](https://forum.inductiveautomation.com/t/cannot-auto-reconnect-to-remote-opc-ua/11232/6 "2016-08-23T01:16:54Z")

</div>

Huh. I guess I spoke too soon… ☹

While it appeared that things recovered okay, the actual OPC values never update.

Here’s the log. Around 5:00 pm or so is where I cut power to the spoke. I don’t quite remember when I plugged the spoke back in. Around 8:30pm is where I noticed things weren’t updating and reset the connection.

The connection is named 31CX. Its IP address is 192.168.140.64

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [August 25, 2016, 6:11pm UTC](https://forum.inductiveautomation.com/t/cannot-auto-reconnect-to-remote-opc-ua/11232/7 "2016-08-25T18:11:16Z")

</div>

And the saga continues… I knew I should have made some theme music for this…

Today, the OPC connections seemed to be working okay, but expression and query tags had crapped out. log is attached, but I have no data as to when this happened.

Restarting the default tag provider got thing back on track, but this is starting to kill me!

Also, running 7.8.4 if it helps. Running that even if it doesn’t. 😉

Thanks, guys!

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [August 25, 2016, 6:22pm UTC](https://forum.inductiveautomation.com/t/cannot-auto-reconnect-to-remote-opc-ua/11232/8 "2016-08-25T18:22:23Z")

</div>

I think this may be most easily solved by upgrading the “spoke” systems you’re connected to. Just to the latest version of 7.7, you don’t need to go to 7.8.

If it continues after that, on the central/client machine turn loggers ClientChannelManager and ClientSessionManager to DEBUG and then get the logs after something happens again.

---

<div class="post-metadata">

**Author:** ![Caleb\_Bohon](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/caleb_bohon/32/3293_2.png) [@Caleb\_Bohon](https://forum.inductiveautomation.com/u/Caleb_Bohon)\
**Post date:** [August 29, 2016, 4:08pm UTC](https://forum.inductiveautomation.com/t/cannot-auto-reconnect-to-remote-opc-ua/11232/9 "2016-08-29T16:08:00Z")

</div>

Kevin,

I seem to be having a similar issue with a 7.8.2 setup. The OPC connection from server to server is over a cell modem connection and every two months the signal gets to low, and the connection fails. Even after the cell connection comes back, the OPC connection does not until I restart it.

Should I update both sides to 7.8.4?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [August 29, 2016, 4:14pm UTC](https://forum.inductiveautomation.com/t/cannot-auto-reconnect-to-remote-opc-ua/11232/10 "2016-08-29T16:14:53Z")

</div>

[quote=“Caleb Bohon”]Kevin,

I seem to be having a similar issue with a 7.8.2 setup. The OPC connection from server to server is over a cell modem connection and every two months the signal gets to low, and the connection fails. Even after the cell connection comes back, the OPC connection does not until I restart it.

Should I update both sides to 7.8.4?[/quote]

You should at least update the client side, but doing both sides is always better. If it continues to not work the same loggers I mentioned previously would need to be enabled.

---

<div class="post-metadata">

**Author:** ![Caleb\_Bohon](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/caleb_bohon/32/3293_2.png) [@Caleb\_Bohon](https://forum.inductiveautomation.com/u/Caleb_Bohon)\
**Post date:** [September 8, 2016, 3:50pm UTC](https://forum.inductiveautomation.com/t/cannot-auto-reconnect-to-remote-opc-ua/11232/11 "2016-09-08T15:50:43Z")

</div>

I have upgraded to 7.8.4 will repost if I continue to have problems.

---

<div class="post-metadata">

**Author:** ![Caleb\_Bohon](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/caleb_bohon/32/3293_2.png) [@Caleb\_Bohon](https://forum.inductiveautomation.com/u/Caleb_Bohon)\
**Post date:** [September 20, 2016, 8:31pm UTC](https://forum.inductiveautomation.com/t/cannot-auto-reconnect-to-remote-opc-ua/11232/12 "2016-09-20T20:31:51Z")

</div>

It looks like my upgrade to 7.8.4 fixed the problem with the OPC connection. Now if only I could keep the cell connection from dropping… 🙂
