# Server keeps dropping modbus connections to all plc's

**URL:** <https://forum.inductiveautomation.com/t/server-keeps-dropping-modbus-connections-to-all-plcs/34216>\
**Category:** Ignition\
**Tags:** ignition78\
**Created:** [April 25, 2020, 4:42am UTC](https://forum.inductiveautomation.com/t/server-keeps-dropping-modbus-connections-to-all-plcs/34216 "2020-04-25T04:42:57Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![codersmurf](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@codersmurf](https://forum.inductiveautomation.com/u/codersmurf)\
**Post date:** [April 27, 2020, 1:48am UTC](https://forum.inductiveautomation.com/t/server-keeps-dropping-modbus-connections-to-all-plcs/34216/21 "2020-04-27T01:48:24Z")

</div>

trying 9 seconds now, not in a while, a certainly not the 300 all at once, think idle time is default for idec

---

<div class="post-metadata">

**Author:** ![codersmurf](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@codersmurf](https://forum.inductiveautomation.com/u/codersmurf)\
**Post date:** [April 27, 2020, 1:49am UTC](https://forum.inductiveautomation.com/t/server-keeps-dropping-modbus-connections-to-all-plcs/34216/22 "2020-04-27T01:49:29Z")

</div>

9 second made no difference

---

<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 27, 2020, 1:51am UTC](https://forum.inductiveautomation.com/t/server-keeps-dropping-modbus-connections-to-all-plcs/34216/23 "2020-04-27T01:51:48Z")

</div>

When you reconnect, are you getting at least some read operations in the wireshark captures? Your snippet above is minutes of nothing but keep-alives. What does the diagnostic page for your device show?

---

<div class="post-metadata">

**Author:** ![codersmurf](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@codersmurf](https://forum.inductiveautomation.com/u/codersmurf)\
**Post date:** [April 27, 2020, 1:56am UTC](https://forum.inductiveautomation.com/t/server-keeps-dropping-modbus-connections-to-all-plcs/34216/24 "2020-04-27T01:56:34Z")

</div>

null unknown error in diagnostic, getting capture after a restart

---

<div class="post-metadata">

**Author:** ![codersmurf](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@codersmurf](https://forum.inductiveautomation.com/u/codersmurf)\
**Post date:** [April 27, 2020, 2:01am UTC](https://forum.inductiveautomation.com/t/server-keeps-dropping-modbus-connections-to-all-plcs/34216/25 "2020-04-27T02:01:06Z")

</div>

```
1 0.000000000 srv → plc TCP 74 41600 → 502 [SYN] Seq=0 Win=28400 Len=0 MSS=1420 SACK_PERM=1 TSval=26891851 TSecr=0 WS=128
2 0.790837760 plc → srv TCP 58 502 → 41600 [SYN, ACK] Seq=0 Ack=1 Win=512 Len=0 MSS=532
3 0.790869287 srv → plc.12 TCP 54 41600 → 502 [ACK] Seq=1 Ack=1 Win=28400 Len=0
4 11.471637363 plc → srv TCP 55 [TCP Keep-Alive] 502 → 41600 [ACK] Seq=0 Ack=1 Win=512 Len=1
5 11.471699267 srv → plc.12 TCP 54 [TCP Keep-Alive ACK] 41600 → 502 [ACK] Seq=1 Ack=1 Win=28400 Len=0

```

^C5 packets captured

Let me know if you want some more, thx

---

<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 27, 2020, 2:08am UTC](https://forum.inductiveautomation.com/t/server-keeps-dropping-modbus-connections-to-all-plcs/34216/26 "2020-04-27T02:08:05Z")

</div>

Is this really Ignition 7.8 as tagged?

Can you pick one PLC to focus on then:

- make sure it has tags subscribed at faster than 10 seconds (just for now, at least)
- set the logging levels for ReadHoldingRegistersRequest to TRACE (assuming there are holding registered subscribed)
- start Wireshark capture
- do an edit/save on that device connection, wait ~30 seconds, and then stop the capture and upload the Wireshark pcap file and Ignition logs

---

<div class="post-metadata">

**Author:** ![codersmurf](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@codersmurf](https://forum.inductiveautomation.com/u/codersmurf)\
**Post date:** [April 27, 2020, 2:09am UTC](https://forum.inductiveautomation.com/t/server-keeps-dropping-modbus-connections-to-all-plcs/34216/27 "2020-04-27T02:09:52Z")

</div>

7.8.5

Do an edit/save on the device connection?

---

<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 27, 2020, 2:10am UTC](https://forum.inductiveautomation.com/t/server-keeps-dropping-modbus-connections-to-all-plcs/34216/28 "2020-04-27T02:10:45Z")

</div>

> [@codersmurf](#):
>
> Do an edit/save on the device connection?

Yes, whichever one you decide to focus on. Just need to know its IP address so it can be picked out in the Wireshark capture and ensure it has subscribed tags at a rate faster than 10s.

---

<div class="post-metadata">

**Author:** ![codersmurf](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@codersmurf](https://forum.inductiveautomation.com/u/codersmurf)\
**Post date:** [April 27, 2020, 2:12am UTC](https://forum.inductiveautomation.com/t/server-keeps-dropping-modbus-connections-to-all-plcs/34216/29 "2020-04-27T02:12:54Z")

</div>

Oh, you mean in wireshark, using tshark, no graphical terminal on this thing. Do you want me to restart the server to get fresh logs beginning to end.

---

<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 27, 2020, 2:15am UTC](https://forum.inductiveautomation.com/t/server-keeps-dropping-modbus-connections-to-all-plcs/34216/30 "2020-04-27T02:15:04Z")

</div>

I’m talking about edit/save on the device page in the Ignition gateway. As if you were going to make a configuration change, but don’t change anything, just hit save. This forces the device to reconnect and it should send any requests for any items it has subscribed against it.

tshark vs Wireshark doesn’t matter here, they’re basically the same thing, you just need the capture file.

---

<div class="post-metadata">

**Author:** ![codersmurf](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@codersmurf](https://forum.inductiveautomation.com/u/codersmurf)\
**Post date:** [April 27, 2020, 2:15am UTC](https://forum.inductiveautomation.com/t/server-keeps-dropping-modbus-connections-to-all-plcs/34216/31 "2020-04-27T02:15:46Z")

</div>

My pad, doing that now

---

<div class="post-metadata">

**Author:** ![codersmurf](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@codersmurf](https://forum.inductiveautomation.com/u/codersmurf)\
**Post date:** [April 27, 2020, 2:23am UTC](https://forum.inductiveautomation.com/t/server-keeps-dropping-modbus-connections-to-all-plcs/34216/32 "2020-04-27T02:23:25Z")

</div>

so I am subscribed to holding registers, there’s a read optimizer for modbus, here’s what I have per tag:

| drivers.ModbusDriver2[100-8792] | INFO |
| --- | --- |
| drivers.ModbusDriver2[100-8792].BasicRequestCycle | INFO |
| drivers.ModbusDriver2[100-8792].BasicRequestCycle.TimeoutDaemon | INFO |
| drivers.ModbusDriver2[100-8792].BasicTransactionProcessor | INFO |
| drivers.ModbusDriver2[100-8792].BatchingTransactionProcessor | INFO |
| drivers.ModbusDriver2[100-8792].ModbusReadOptimizer | INFO |
| drivers.ModbusDriver2[100-8792].ModbusWriteOptimizer | INFO |
| drivers.ModbusDriver2[100-8792].RequestQueue | INFO |
| drivers.ModbusDriver2[100-8792].RequestSchedule | INFO |
| drivers.ModbusDriver2[100-8792].SocketIODelegate | INFO |

---

<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 27, 2020, 2:31am UTC](https://forum.inductiveautomation.com/t/server-keeps-dropping-modbus-connections-to-all-plcs/34216/33 "2020-04-27T02:31:35Z")

</div>

> [@codersmurf](#):
>
> 5 packets captured

No reads. See all Len=0, except keepalive which is len=1 (because it is a keepalive). Are you sure all the relevant tags are enabled? No tags enabled ==\> no reads ==\> device times out on idle.

---

<div class="post-metadata">

**Author:** ![codersmurf](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@codersmurf](https://forum.inductiveautomation.com/u/codersmurf)\
**Post date:** [April 27, 2020, 3:12am UTC](https://forum.inductiveautomation.com/t/server-keeps-dropping-modbus-connections-to-all-plcs/34216/34 "2020-04-27T03:12:39Z")

</div>

```
        ] [06:25:13,832]: [hostname=11772.topinc.us,port=504] Socket connect

```

Connection timed out  
Stream.socketRead0(Native Method)  
Stream.socketRead(SocketInputStream.java:116)  
Stream.read(SocketInputStream.java:170)  
Stream.read(SocketInputStream.java:141)  
Stream.read(SocketInputStream.java:127)  
ion.iosession.socket.AsyncSocketIOSession.run(AsyncSocketIOSession.java:71)

---

<div class="post-metadata">

**Author:** ![codersmurf](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@codersmurf](https://forum.inductiveautomation.com/u/codersmurf)\
**Post date:** [April 27, 2020, 3:13am UTC](https://forum.inductiveautomation.com/t/server-keeps-dropping-modbus-connections-to-all-plcs/34216/35 "2020-04-27T03:13:39Z")

</div>

So I found that there’s an ack in the beginning and all keep alives after that from wireshark. From the logs it seems the server just isn’t requesting any data for some reason.

---

<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 27, 2020, 3:39am UTC](https://forum.inductiveautomation.com/t/server-keeps-dropping-modbus-connections-to-all-plcs/34216/36 "2020-04-27T03:39:23Z")

</div>

Create a new tag in a folder by itself pointing at a single holding register in the device you are trying to monitor. Use a relatively fast scan class. See what happens. (In wireshark.)

---

<div class="post-metadata">

**Author:** ![codersmurf](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@codersmurf](https://forum.inductiveautomation.com/u/codersmurf)\
**Post date:** [April 27, 2020, 4:06pm UTC](https://forum.inductiveautomation.com/t/server-keeps-dropping-modbus-connections-to-all-plcs/34216/37 "2020-04-27T16:06:31Z")

</div>

same, it’s like the server isn’t interested in getting data or something

---

<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 27, 2020, 4:19pm UTC](https://forum.inductiveautomation.com/t/server-keeps-dropping-modbus-connections-to-all-plcs/34216/38 "2020-04-27T16:19:56Z")

</div>

Have you tried restarting Ignition yet?

---

<div class="post-metadata">

**Author:** ![codersmurf](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@codersmurf](https://forum.inductiveautomation.com/u/codersmurf)\
**Post date:** [April 27, 2020, 4:20pm UTC](https://forum.inductiveautomation.com/t/server-keeps-dropping-modbus-connections-to-all-plcs/34216/39 "2020-04-27T16:20:24Z")

</div>

several times

---

<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 27, 2020, 4:21pm UTC](https://forum.inductiveautomation.com/t/server-keeps-dropping-modbus-connections-to-all-plcs/34216/40 "2020-04-27T16:21:16Z")

</div>

Sounds to me like you need an actual support person looking over your shoulder.

[Previous page](https://forum.inductiveautomation.com/t/server-keeps-dropping-modbus-connections-to-all-plcs/34216.md?page=1)

[Next page](https://forum.inductiveautomation.com/t/server-keeps-dropping-modbus-connections-to-all-plcs/34216.md?page=3)
