Problem with OPC-UA connection

I have a strange issue with an OPC-UA connection. In the gateway in status is showing an OPC-UA connection that I cannot see in gateway config. It is marked as FAULTED and it shows the exception:

java.lang.Exception: Error creating OPC server “SIMATIC.S7-1500.OPC-UAServer:PLC_1” of type “com.inductiveautomation.OpcUaServerType”

  • at com.inductiveautomation.ignition.gateway.opc.OpcConnectionManagerImpl.newOpcConnection(OpcConnectionManagerImpl.java:166)*
  • at com.inductiveautomation.ignition.gateway.opc.OpcConnectionManagerImpl.registerConnectionType(OpcConnectionManagerImpl.java:243)*
  • at com.inductiveautomation.ignition.gateway.opcua.OpcUaModule.startup(OpcUaModule.kt:304)*
  • at com.inductiveautomation.ignition.gateway.opcua.OpcUaModuleHook.startup(OpcUaModuleHook.kt)*
  • at com.inductiveautomation.ignition.gateway.modules.ModuleManagerImpl$LoadedModule.startup(ModuleManagerImpl.java:2433)*
  • at com.inductiveautomation.ignition.gateway.modules.ModuleManagerImpl.startup(ModuleManagerImpl.java:411)*
  • at com.inductiveautomation.ignition.gateway.IgnitionGateway.startupInternal(IgnitionGateway.java:1146)*
  • at com.inductiveautomation.ignition.gateway.redundancy.RedundancyManagerImpl.startup(RedundancyManagerImpl.java:293)*
  • at com.inductiveautomation.ignition.gateway.IgnitionGateway.initRedundancy(IgnitionGateway.java:710)*
  • at com.inductiveautomation.ignition.gateway.IgnitionGateway.lambda$initInternal$0(IgnitionGateway.java:644)*
  • at com.inductiveautomation.ignition.common.execution.impl.BasicExecutionEngine$ThrowableCatchingRunnable.run(BasicExecutionEngine.java:518)*
  • 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.IllegalStateException: context.persistenceInter…erSettings)
  •        ) must not be null*
    
  • at com.inductiveautomation.ignition.gateway.opcua.client.connection.OpcUaConnectionType.createNewOpcConnection(OpcUaConnectionType.kt:43)*
  • at com.inductiveautomation.ignition.gateway.opc.OpcConnectionManagerImpl.newOpcConnection(OpcConnectionManagerImpl.java:161)*
  • … 16 more*

8.0.17 (b2020111211)
Azul Systems, Inc. 11.0.7

It is very annoying because I have a table where I show all OPC-UA connections (despite they are FAULTED or CONNECTED) and this one is appearing there and no one know what it is. The table uses the script system.opc.getServers() to be filled.

Does someone know what can be the reason of this connection?

Was this server an upgrade from v7.9? That might be the old OPC-UA classname that doesn’t exist in v8+. You might want support to walk you through the internal DB corrections that will be needed.

Some field in the internal DB is null but I can't tell what's going on because the stack trace you posted is mangled.

As Phil suggested though it might require some poking around in the internal DB by support. The connection name is "SIMATIC.S7-1500.OPC-UAServer:PLC_1".

yes as you say I upgraded from 7.9 to 8, but it was long time ago and this connection appeared for first time some days ago.

I tried to find the connection in the internal Ignition db, I ran the following query, but this ‘phantom’ connection doesn’t exist:

select OPCSERVERS_ID, NAME, TYPE, DESCRIPTION, READONLY from OPCSERVERS;

I solved uninstalling Ignition and installing it again. I loaded a gateway backup and surprising the connection disappeared.