# NI OPC-UA Server connection is Faulted

**URL:** <https://forum.inductiveautomation.com/t/ni-opc-ua-server-connection-is-faulted/18889>\
**Category:** Ignition\
**Created:** [July 19, 2018, 2:06am UTC](https://forum.inductiveautomation.com/t/ni-opc-ua-server-connection-is-faulted/18889 "2018-07-19T02:06:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mazhig](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@mazhig](https://forum.inductiveautomation.com/u/mazhig)\
**Post date:** [July 19, 2018, 2:06am UTC](https://forum.inductiveautomation.com/t/ni-opc-ua-server-connection-is-faulted/18889/1 "2018-07-19T02:06:26Z")

</div>

I want to connect a NI OPC-UA server via add the 3rd server,I have trusted the ignition client at the server. but the connection always is faulted. How do I slove this issue?

And the faulted information as follow:

_UaServiceFaultException: status=Bad\_OutOfMemory, message=Not enough memory to complete the operation._  
\_ at org.eclipse.milo.opcua.stack.client.UaTcpStackClient.receiveResponse(UaTcpStackClient.java:294)\_  
\_ at org.eclipse.milo.opcua.stack.client.UaTcpStackClient.lambda$sendRequest$3(UaTcpStackClient.java:147)\_  
\_ at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:760)\_  
\_ at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:736)\_  
\_ at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474)\_  
\_ at java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:1962)\_  
\_ at org.eclipse.milo.opcua.stack.client.handlers.UaTcpClientMessageHandler.lambda$null$19(UaTcpClientMessageHandler.java:539)\_  
\_ at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\_  
\_ at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\_  
\_ at java.lang.Thread.run(Thread.java:748)\_

_7.9.2 (b2017041315)_  
_Oracle Corporation 1.8.0\_161_

The Ignition setting as follow:  
Name: maves  
Read-only:false  
Enabled:True  
others setting is default

---

<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:** [July 19, 2018, 3:32am UTC](https://forum.inductiveautomation.com/t/ni-opc-ua-server-connection-is-faulted/18889/2 "2018-07-19T03:32:28Z")

</div>

Can you upgrade Ignition to 7.9.8 and see if anything changes? I vaguely recall some kind of interoperability issue between Ignition and the NI server but I can’t remember when it happened. In any case, `Bad_OutOfMemory` status is being returned by the server here… usually an issue on the server side.

---

<div class="post-metadata">

**Author:** ![GreggCavazos](https://avatars.discourse-cdn.com/v4/letter/g/90db22/32.png) [@GreggCavazos](https://forum.inductiveautomation.com/u/GreggCavazos)\
**Post date:** [March 6, 2019, 9:33pm UTC](https://forum.inductiveautomation.com/t/ni-opc-ua-server-connection-is-faulted/18889/3 "2019-03-06T21:33:09Z")

</div>

We are having the same issue, with 7.9.10, is there anything I can check from the server side? I added the “Server Log Diagnostics”, and in the NI OPC server I see a log when the connection is opened and then it logged the following

```auto
Date Time Level Source Event
3/6/2019 3:31:08 PM Information UA Server UaServer_EndpointCallback: SecureChannel 18242561 opened!
3/6/2019 3:31:08 PM Information UA Server Security Mode 1 Security Policy http://opcfoundation.org/UA/SecurityPolicy#None
3/6/2019 3:31:08 PM Information UA Server UaServer_EndpointCallback: SecureChannel 18242561 closed! [status=0x0]

```

In IGN side I get.

```auto
UaServiceFaultException: status=Bad_OutOfMemory, message=Not enough memory to complete the operation.
	at org.eclipse.milo.opcua.stack.client.UaTcpStackClient.lambda$receiveResponse$14(UaTcpStackClient.java:358)
	at org.eclipse.milo.opcua.stack.core.util.ExecutionQueue$PollAndExecute.run(ExecutionQueue.java:107)
	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

7.9.10 (b2018112821)
Oracle Corporation 1.8.0_152

```

I changed the OPCUA logs to DEBUG and get this, not sure if related, but I have reissued certificates a few times and still doesn’t work. (of course I trusted the client in the NI OPC).

```auto

org.eclipse.milo.opcua.stack.core.UaException: status=Bad_CertificateUriInvalid, description=The URI specified in the ApplicationDescription does not match the URI in the Certificate.
at org.eclipse.milo.opcua.stack.core.util.CertificateValidationUtil.validateApplicationUri(CertificateValidationUtil.java:222)
at com.inductiveautomation.xopc2.client.ClientManager.lambda$connect$9(ClientManager.java:172)
at java.util.concurrent.CompletableFuture.uniWhenComplete(Unknown Source)
at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(Unknown Source)
at java.util.concurrent.CompletableFuture.postComplete(Unknown Source)
at java.util.concurrent.CompletableFuture.complete(Unknown Source)
at org.eclipse.milo.opcua.stack.client.UaTcpStackClient.lambda$receiveResponse$14(UaTcpStackClient.java:343)
at 
org.eclipse.milo.opcua.stack.core.util.ExecutionQueue$PollAndExecute.run(ExecutionQueue.java:107)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

```

---

<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:** [March 6, 2019, 9:57pm UTC](https://forum.inductiveautomation.com/t/ni-opc-ua-server-connection-is-faulted/18889/4 "2019-03-06T21:57:55Z")

</div>

These are 2 different errors and both are problems with the server.

In the first one, the server is returning `Bad_OutOfMemory` in response to some operation.

In the second, the server is misconfigured in a way surprisingly accurately described by the error message: “The URI specified in the ApplicationDescription does not match the URI in the Certificate.”

This is an interoperability issue that you probably need to get in touch with NI to fix - it means they are putting the wrong information into their certificate when they generate it.

---

<div class="post-metadata">

**Author:** ![seancourtney1](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@seancourtney1](https://forum.inductiveautomation.com/u/seancourtney1)\
**Post date:** [July 6, 2020, 12:15am UTC](https://forum.inductiveautomation.com/t/ni-opc-ua-server-connection-is-faulted/18889/5 "2020-07-06T00:15:39Z")

</div>

Has anybody found a solution to this. Im on 8.0.13, and same problem.
