# OPC Connection Faulted on Single OPC Connection (All Others Function)

**URL:** <https://forum.inductiveautomation.com/t/opc-connection-faulted-on-single-opc-connection-all-others-function/104858>\
**Category:** Ignition\
**Tags:** opcua\
**Created:** [April 8, 2025, 6:54pm UTC](https://forum.inductiveautomation.com/t/opc-connection-faulted-on-single-opc-connection-all-others-function/104858 "2025-04-08T18:54:54Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![jacob.simko](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@jacob.simko](https://forum.inductiveautomation.com/u/jacob.simko)\
**Post date:** [April 8, 2025, 6:54pm UTC](https://forum.inductiveautomation.com/t/opc-connection-faulted-on-single-opc-connection-all-others-function/104858/1 "2025-04-08T18:54:54Z")

</div>

I have a single OPC connection that always remains faulted.  
I have matched all of my settings to the rest of my systems, and tried restarting multiple times and checking all of the certs.

```python
java.lang.Exception: Error creating OPC server "REDACTED PC NAME" of type "com.inductiveautomation.OpcUaServerType"
	at com.inductiveautomation.ignition.gateway.opc.OpcConnectionManagerImpl.newOpcConnection(OpcConnectionManagerImpl.java:194)
	at com.inductiveautomation.ignition.gateway.opc.OpcConnectionManagerImpl.createAndStartConnection(OpcConnectionManagerImpl.java:613)
	at com.inductiveautomation.ignition.gateway.opc.OpcConnectionManagerImpl$OpcRecordListener.recordUpdated(OpcConnectionManagerImpl.java:602)
	at com.inductiveautomation.ignition.gateway.opc.OpcConnectionManagerImpl$OpcRecordListener.recordUpdated(OpcConnectionManagerImpl.java:577)
	at com.inductiveautomation.ignition.gateway.localdb.PersistenceInterfaceImpl.notifyRecordUpdated(PersistenceInterfaceImpl.java:179)
	at com.inductiveautomation.ignition.gateway.redundancy.RedundantPersistenceInterfaceImpl.doNotifyRecordUpdated(RedundantPersistenceInterfaceImpl.java:111)
	at com.inductiveautomation.ignition.gateway.redundancy.RedundantPersistenceInterfaceImpl$RecordUpdateListener.recordUpdated(RedundantPersistenceInterfaceImpl.java:407)
	at com.inductiveautomation.ignition.gateway.redundancy.RedundantPersistenceInterfaceImpl$RecordUpdateMessage.notify(RedundantPersistenceInterfaceImpl.java:457)
	at com.inductiveautomation.ignition.gateway.redundancy.RedundantPersistenceInterfaceImpl$RecordUpdateListener.receiveCall(RedundantPersistenceInterfaceImpl.java:390)
	at com.inductiveautomation.ignition.gateway.redundancy.QueueableMessageReceiver.receiveCall(QueueableMessageReceiver.java:47)
	at com.inductiveautomation.ignition.gateway.redundancy.RedundancyManagerImpl.dispatchMessage(RedundancyManagerImpl.java:1007)
	at com.inductiveautomation.ignition.gateway.redundancy.RedundancyManagerImpl$ExecuteTask.run(RedundancyManagerImpl.java:1075)
	at com.inductiveautomation.ignition.common.execution.impl.BasicExecutionEngine$ThrowableCatchingRunnable.run(BasicExecutionEngine.java:544)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
	at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
	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)
Caused by: java.lang.NullPointerException: context.persistenceInter…erSettings)
            ) must not be null
	at com.inductiveautomation.ignition.gateway.opcua.client.connection.OpcUaConnectionType.createNewOpcConnection(OpcUaConnectionType.kt:49)
	at com.inductiveautomation.ignition.gateway.opc.OpcConnectionManagerImpl.newOpcConnection(OpcConnectionManagerImpl.java:171)
	... 18 more

8.1.21 (b2022092908)
Azul Systems, Inc. 11.0.15

```

---

<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 8, 2025, 7:06pm UTC](https://forum.inductiveautomation.com/t/opc-connection-faulted-on-single-opc-connection-all-others-function/104858/2 "2025-04-08T19:06:45Z")

</div>

> [@jacob.simko](#):
>
> ```python
> Caused by: java.lang.NullPointerException: context.persistenceInter…erSettings)
> ) must not be null
> 
> ```

Did something get lost in the copy/paste here? Seems like it should have been telling you what can't be null here.

---

<div class="post-metadata">

**Author:** ![jacob.simko](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@jacob.simko](https://forum.inductiveautomation.com/u/jacob.simko)\
**Post date:** [April 8, 2025, 7:08pm UTC](https://forum.inductiveautomation.com/t/opc-connection-faulted-on-single-opc-connection-all-others-function/104858/3 "2025-04-08T19:08:18Z")

</div>

Nope, that is the fully copied and pasted message from the page.

---

<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 8, 2025, 7:08pm UTC](https://forum.inductiveautomation.com/t/opc-connection-faulted-on-single-opc-connection-all-others-function/104858/4 "2025-04-08T19:08:59Z")

</div>

Can you look in the logs and see if it's any different there?

---

<div class="post-metadata">

**Author:** ![jacob.simko](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@jacob.simko](https://forum.inductiveautomation.com/u/jacob.simko)\
**Post date:** [April 8, 2025, 7:09pm UTC](https://forum.inductiveautomation.com/t/opc-connection-faulted-on-single-opc-connection-all-others-function/104858/5 "2025-04-08T19:09:59Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jacob.simko](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@jacob.simko](https://forum.inductiveautomation.com/u/jacob.simko)\
**Post date:** [April 8, 2025, 7:12pm UTC](https://forum.inductiveautomation.com/t/opc-connection-faulted-on-single-opc-connection-all-others-function/104858/6 "2025-04-08T19:12:41Z")

</div>

These are just a bunch of connections that can't be seen due to configs in designer needing to be setup.

---

<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 8, 2025, 7:12pm UTC](https://forum.inductiveautomation.com/t/opc-connection-faulted-on-single-opc-connection-all-others-function/104858/7 "2025-04-08T19:12:46Z")

</div>

No that won't help. If you upload your wrapper.log files or an export/download of the logs I can take a look.

---

<div class="post-metadata">

**Author:** ![jacob.simko](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@jacob.simko](https://forum.inductiveautomation.com/u/jacob.simko)\
**Post date:** [April 8, 2025, 7:13pm UTC](https://forum.inductiveautomation.com/t/opc-connection-faulted-on-single-opc-connection-all-others-function/104858/8 "2025-04-08T19:13:34Z")

</div>

The file of logs is too big to share

---

<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 8, 2025, 7:14pm UTC](https://forum.inductiveautomation.com/t/opc-connection-faulted-on-single-opc-connection-all-others-function/104858/9 "2025-04-08T19:14:56Z")

</div>

First, do an edit/save on that connection without changing anything, it will add another error entry to the logs.

---

<div class="post-metadata">

**Author:** ![jacob.simko](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@jacob.simko](https://forum.inductiveautomation.com/u/jacob.simko)\
**Post date:** [April 8, 2025, 7:19pm UTC](https://forum.inductiveautomation.com/t/opc-connection-faulted-on-single-opc-connection-all-others-function/104858/10 "2025-04-08T19:19:31Z")

</div>

Uploading now (this is the wrapper log from the primary gateway (not the pc that it isn't seeing)

---

<div class="post-metadata">

**Author:** ![jacob.simko](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@jacob.simko](https://forum.inductiveautomation.com/u/jacob.simko)\
**Post date:** [April 8, 2025, 7:22pm UTC](https://forum.inductiveautomation.com/t/opc-connection-faulted-on-single-opc-connection-all-others-function/104858/11 "2025-04-08T19:22:47Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/4/746064f3a55c2c83b8e5931072282ba4ba9001c8.png)  
I have 3 that have been working, and this latest one is the only one to fail

---

<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 8, 2025, 7:39pm UTC](https://forum.inductiveautomation.com/t/opc-connection-faulted-on-single-opc-connection-all-others-function/104858/12 "2025-04-08T19:39:22Z")

</div>

Dang, the log message I was hoping would help does not log the stack trace ☹

Try deleting that connection and creating it again. If that doesn't work call support so they can get a gateway backup or poke at the internal DB.

---

<div class="post-metadata">

**Author:** ![jacob.simko](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@jacob.simko](https://forum.inductiveautomation.com/u/jacob.simko)\
**Post date:** [April 8, 2025, 7:40pm UTC](https://forum.inductiveautomation.com/t/opc-connection-faulted-on-single-opc-connection-all-others-function/104858/13 "2025-04-08T19:40:26Z")

</div>

I have deleted and readded the connection several times now, no luck

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [April 8, 2025, 7:49pm UTC](https://forum.inductiveautomation.com/t/opc-connection-faulted-on-single-opc-connection-all-others-function/104858/14 "2025-04-08T19:49:54Z")

</div>

When I don't get the full trace from an NPE, I ask my clients to add this to `ignition.conf`:

```python
wrapper.java.additional.13=-XX:-OmitStackTraceInFastThrow

```

.. with a suitable unique number in place of the `.13`.

(I use this on all of my test VMs for this 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:** [April 8, 2025, 7:50pm UTC](https://forum.inductiveautomation.com/t/opc-connection-faulted-on-single-opc-connection-all-others-function/104858/15 "2025-04-08T19:50:41Z")

</div>

I think they might be getting it, but the stack trace isn't being logged, and possibly the web UI is mangling it. I can't really tell. As it has been copied/pasted something looks off to me.

---

<div class="post-metadata">

**Author:** ![jacob.simko](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@jacob.simko](https://forum.inductiveautomation.com/u/jacob.simko)\
**Post date:** [April 8, 2025, 8:01pm UTC](https://forum.inductiveautomation.com/t/opc-connection-faulted-on-single-opc-connection-all-others-function/104858/16 "2025-04-08T20:01:09Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/8/78696a739239983c4839b306437665092db24a1b.png)  
Not sure if it is related, but the EAM role on PC that my primary gateway cannot see is unknown (normally it would be agent)

---

<div class="post-metadata">

**Author:** ![jacob.simko](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@jacob.simko](https://forum.inductiveautomation.com/u/jacob.simko)\
**Post date:** [April 8, 2025, 8:05pm UTC](https://forum.inductiveautomation.com/t/opc-connection-faulted-on-single-opc-connection-all-others-function/104858/17 "2025-04-08T20:05:42Z")

</div>

Went ahead and fixed that (but this didn't impact our issue)

---

<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 8, 2025, 8:05pm UTC](https://forum.inductiveautomation.com/t/opc-connection-faulted-on-single-opc-connection-all-others-function/104858/18 "2025-04-08T20:05:51Z")

</div>

You can try restarting the Gateway 🤷‍♂️

---

<div class="post-metadata">

**Author:** ![jacob.simko](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@jacob.simko](https://forum.inductiveautomation.com/u/jacob.simko)\
**Post date:** [April 8, 2025, 8:07pm UTC](https://forum.inductiveautomation.com/t/opc-connection-faulted-on-single-opc-connection-all-others-function/104858/19 "2025-04-08T20:07:26Z")

</div>

Restarting the Gateway is currently not an option (live system with no history of this being needed in the past)

---

<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 8, 2025, 8:08pm UTC](https://forum.inductiveautomation.com/t/opc-connection-faulted-on-single-opc-connection-all-others-function/104858/20 "2025-04-08T20:08:22Z")

</div>

You'll have to call support and open a ticket so they can get a gateway backup or look at the IDB then.
