# 7.6.1-rc1 problem with OPC-UA connection to remote server

**URL:** <https://forum.inductiveautomation.com/t/7-6-1-rc1-problem-with-opc-ua-connection-to-remote-server/6511>\
**Category:** Ignition\
**Created:** [May 17, 2013, 11:07am UTC](https://forum.inductiveautomation.com/t/7-6-1-rc1-problem-with-opc-ua-connection-to-remote-server/6511 "2013-05-17T11:07:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chi](https://avatars.discourse-cdn.com/v4/letter/c/0ea827/32.png) [@chi](https://forum.inductiveautomation.com/u/chi)\
**Post date:** [May 17, 2013, 11:07am UTC](https://forum.inductiveautomation.com/t/7-6-1-rc1-problem-with-opc-ua-connection-to-remote-server/6511/1 "2013-05-17T11:07:35Z")

</div>

Hello,

I have got a problem with the OPC-UA Client in 7.6.1-rc when a remote server is connected. I’m not sure if this is new to 7.6 as i never used such a configuration before.

To prepare the migration from 7.5 to 7.6 i added a OPC-UA connection from the 7.6 test system to the 7.5.6 production system. After that, i see all OPC-UA items on the 7.6 system stale for some minutes after a gateway restart. The problem is not reproduceable on every getway restart, but the chance to trigger it increases with the waiting time between stop an restart.

I added a log file of the intersting time span, here is a short summary:

`
INFO | jvm 1 | 2013/05/17 11:54:23 | ERROR [LocalDBManagerImpl] [11:54:23,659]: Error updating features for module: modbusdriver2
INFO | jvm 1 | 2013/05/17 11:54:23 | java.sql.SQLSyntaxErrorException: user lacks privilege or object not found: PUBLIC.MODBUSRTUDRIVERSETTINGS
`This happened already before adding the remote connection and seems to cause no problems.

```auto
INFO | jvm 1 | 2013/05/17 11:54:32 | ERROR [OpcUaConnection:Ignition OPC-UA Server] [11:54:32,151]: Reading server time and state timed out, disconnecting...
...
The connected Modbus devices close the connection here, because they have seen no activity afetr the initial connect.
INFO | jvm 1 | 2013/05/17 11:55:25 | ERROR [SocketIODelegate] [11:55:25,818]: [hostname=10.224.62.80,port=502] Socket connection closed, DriverState was Connected.
INFO | jvm 1 | 2013/05/17 11:55:25 | java.io.IOException: End of stream reached.
...
INFO | jvm 1 | 2013/05/17 11:56:27 | ERROR [SubscriptionManager] [11:56:27,026]: Error adding 1 nodes to subscription 'Scanclass 'emErwZustand[default]'' @ 1 seconds.
INFO | jvm 1 | 2013/05/17 11:56:27 | StatusCode[Severity=Bad, Subcode=Bad_Timeout]: Request timed out after 120000 milliseconds.
INFO | jvm 1 | 2013/05/17 11:56:27 | ERROR [SubscriptionManager] [11:56:27,136]: Error adding 1 nodes to subscription 'Scanclass 'emErwZustand[default]'' @ 1 seconds.
INFO | jvm 1 | 2013/05/17 11:56:27 | StatusCode[Severity=Bad, Subcode=Bad_Timeout]: Request timed out after 120000 milliseconds.
...
INFO | jvm 1 | 2013/05/17 11:56:33 | WARN [TCPServerChannel] [11:56:33,355]: Connection lost due to IOException.
INFO | jvm 1 | 2013/05/17 11:56:33 | java.io.IOException: End of stream reached.
INFO | jvm 1 | 2013/05/17 11:56:33 | at com.inductiveautomation.iosession.socket.AsyncSocketIOSession.run(AsyncSocketIOSession.java:74)
INFO | jvm 1 | 2013/05/17 11:56:33 | at java.lang.Thread.run(Unknown Source)
INFO | jvm 1 | 2013/05/17 11:56:33 | ERROR [SubscriptionManager] [11:56:33,355]: Error adding 1 nodes to subscription 'Scanclass 'emErwZustand[default]'' @ 1 seconds.
INFO | jvm 1 | 2013/05/17 11:56:33 | StatusCode[Severity=Bad, Subcode=Bad_NotConnected]: Bad_NotConnected
...
This message applies to the remote connection
INFO | jvm 1 | 2013/05/17 11:56:43 | ERROR [OpcUaConnection:OPC-UA Prod-Server] [11:56:43,810]: Reading server time and state timed out, disconnecting...
...
INFO | jvm 1 | 2013/05/17 11:58:31 | ERROR [SubscriptionManager] [11:58:31,195]: Error adding 10 nodes to subscription 'Scanclass 'emZaehlerLesen[default]'' @ 10 seconds.
INFO | jvm 1 | 2013/05/17 11:58:31 | StatusCode[Severity=Bad, Subcode=Bad_SessionIdInvalid]: ServiceFault: StatusCode[Severity=Bad, Subcode=Bad_SessionIdInvalid]
INFO | jvm 1 | 2013/05/17 11:58:31 | INFO [ActivateSessionService] [11:58:31,285]: User "{schedule=Always, username=opcuauser, lastname=, language=null, firstname=, notes=}" connected.
At this point all OPC-UA tags are ok, except for on tag on the remote server.
```

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/b/b58adfb3ee58f983e9a0441603f0355daa0042a9.png)  

When this problem occurs, one tag from the remote server stays stale. After a normal restart, this tag is ok (but becomes tale sometimes for a short period). On the remote 7.5.6 system, the tag has no problems.

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/6/69ad9f16705884117740d82b731f2e753b5a16e8.png)  
  
[thread-dump.txt](https://us1.discourse-cdn.com/inductiveautomation/original/2X/7/79040c5e2816c11810bc7e919f554f52ad593040.txt) (45.8 KB)  
[wrapper.log](https://us1.discourse-cdn.com/inductiveautomation/original/2X/d/d807804ccbf895cc065defeabc12478ef5751a93.log) (85.1 KB)

---

<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:** [May 17, 2013, 1:55pm UTC](https://forum.inductiveautomation.com/t/7-6-1-rc1-problem-with-opc-ua-connection-to-remote-server/6511/2 "2013-05-17T13:55:20Z")

</div>

Doh, I think I know what’s going on here… Thanks for the log + thread dump.

I’m going to compile a new OPC-UA module for you to try - I’ll post it here in an hour or so.

---

<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:** [May 20, 2013, 6:50pm UTC](https://forum.inductiveautomation.com/t/7-6-1-rc1-problem-with-opc-ua-connection-to-remote-server/6511/3 "2013-05-20T18:50:00Z")

</div>

(Try rc3)

---

<div class="post-metadata">

**Author:** ![chi](https://avatars.discourse-cdn.com/v4/letter/c/0ea827/32.png) [@chi](https://forum.inductiveautomation.com/u/chi)\
**Post date:** [May 21, 2013, 12:53pm UTC](https://forum.inductiveautomation.com/t/7-6-1-rc1-problem-with-opc-ua-connection-to-remote-server/6511/4 "2013-05-21T12:53:54Z")

</div>

Just tried rc4 and it works without problems now.  
Thank you.
