# OPC-UA Connection to Siemens PLC Faulting After Upgrade

**URL:** <https://forum.inductiveautomation.com/t/opc-ua-connection-to-siemens-plc-faulting-after-upgrade/41065>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [November 30, 2020, 7:37pm UTC](https://forum.inductiveautomation.com/t/opc-ua-connection-to-siemens-plc-faulting-after-upgrade/41065 "2020-11-30T19:37:52Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Duffanator](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/duffanator/32/3560_2.png) [@Duffanator](https://forum.inductiveautomation.com/u/Duffanator)\
**Post date:** [November 30, 2020, 7:37pm UTC](https://forum.inductiveautomation.com/t/opc-ua-connection-to-siemens-plc-faulting-after-upgrade/41065/1 "2020-11-30T19:37:52Z")

</div>

I am upgrading a server from 7.9 to 8.1 and the OPC-UA connections that I had to a few Siemens 1500 PLCs are no longer working, the Kepware connections that I have are working though. If I run through the endpoint setup Ignition finds the endpoints just fine and allows me to pick the security options that are enabled in the Siemens PLC. I can also trust the certificate in Ignition. But when I save the connection I get this message about an unsupported protocol?

```auto
UaException: status=Bad_InternalError, message=unsupported protocol: null
	at org.eclipse.milo.opcua.stack.client.DiscoveryClient.getEndpoints(DiscoveryClient.java:189)
	at com.inductiveautomation.ignition.gateway.opcua.client.ManagedClientKt.initialize(ManagedClient.kt:85)
	at com.inductiveautomation.ignition.gateway.opcua.client.ManagedClient$create$1.invokeSuspend(ManagedClient.kt:64)
	at com.inductiveautomation.ignition.gateway.opcua.client.ManagedClient$create$1.invoke(ManagedClient.kt)
	at com.inductiveautomation.ignition.gateway.opcua.util.Managed$get$deferred$1.invokeSuspend(Managed.kt:40)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)

8.1.0 (b2020110211)
Azul Systems, Inc. 11.0.7

```

I’m not sure what that means as I have the old server and new server running side by side and the old server is connected just fine with the same settings. Any thoughts?

---

<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:** [November 30, 2020, 8:04pm UTC](https://forum.inductiveautomation.com/t/opc-ua-connection-to-siemens-plc-faulting-after-upgrade/41065/2 "2020-11-30T20:04:27Z")

</div>

Any chance you can get a Wireshark capture?

edit: or maybe tell me the endpoint URL reported by the server during discovery.

edit 2: actually, what discovery/endpoint URL are _you_ specifying during discovery?

---

<div class="post-metadata">

**Author:** ![Duffanator](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/duffanator/32/3560_2.png) [@Duffanator](https://forum.inductiveautomation.com/u/Duffanator)\
**Post date:** [November 30, 2020, 8:08pm UTC](https://forum.inductiveautomation.com/t/opc-ua-connection-to-siemens-plc-faulting-after-upgrade/41065/3 "2020-11-30T20:08:58Z")

</div>

I can work on a wireshark capture. I have to install it on the server.

This is what I’m putting in as the endpoint URL (this is what is shown in the Siemens PLC OPC settings)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/2/a26a63a45276b47a7a6f131609a7d6f3f484552a.png)

And this is what comes back:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/b/9bebad996b4abe8c610c29573212d86169d7456f.png)

---

<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:** [November 30, 2020, 8:10pm UTC](https://forum.inductiveautomation.com/t/opc-ua-connection-to-siemens-plc-faulting-after-upgrade/41065/4 "2020-11-30T20:10:36Z")

</div>

If you click the “skip to advanced” link (something like that) at the top of the discovery flow what are the values of those fields it presents?

---

<div class="post-metadata">

**Author:** ![Duffanator](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/duffanator/32/3560_2.png) [@Duffanator](https://forum.inductiveautomation.com/u/Duffanator)\
**Post date:** [November 30, 2020, 8:12pm UTC](https://forum.inductiveautomation.com/t/opc-ua-connection-to-siemens-plc-faulting-after-upgrade/41065/5 "2020-11-30T20:12:45Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/1/4129cfdfa20b761dd533558bf34756f164449f75.png)

And here is what is set in the Siemens PLC:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/4/e4a55664da6243e4459437cbcac6c70d08c73533.png)

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/6/66595ddaf7e42335b46e498db6fb1c0d2ce4749c.png)

---

<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:** [November 30, 2020, 8:14pm UTC](https://forum.inductiveautomation.com/t/opc-ua-connection-to-siemens-plc-faulting-after-upgrade/41065/6 "2020-11-30T20:14:25Z")

</div>

I don’t know, this all looks totally fine.

Can you turn the logger `com.inductiveautomation.ignition.gateway.opcua.client.ClientManager` to DEBUG and then edit/save the connection and tell me what gets logged by that logger?

---

<div class="post-metadata">

**Author:** ![Duffanator](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/duffanator/32/3560_2.png) [@Duffanator](https://forum.inductiveautomation.com/u/Duffanator)\
**Post date:** [November 30, 2020, 8:21pm UTC](https://forum.inductiveautomation.com/t/opc-ua-connection-to-siemens-plc-faulting-after-upgrade/41065/7 "2020-11-30T20:21:27Z")

</div>

This is what comes up:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/e/4e0e3c176e1d7b71bbfd6643b1a77d6298c07b38.png)

---

<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:** [November 30, 2020, 8:32pm UTC](https://forum.inductiveautomation.com/t/opc-ua-connection-to-siemens-plc-faulting-after-upgrade/41065/8 "2020-11-30T20:32:22Z")

</div>

That didn’t connect? It looks like it got further than what would have generated the original error message. Is there a new error message now?

---

<div class="post-metadata">

**Author:** ![Duffanator](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/duffanator/32/3560_2.png) [@Duffanator](https://forum.inductiveautomation.com/u/Duffanator)\
**Post date:** [November 30, 2020, 8:33pm UTC](https://forum.inductiveautomation.com/t/opc-ua-connection-to-siemens-plc-faulting-after-upgrade/41065/9 "2020-11-30T20:33:45Z")

</div>

No, it just keeps trying to connect and then says Faulted with the same error:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/1/d1b262d153f98eed9921f4cca53c30277b12d942.png)

EDIT: I have a wireshark capture that I can send you. It won’t let me post it on this thread.

---

<div class="post-metadata">

**Author:** ![Duffanator](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/duffanator/32/3560_2.png) [@Duffanator](https://forum.inductiveautomation.com/u/Duffanator)\
**Post date:** [November 30, 2020, 8:37pm UTC](https://forum.inductiveautomation.com/t/opc-ua-connection-to-siemens-plc-faulting-after-upgrade/41065/10 "2020-11-30T20:37:26Z")

</div>

It seems like every reply from the PLC has this reassembly error, I don’t know what that means.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/6/162475b8bc53f39142d59456def0605bdb46cfe5.png)

---

<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:** [November 30, 2020, 8:37pm UTC](https://forum.inductiveautomation.com/t/opc-ua-connection-to-siemens-plc-faulting-after-upgrade/41065/11 "2020-11-30T20:37:39Z")

</div>

I think the problem might have something to do with you have a failover endpoint configured that has an invalid endpoint URL.

Check the advanced settings on the OPC UA connection and see if there’s any non-default, non-blank values there.

---

<div class="post-metadata">

**Author:** ![Duffanator](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/duffanator/32/3560_2.png) [@Duffanator](https://forum.inductiveautomation.com/u/Duffanator)\
**Post date:** [November 30, 2020, 8:40pm UTC](https://forum.inductiveautomation.com/t/opc-ua-connection-to-siemens-plc-faulting-after-upgrade/41065/12 "2020-11-30T20:40:37Z")

</div>

Oh, that did it!

Failover was enabled for some reason but there were no settings.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/5/152920eb964c9722066f8e7410429c0625395903.png)

On the old server the failover was disabled:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/0/10ac0b483f309c8287729af93c1949be16825dca.png)

When I restored it into 8.1 it enabled it for some reason.

---

<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:** [November 30, 2020, 8:46pm UTC](https://forum.inductiveautomation.com/t/opc-ua-connection-to-siemens-plc-faulting-after-upgrade/41065/13 "2020-11-30T20:46:09Z")

</div>

If you can open a ticket with support and supply them with your backup we can try to reproduce this and fix anything we find. There might be some bug with the “restore enabled/disabled” functionality catching this failover setting.

---

<div class="post-metadata">

**Author:** ![Duffanator](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/duffanator/32/3560_2.png) [@Duffanator](https://forum.inductiveautomation.com/u/Duffanator)\
**Post date:** [November 30, 2020, 8:47pm UTC](https://forum.inductiveautomation.com/t/opc-ua-connection-to-siemens-plc-faulting-after-upgrade/41065/14 "2020-11-30T20:47:46Z")

</div>

Will do. Thanks for the help Kevin!

---

<div class="post-metadata">

**Author:** ![witman](https://avatars.discourse-cdn.com/v4/letter/w/d2c977/32.png) [@witman](https://forum.inductiveautomation.com/u/witman)\
**Post date:** [April 2, 2021, 11:22pm UTC](https://forum.inductiveautomation.com/t/opc-ua-connection-to-siemens-plc-faulting-after-upgrade/41065/15 "2021-04-02T23:22:46Z")

</div>

I just ran into this–failover checked and causing an error–when upgrading a server from 8.1.2 to 8.1.4. It was running on 8.1.2, though I hadn’t checked whether failover was enabled before upgrade (it shouldn’t have been).

---

<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:** [April 2, 2021, 11:27pm UTC](https://forum.inductiveautomation.com/t/opc-ua-connection-to-siemens-plc-faulting-after-upgrade/41065/16 "2021-04-02T23:27:20Z")

</div>

I’m not sure if @Duffanator ever sent a backup to support. If he did then this never made its way back to me or into a ticket that I’ve seen.

---

<div class="post-metadata">

**Author:** ![witman](https://avatars.discourse-cdn.com/v4/letter/w/d2c977/32.png) [@witman](https://forum.inductiveautomation.com/u/witman)\
**Post date:** [April 2, 2021, 11:31pm UTC](https://forum.inductiveautomation.com/t/opc-ua-connection-to-siemens-plc-faulting-after-upgrade/41065/17 "2021-04-02T23:31:46Z")

</div>

I’ve got pre/post-upgrade backups of this one I can put on a password protected OwnCloud server for support to access if they might be useful.

---

<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:** [April 2, 2021, 11:32pm UTC](https://forum.inductiveautomation.com/t/opc-ua-connection-to-siemens-plc-faulting-after-upgrade/41065/18 "2021-04-02T23:32:40Z")

</div>

Yes, I think they would be helpful. It should be easy to see if it was checked or not pre-upgrade.

---

<div class="post-metadata">

**Author:** ![witman](https://avatars.discourse-cdn.com/v4/letter/w/d2c977/32.png) [@witman](https://forum.inductiveautomation.com/u/witman)\
**Post date:** [April 2, 2021, 11:33pm UTC](https://forum.inductiveautomation.com/t/opc-ua-connection-to-siemens-plc-faulting-after-upgrade/41065/19 "2021-04-02T23:33:41Z")

</div>

Shall I send an email to support with link and password to access, or PM them to you?

---

<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:** [April 2, 2021, 11:34pm UTC](https://forum.inductiveautomation.com/t/opc-ua-connection-to-siemens-plc-faulting-after-upgrade/41065/20 "2021-04-02T23:34:09Z")

</div>

Can you do both? I’ll take a look right away but emailing support will make sure this gets tracked like it’s supposed to.

[Next page](https://forum.inductiveautomation.com/t/opc-ua-connection-to-siemens-plc-faulting-after-upgrade/41065.md?page=2)
