# OPC UA Connection Wth Kepserver Intermitant faulted

**URL:** <https://forum.inductiveautomation.com/t/opc-ua-connection-wth-kepserver-intermitant-faulted/43849>\
**Category:** Ignition\
**Created:** [February 25, 2021, 9:13pm UTC](https://forum.inductiveautomation.com/t/opc-ua-connection-wth-kepserver-intermitant-faulted/43849 "2021-02-25T21:13:29Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![samuel.croft-trembla](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@samuel.croft-trembla](https://forum.inductiveautomation.com/u/samuel.croft-trembla)\
**Post date:** [February 25, 2021, 9:13pm UTC](https://forum.inductiveautomation.com/t/opc-ua-connection-wth-kepserver-intermitant-faulted/43849/1 "2021-02-25T21:13:29Z")

</div>

Hey, I’m using Ignition 8.0.4 with Kepserver EX 6.6. I have 2 different machine having the same exact setup in term of version and configuration only different IP. One machine is working just fine and the other is always getting faulted then reconnect rinse and repeat. Here is the result im getting for the faulted code.

java.lang.Exception: session inactive: id=NodeId{ns=1, id=d2a6326e-e44f-4d6e-8dbe-fa0acf6dce47} name=ignition[Ignition-Ignition-cta]\_KepServerEX/UA Corrosion\_1614287155977  
at com.inductiveautomation.ignition.gateway.opcua.client.connection.OpcUaConnection$MiloSessionActivityListener.onSessionInactive(OpcUaConnection.kt:287)  
at org.eclipse.milo.opcua.sdk.client.session.SessionFsmFactory.lambda$null$31(SessionFsmFactory.java:557)  
at java.base/java.util.concurrent.CopyOnWriteArrayList.forEach(Unknown Source)  
at org.eclipse.milo.opcua.sdk.client.session.SessionFsmFactory.lambda$configureActiveState$32(SessionFsmFactory.java:557)  
at com.digitalpetri.strictmachine.dsl.ActionBuilder$PredicatedTransitionAction.execute(ActionBuilder.java:76)  
at com.digitalpetri.strictmachine.StrictMachine$PollAndEvaluate.lambda$run$0(StrictMachine.java:207)  
at java.base/java.util.ArrayList.forEach(Unknown Source)  
at com.digitalpetri.strictmachine.StrictMachine$PollAndEvaluate.run(StrictMachine.java:198)  
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)  
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  
at java.base/java.lang.Thread.run(Unknown Source)

8.0.4 (b2019091612)  
Azul Systems, Inc. 11.0.4

Anyone have an Idea what could be my problem. I’m only trying to transfer 9 tags from the machine that his faulted.

Thanks for your 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:** [February 25, 2021, 9:17pm UTC](https://forum.inductiveautomation.com/t/opc-ua-connection-wth-kepserver-intermitant-faulted/43849/2 "2021-02-25T21:17:19Z")

</div>

Can you upload your gateway logs as well?

Usually the connection faults because KSE stops responding to the “keep alive” requests and a reconnect is forced, but it could be something else.

---

<div class="post-metadata">

**Author:** ![samuel.croft-trembla](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@samuel.croft-trembla](https://forum.inductiveautomation.com/u/samuel.croft-trembla)\
**Post date:** [February 25, 2021, 9:19pm UTC](https://forum.inductiveautomation.com/t/opc-ua-connection-wth-kepserver-intermitant-faulted/43849/3 "2021-02-25T21:19:03Z")

</div>

| SessionFsm | 25Feb2021 16:18:01 | [52] Keep Alive failureCount=1 exceeds failuresAllowed=0 |
| --- | --- | --- |
| UascClientMessageHandler | 25Feb2021 16:17:36 | No pending request with requestId=743 for ServiceFault |
| UascClientMessageHandler | 25Feb2021 16:17:36 | No pending request with requestId=738 for ServiceFault |
| UascClientMessageHandler | 25Feb2021 16:17:36 | No pending request with requestId=742 for ServiceFault |
| SessionFsm | 25Feb2021 16:17:06 | [15] Keep Alive failureCount=2 exceeds failuresAllowed=1 |
| SessionFsm | 25Feb2021 16:16:51 | [52] Keep Alive failureCount=1 exceeds failuresAllowed=0 |
| UascClientMessageHandler | 25Feb2021 16:16:26 | No pending request with requestId=595 for ServiceFault |
| UascClientMessageHandler | 25Feb2021 16:16:26 | No pending request with requestId=594 for ServiceFault |
| UascClientMessageHandler | 25Feb2021 16:16:26 | No pending request with requestId=591 for ServiceFault |
| SessionFsm | 25Feb2021 16:15:57 | [15] Keep Alive failureCount=2 exceeds failuresAllowed=1 |
| SessionFsm | 25Feb2021 16:15:42 | [52] Keep Alive failureCount=1 exceeds failuresAllowed=0 |
| UascClientMessageHandler | 25Feb2021 16:15:17 | No pending request with requestId=447 for CreateSessionResponse |
| UascClientMessageHandler | 25Feb2021 16:15:17 | No pending request with requestId=444 for CreateSessionResponse |
| UascClientMessageHandler | 25Feb2021 16:15:17 | No pending request with requestId=446 for ServiceFault |
| UascClientMessageHandler | 25Feb2021 16:15:17 | No pending request with requestId=443 for ServiceFault |
| UascClientMessageHandler | 25Feb2021 16:15:17 | No pending request with requestId=445 for ServiceFault |
| SessionFsm | 25Feb2021 16:13:57 | [15] Keep Alive failureCount=2 exceeds failuresAllowed=1 |
| SessionFsm | 25Feb2021 16:13:42 | [52] Keep Alive failureCount=1 exceeds failuresAllowed=0 |
| UascClientMessageHandler | 25Feb2021 16:13:01 | No pending request with requestId=297 for ServiceFault |
| UascClientMessageHandler | 25Feb2021 16:13:01 | No pending request with requestId=295 for ServiceFault |
| UascClientMessageHandler | 25Feb2021 16:13:01 | No pending request with requestId=296 for ServiceFault |
| SessionFsm | 25Feb2021 16:12:32 | [15] Keep Alive failureCount=2 exceeds failuresAllowed=1 |
| SessionFsm | 25Feb2021 16:12:17 | [52] Keep Alive failureCount=1 exceeds failuresAllowed=0 |

its about the same errors for days of logs let me know if you need more hehe 😛 !

---

<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 25, 2021, 9:21pm UTC](https://forum.inductiveautomation.com/t/opc-ua-connection-wth-kepserver-intermitant-faulted/43849/4 "2021-02-25T21:21:30Z")

</div>

Seems like both your connections experience this lack of response from KSE at the same time but one is configured to allow more keep alive failures than the other.

So, maybe you can tweak those settings, but also there might be something about your network or environment causing this failure rather than KSE lagging or not responding for some reason, assuming those are 2 different servers.

---

<div class="post-metadata">

**Author:** ![samuel.croft-trembla](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@samuel.croft-trembla](https://forum.inductiveautomation.com/u/samuel.croft-trembla)\
**Post date:** [February 25, 2021, 9:23pm UTC](https://forum.inductiveautomation.com/t/opc-ua-connection-wth-kepserver-intermitant-faulted/43849/5 "2021-02-25T21:23:01Z")

</div>

Yeah 2 differents servers but they are on the same subnet and they are like twin. Ill try to tweak it see if logs changes.

---

<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 25, 2021, 9:24pm UTC](https://forum.inductiveautomation.com/t/opc-ua-connection-wth-kepserver-intermitant-faulted/43849/6 "2021-02-25T21:24:26Z")

</div>

The default keep-alive settings are: 1 failure allowed, 15,000ms interval, 10,000ms timeout.

Might be worth trying 2 allowed with the rest at default.

---

<div class="post-metadata">

**Author:** ![samuel.croft-trembla](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@samuel.croft-trembla](https://forum.inductiveautomation.com/u/samuel.croft-trembla)\
**Post date:** [February 25, 2021, 9:29pm UTC](https://forum.inductiveautomation.com/t/opc-ua-connection-wth-kepserver-intermitant-faulted/43849/7 "2021-02-25T21:29:30Z")

</div>

| UascClientMessageHandler | 25Feb2021 16:29:06 | No pending request with requestId=1048 for CreateSessionResponse |
| --- | --- | --- |
| UascClientMessageHandler | 25Feb2021 16:29:06 | No pending request with requestId=1047 for CreateSessionResponse |
| UascClientMessageHandler | 25Feb2021 16:29:06 | No pending request with requestId=1046 for CreateSessionResponse |
| UascClientMessageHandler | 25Feb2021 16:29:06 | No pending request with requestId=1045 for CreateSessionResponse |
| UascClientMessageHandler | 25Feb2021 16:29:06 | No pending request with requestId=1044 for CreateSessionResponse |
| UascClientMessageHandler | 25Feb2021 16:29:06 | No pending request with requestId=1043 for CreateSessionResponse |
| UascClientMessageHandler | 25Feb2021 16:29:06 | No pending request with requestId=1042 for CreateSessionResponse |
| UascClientMessageHandler | 25Feb2021 16:29:06 | No pending request with requestId=1041 for ServiceFault |
| UascClientMessageHandler | 25Feb2021 16:29:06 | No pending request with requestId=1040 for ServiceFault |
| SessionFsm | 25Feb2021 16:29:02 | [64] Keep Alive failureCount=3 exceeds failuresAllowed=2 |

---

<div class="post-metadata">

**Author:** ![samuel.croft-trembla](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@samuel.croft-trembla](https://forum.inductiveautomation.com/u/samuel.croft-trembla)\
**Post date:** [February 25, 2021, 9:30pm UTC](https://forum.inductiveautomation.com/t/opc-ua-connection-wth-kepserver-intermitant-faulted/43849/8 "2021-02-25T21:30:44Z")

</div>

| UascClientMessageHandler | 25Feb2021 16:30:10 | No pending request with requestId=151 for CreateSessionResponse |
| --- | --- | --- |
| UascClientMessageHandler | 25Feb2021 16:30:10 | No pending request with requestId=150 for ServiceFault |
| UascClientMessageHandler | 25Feb2021 16:30:10 | No pending request with requestId=149 for ServiceFault |
| UascClientMessageHandler | 25Feb2021 16:30:10 | No pending request with requestId=148 for ServiceFault |
| SessionFsm | 25Feb2021 16:29:46 | [15] Keep Alive failureCount=2 exceeds failuresAllowed=1 |

---

<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 25, 2021, 9:34pm UTC](https://forum.inductiveautomation.com/t/opc-ua-connection-wth-kepserver-intermitant-faulted/43849/9 "2021-02-25T21:34:55Z")

</div>

Might be interesting to capture with Wireshark on the Ignition server while this is all going on.
