Troubleshooting
Why Ignition OPC UA connections drop on all controllers at once
Short answer
When OPC UA connections to every controller fail together — resets, Bad_TcpMessageTypeInvalid, connection timeouts on the UA-TCP port — and EtherNet/IP drives fault on fieldbus error at the same timestamps, the fault is in the shared network path or the controllers' communications layer, not the SCADA client. Export logs and switch state first, then restart in a controlled order: the combined restart-and-re-download that restores production also erases the evidence that names the failing layer.

On this page
- What each gateway log entry tells you
- The entry that moves the search below the client
- Working the arithmetic for a 3-controller, 85-drive outage
- Gather the state before anything restarts
- Restore service in a controlled order
- Suspects, and the evidence that convicts each
- After recovery, verify more than green status dots
- Questions asked
When the OPC UA sessions to every controller drop together — resets reported as an existing connection forcibly closed by the remote host, then Bad_TcpMessageTypeInvalid, then connection timeouts on port 4840 — and the drives fault on fieldbus error at the same timestamps, the fault is not in the SCADA client. The client owns only its own sessions; the controller-to-drive traffic never passes through it. Two independent protocol stacks failing on the same wire inside the same hour put the search in the shared network path or in the controllers' communications layer. Get production back in a controlled order, but export the logs and the switch state first: the restart-and-re-download sequence that clears the fault also erases the evidence that would name the layer that failed. This article reads the four log entries, works the arithmetic that localizes the fault, and gives the restart order and the checks to run afterward.
What each gateway log entry tells you #
Read the entries oldest first; the sequence is the diagnosis.
An existing connection was forcibly closed by the remote host— an established TCP session was reset, or closed as good as reset, from the far side of the link. The gateway did not idle out on its own; something at or in front of the controller killed live sessions.Bad_TcpMessageTypeInvalidwithunknown message type: 262245— the UA-TCP decoder received bytes it could not classify as any defined message header. The OPC UA mapping specification, part 6, defines this status for a message whose type the receiving stack does not accept, so either non-UA bytes reached the session or the stream was corrupted in transit. That is a traffic-damage signature, not a tag or subscription problem.connection timed outto every controller endpoint within the same second — new TCP connections were not completing at all, which sits below browsing, subscriptions and tag mapping. The failure at that moment is TCP or below.ERROR(200): Unable to parse messageandError verifying audit log table— gateway-side loggers, not OPC UA ones. The audit-table entry points at the gateway's database connection; treat it as a parallel fault, check host resources and database health on their own, and do not fold it into the OPC diagnosis without the logger context.
The entry that moves the search below the client #
None of the controllers faulted. Every drive and starter on the same network faulted on fieldbus error, and that traffic is controller-to-device EtherNet/IP — the gateway is nowhere in it. A fault confined to the client's OPC tag handling cannot interrupt connections it is not part of, so the common element behind both failures is the infrastructure both stacks share — switches, trunks, media, addressing — or the controllers' own communications handling.
The contrast matters: when remote I/O fails on one controller while the others stay up, the search belongs at that controller, which is the pattern EtherNet/IP remote I/O fails on one controller, not another works through. Every endpoint failing together, with matching timestamps across two protocols, moves the search to what they all share.
Working the arithmetic for a 3-controller, 85-drive outage #
The inputs, each as the log and device history report it:
- Three OPC UA endpoints on port 4840, at addresses 172.168.1.200, 172.168.1.201 and 172.168.1.202 (gateway log remotes).
- First UA transport exception at 09:01:34, last at 10:01:34 (gateway log timestamps).
- Timeouts to every endpoint logged together at 09:20:25 (same log).
- Every drive and starter EtherNet/IP connection — 85 of them — faulted on fieldbus error inside that window (drive fault history); zero controllers faulted (controller status).
The rule in words: a client-side fault explains only the connections that pass through the client. Count every communication path that failed, subtract the paths that include the client, and whatever remains failed somewhere else — the network or the controllers.
The arithmetic:
- Paths that include the gateway: 3 — one OPC UA session set per controller address.
- Paths that never touch the gateway: 85 — controller-to-drive EtherNet/IP sessions.
- Total failing paths: 3 + 85 = 88.
- Share outside the client: 88 - 3 = 85, and 85 / 88 ≈ 0.966, so 96.6% of the failing traffic runs without the gateway.
- Failure window: 10:01:34 - 09:01:34 = 60 min 0 s from first to last UA transport exception.
Result: inside one hour, 88 communication paths failed, and 96.6% of them — all of the drive and starter connections — never touch the gateway.
Decision: when any failing traffic runs without the client, a client restart is a recovery action, not a diagnosis; the shared layer is the suspect. That threshold is crossed overwhelmingly here, so capture state first and follow the restart order below. A client restart would be the correct first move only in an outage where every failing path passes through the client.
Gather the state before anything restarts #
Before touching anything, put the line in its approved safe state: the fieldbus loss has already removed drive status and command paths, and a restart sequence can move outputs even while the controller logic looks idle.
Then preserve, in this order:
- Export the gateway logs with their timestamps, before any restart truncates them.
- Pull controller-side diagnostics for the same window: communication error counters, open-connection counts, interface status, internal logs.
- Pull the managed-switch record for the window: link transitions, per-port CRC errors and discards, MAC-table changes, spanning-tree events, broadcast and multicast rates.
- Read the gateway host's ARP table and compare each controller address with its expected hardware address; an entry that flips between two hardware addresses convicts a duplicate IP on the spot.
- If anything still misbehaves, capture packets at the gateway host or a mirrored switch port, filtered on the controller addresses, the UA-TCP port, TCP resets and retransmissions, and the drive traffic.
Restore service in a controlled order #
- Test one controller from the gateway host: confirm it answers ping, then confirm a TCP connection actually completes to its UA-TCP listener. A ping reply with a refused or timing-out port means the controller's OPC UA service or TCP handling is wedged, not the wire.
- Repeat the test from a second device on the same segment. Failing from both places points at the controller or the shared path; failing only from the gateway points at the gateway host, its route or its local firewall.
- Restart controller communications — the service, or the controller itself, per the vendor's maintenance procedure — only where the port test failed, one controller at a time.
- Restart the gateway's OPC connections, or the gateway itself, only after the endpoints accept connections again. That keeps server recovery and client-session recovery distinguishable instead of blended into one reboot.
- Re-download the controller application only if its communications stay unhealthy after a communications restart, with the project verified and the retained-state consequences understood. A download restarts the runtime and can clear a symptom while hiding the fault — in this outage the restart and the re-downloads were done as one combined action, so the record no longer shows which action cleared which layer.
- Bring the drives and starters back one segment at a time, confirming communications on each segment before moving to the next.
Suspects, and the evidence that convicts each #
- A switch or trunk event: link transitions or error-counter spikes inside the failure window, on a port that all controller and gateway traffic traverses. In a multi-controller, multi-protocol simultaneous loss this is the most common conviction.
- A duplicate IP address: two interfaces answering for one address; it is one of the few causes that produces resets on established sessions and timeouts on new connections at once.
- The unconfigured wireless equipment: access gear that is powered but never configured can bridge its radio and wired sides and flood the subnet with address-resolution or DHCP traffic. Being plugged in does not convict it; port counters and hardware-address movement do.
- A wedged controller communications stack: the port test in the restore order fails while ping still succeeds, and the controller's own log shows its communications restarting.
After recovery, verify more than green status dots #
- Each controller address still resolves to the intended hardware address, with no movement since recovery.
- Every endpoint accepts TCP connections on the UA-TCP port without a reset count climbing underneath — a green connection dot over rising resets is not a recovery.
- Ignition subscriptions deliver live values with advancing timestamps; a session can look healthy while serving stale values.
- The gateway's database connection is healthy, since the audit-table error was a separate fault on the host.
- The shared switch ports' error counters stay flat for days. Flat counters close the incident; renewed growth means the cause is still present and will bite again.
If the network is one flat subnet carrying controllers, drives and supervisory traffic together, a broadcast storm or an address conflict reaches everything at once — which is exactly the pattern here. Separating controller, drive and supervisory traffic onto separate subnets or VLANs shrinks the blast radius of the next event, and it makes the next diagnosis a matter of reading which segment went dark.
Re-verify the client read path the way you would commission it, top to bottom; the mechanics in How a SCADA client reads a small PLC over EtherNet/IP are the same ones to re-check on any controller the gateway polls.
Questions asked
Can a controller's own OPC UA server cause this pattern?
A wedged OPC UA server on one controller resets that controller's sessions, but it cannot reach the other controllers or the drive traffic. Separately administered servers failing inside one hour, together with fieldbus losses that never visit any OPC UA server, is not a server-side signature. A server fault stays plausible only for the resets seen against a single address, never for the combined pattern.
Can duplicate IP addresses cause both the resets and the timeouts?
Yes, and few other causes produce both at once. While ARP flips between two hardware addresses, established sessions receive resets whenever the wrong interface answers, and new connections time out until the correct mapping returns. Compare each controller's expected hardware address against the gateway's ARP table and the switch forwarding database; movement between two hardware addresses convicts the duplicate.
Should the unconfigured wireless equipment be unplugged?
Unplugging it is a legitimate isolation test, but record its switch port and the production impact before disconnecting anything. Powered but unconfigured access gear can bridge its radio and wired sides and flood the subnet with address-resolution or DHCP traffic. Convict or clear it with the port counters and hardware-address movement from the switch during a controlled disconnect, never with the fact that the fault stopped after it was removed.
Can a single switch port failure drop every controller at once?
It depends on topology. If all controller uplinks and the gateway connection traverse the same switch or the same trunk, one port failure or spanning-tree event removes every path simultaneously, which matches a simultaneous loss across protocols. Map which ports the controller and gateway traffic share, then read those ports' logs and counters first when the next outage begins.


