# Manual configuration of OPC UA Client Connections fails until gateway is rebooted

**URL:** <https://forum.inductiveautomation.com/t/manual-configuration-of-opc-ua-client-connections-fails-until-gateway-is-rebooted/41500>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [December 14, 2020, 3:36pm UTC](https://forum.inductiveautomation.com/t/manual-configuration-of-opc-ua-client-connections-fails-until-gateway-is-rebooted/41500 "2020-12-14T15:36:08Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![iamthebull](https://avatars.discourse-cdn.com/v4/letter/i/58f4c7/32.png) [@iamthebull](https://forum.inductiveautomation.com/u/iamthebull)\
**Post date:** [December 14, 2020, 3:36pm UTC](https://forum.inductiveautomation.com/t/manual-configuration-of-opc-ua-client-connections-fails-until-gateway-is-rebooted/41500/1 "2020-12-14T15:36:08Z")

</div>

Setup:  
Version: 8.1.0 (b2020110211) on Windows Server 2019 Essentials VM (VirtualBox)  
Host: Ubuntu 20.04.1 LTS

I add an OPC Client connection - OPC UA  
Skip to advanced config  
Enter my settings manually and apply.  
The connection initially shows as faulted and I get the error: no matching endpoints found (see below)  
I then restart the gateway in task manager - services. Then everything is happy.

```auto
UaException: status=Bad_ConfigurationError, message=no matching endpoints found

	at com.inductiveautomation.ignition.gateway.opcua.client.ManagedClientKt.initialize(ManagedClient.kt:127)

	at com.inductiveautomation.ignition.gateway.opcua.client.ManagedClientKt$initialize$1.invokeSuspend(ManagedClient.kt)

	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

```

---

<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:** [December 14, 2020, 3:40pm UTC](https://forum.inductiveautomation.com/t/manual-configuration-of-opc-ua-client-connections-fails-until-gateway-is-rebooted/41500/2 "2020-12-14T15:40:15Z")

</div>

Are you connecting to a 3rd party OPC UA server or making / reconfiguring the connection to Ignition’s own OPC UA server?

---

<div class="post-metadata">

**Author:** ![iamthebull](https://avatars.discourse-cdn.com/v4/letter/i/58f4c7/32.png) [@iamthebull](https://forum.inductiveautomation.com/u/iamthebull)\
**Post date:** [December 14, 2020, 4:14pm UTC](https://forum.inductiveautomation.com/t/manual-configuration-of-opc-ua-client-connections-fails-until-gateway-is-rebooted/41500/3 "2020-12-14T16:14:38Z")

</div>

3rd party OPC server - Siemens Simatic Net V16

---

<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:** [December 14, 2020, 4:21pm UTC](https://forum.inductiveautomation.com/t/manual-configuration-of-opc-ua-client-connections-fails-until-gateway-is-rebooted/41500/4 "2020-12-14T16:21:57Z")

</div>

Any chance you can delete the configuration, start a Wireshark capture, then run through the configuration again? And at the end instead of restarting the gateway service just try edit/saving the OPC UA connection without making any changes.

Screenshots of the advanced configuration and the regular settings page would be good too.

---

<div class="post-metadata">

**Author:** ![iamthebull](https://avatars.discourse-cdn.com/v4/letter/i/58f4c7/32.png) [@iamthebull](https://forum.inductiveautomation.com/u/iamthebull)\
**Post date:** [December 14, 2020, 4:39pm UTC](https://forum.inductiveautomation.com/t/manual-configuration-of-opc-ua-client-connections-fails-until-gateway-is-rebooted/41500/5 "2020-12-14T16:39:28Z")

</div>

Do you need all the advanced settings on the settings page?

---

<div class="post-metadata">

**Author:** ![iamthebull](https://avatars.discourse-cdn.com/v4/letter/i/58f4c7/32.png) [@iamthebull](https://forum.inductiveautomation.com/u/iamthebull)\
**Post date:** [December 14, 2020, 4:44pm UTC](https://forum.inductiveautomation.com/t/manual-configuration-of-opc-ua-client-connections-fails-until-gateway-is-rebooted/41500/6 "2020-12-14T16:44:02Z")

</div>

Attached wireshark capture and screenshots.  
[opc.zip](https://forum.inductiveautomation.com/uploads/short-url/a98a4AXMOyxLb1gqV14bK2cZXkr.zip) (2.3 MB)

---

<div class="post-metadata">

**Author:** ![iamthebull](https://avatars.discourse-cdn.com/v4/letter/i/58f4c7/32.png) [@iamthebull](https://forum.inductiveautomation.com/u/iamthebull)\
**Post date:** [December 14, 2020, 4:45pm UTC](https://forum.inductiveautomation.com/t/manual-configuration-of-opc-ua-client-connections-fails-until-gateway-is-rebooted/41500/7 "2020-12-14T16:45:58Z")

</div>

Editing and saving did not help.

---

<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:** [December 14, 2020, 4:54pm UTC](https://forum.inductiveautomation.com/t/manual-configuration-of-opc-ua-client-connections-fails-until-gateway-is-rebooted/41500/8 "2020-12-14T16:54:38Z")

</div>

If you turn the logger “com.inductiveautomation.ignition.gateway.opcua.client.ClientManager” to DEBUG and either wait or edit/save do you start seeing messages from it in the logs? What are they?

---

<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:** [December 14, 2020, 4:56pm UTC](https://forum.inductiveautomation.com/t/manual-configuration-of-opc-ua-client-connections-fails-until-gateway-is-rebooted/41500/9 "2020-12-14T16:56:14Z")

</div>

Nevermind I see the issue but can’t imagine why a gateway restart has anything to do with it.

The URL used/returned by the server is “opc.tcp://SimaticNETV16:55105”. You need to put the IP address (10.0.1.156) into the Host Override advanced setting.

If you had gone through the wizard instead of skipping to advanced this would/should have been done for you.

edit: err, actually, I think you need to use that exact endpoint URL (opc.tcp://SimaticNETV16:55105) as the Endpoint URL setting as well. And then whether or not you heed Host Override depends on if your Ignition gateway machine can resolve “SimaticNETV16” via DNS or not.

---

<div class="post-metadata">

**Author:** ![iamthebull](https://avatars.discourse-cdn.com/v4/letter/i/58f4c7/32.png) [@iamthebull](https://forum.inductiveautomation.com/u/iamthebull)\
**Post date:** [December 14, 2020, 5:13pm UTC](https://forum.inductiveautomation.com/t/manual-configuration-of-opc-ua-client-connections-fails-until-gateway-is-rebooted/41500/10 "2020-12-14T17:13:49Z")

</div>

Why does the URL need to be so exact? I also noticed it’s case sensitive. Normally URLs are not.  
And after a restart it accepts the configuration without the hostname.

---

<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:** [December 14, 2020, 5:23pm UTC](https://forum.inductiveautomation.com/t/manual-configuration-of-opc-ua-client-connections-fails-until-gateway-is-rebooted/41500/11 "2020-12-14T17:23:23Z")

</div>

URLs absolutely are case-sensitive, though some servers, especially web servers, may choose not to treat them as such.

It’s specific because that’s one of the criteria it uses to decide whether the server is still configured the same, or even the same server, as the one you originally set up the connection against.

After it suddenly starts working post-restart another Wireshark capture along with the logger I previously mentioned and screenshots of the config to verify nothing changed would be interesting.

---

<div class="post-metadata">

**Author:** ![iamthebull](https://avatars.discourse-cdn.com/v4/letter/i/58f4c7/32.png) [@iamthebull](https://forum.inductiveautomation.com/u/iamthebull)\
**Post date:** [December 14, 2020, 5:30pm UTC](https://forum.inductiveautomation.com/t/manual-configuration-of-opc-ua-client-connections-fails-until-gateway-is-rebooted/41500/12 "2020-12-14T17:30:11Z")

</div>

My thinking is that if it can sort itself out through a gateway restart then why can’t it do the same when the new config is originally added?

I do notice that the endpoint settings for the connection after reboot has the endpoint URL cleared but all other settings retained. I’ll get you another capture.

---

<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:** [December 14, 2020, 5:33pm UTC](https://forum.inductiveautomation.com/t/manual-configuration-of-opc-ua-client-connections-fails-until-gateway-is-rebooted/41500/13 "2020-12-14T17:33:35Z")

</div>

> [@iamthebull](#):
>
> I do notice that the endpoint settings for the connection after reboot has the endpoint URL cleared

Okay, this is a bug, but it's also why it's working even though you had configured it incorrectly. There is a provision in the logic to just skip the comparison if the configured endpoint URL is empty because it might not exist on upgrade from some old versions.

If you don't like the sharp edges of the advanced configuration then don't use it - step through the wizard instead.

---

<div class="post-metadata">

**Author:** ![iamthebull](https://avatars.discourse-cdn.com/v4/letter/i/58f4c7/32.png) [@iamthebull](https://forum.inductiveautomation.com/u/iamthebull)\
**Post date:** [December 14, 2020, 5:35pm UTC](https://forum.inductiveautomation.com/t/manual-configuration-of-opc-ua-client-connections-fails-until-gateway-is-rebooted/41500/14 "2020-12-14T17:35:17Z")

</div>

> [@Kevin.Herron](#):
>
> If you don’t like the sharp edges of the advanced configuration then don’t use it - step through the wizard instead.

I'm not complaining. Just trying to understand the process.

---

<div class="post-metadata">

**Author:** ![iamthebull](https://avatars.discourse-cdn.com/v4/letter/i/58f4c7/32.png) [@iamthebull](https://forum.inductiveautomation.com/u/iamthebull)\
**Post date:** [December 14, 2020, 5:37pm UTC](https://forum.inductiveautomation.com/t/manual-configuration-of-opc-ua-client-connections-fails-until-gateway-is-rebooted/41500/15 "2020-12-14T17:37:38Z")

</div>

Wireshark capture during reboot  
[reboot.zip](https://forum.inductiveautomation.com/uploads/short-url/fhrkgvAtDoTitLdk8wL6ZzeFqmy.zip) (1.8 MB)

---

<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:** [December 14, 2020, 5:38pm UTC](https://forum.inductiveautomation.com/t/manual-configuration-of-opc-ua-client-connections-fails-until-gateway-is-rebooted/41500/16 "2020-12-14T17:38:27Z")

</div>

Thanks, I’m certain though that the endpoint URL going blank is why this works. I’m going to open up a bug ticket for this.

---

<div class="post-metadata">

**Author:** ![iamthebull](https://avatars.discourse-cdn.com/v4/letter/i/58f4c7/32.png) [@iamthebull](https://forum.inductiveautomation.com/u/iamthebull)\
**Post date:** [December 14, 2020, 5:38pm UTC](https://forum.inductiveautomation.com/t/manual-configuration-of-opc-ua-client-connections-fails-until-gateway-is-rebooted/41500/17 "2020-12-14T17:38:29Z")

</div>

Side note: is it possible to add wireshark capture files to the allowed attachments list?

---

<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:** [December 14, 2020, 5:38pm UTC](https://forum.inductiveautomation.com/t/manual-configuration-of-opc-ua-client-connections-fails-until-gateway-is-rebooted/41500/18 "2020-12-14T17:38:52Z")

</div>

Hmm. Good idea. I’ll try to add it.

---

<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:** [December 14, 2020, 5:39pm UTC](https://forum.inductiveautomation.com/t/manual-configuration-of-opc-ua-client-connections-fails-until-gateway-is-rebooted/41500/19 "2020-12-14T17:39:38Z")

</div>

Ok, .cap and .pcap should both be allowed now…

---

<div class="post-metadata">

**Author:** ![iamthebull](https://avatars.discourse-cdn.com/v4/letter/i/58f4c7/32.png) [@iamthebull](https://forum.inductiveautomation.com/u/iamthebull)\
**Post date:** [December 14, 2020, 10:30pm UTC](https://forum.inductiveautomation.com/t/manual-configuration-of-opc-ua-client-connections-fails-until-gateway-is-rebooted/41500/20 "2020-12-14T22:30:14Z")

</div>

Is the discovery server only used to advertise available endpoints? Or is there additional functionality that it is used for? If the endpoint is known (along with security settings) is there any need or purpose in involving the discovery server at all?

[Next page](https://forum.inductiveautomation.com/t/manual-configuration-of-opc-ua-client-connections-fails-until-gateway-is-rebooted/41500.md?page=2)
