Troubleshooting
When a local OPC UA historian endpoint refuses connections
Short answer
A Bad_ConnectionRejected (0x80AC0000) at a local historian endpoint such as opc.tcp://localhost:54540/Historian is the operating system refusing the TCP connection: nothing was listening on that port when endpoint discovery ran. Verify the listener on the configured port first; certificates, sessions and firewall settings come later.
On this page
- What the log line reports
- Why a refusal on loopback points at the service
- Decoding Bad_ConnectionRejected 0x80AC0000 in the Red Hat 8 historian log
- Run the listener check on the historian host
- Stages this error has not reached
- Why the server never bound the port
- Escalating a beta build through its own channel
- Confirming recovery
- Questions asked
A Bad_ConnectionRejected (0x80AC0000) against opc.tcp://localhost:54540/Historian is not a session, certificate or security failure. It is the operating system refusing the TCP connection because nothing accepted on that port when the historian's configurator client ran endpoint discovery. On a Red Hat 8 installation of Prosys OPC UA Historian where the Start button produces this log, the server process was not listening on the loopback endpoint when discovery ran. The decision follows: verify the listener on the configured port first, then the server's own startup log. Certificates, user accounts and firewall settings cannot produce this error and come later, if at all.
What the log line reports #
The stack trace has three layers, and each names a different actor:
- The outer message comes from
ConfiguratorClientImplinprosys-opc-ua-historian-app-1.1.99-11.jar: it could not connect the configurator client because endpoint retrieval failed, and the frames run throughdiscoverEndpoints,getEndpointsandconnect. - The middle message names the target: the local discovery URL the configurator expects the historian server on.
- The deepest entry is the actual failure: the status block with its code, its decimal echo and the host's own text "Connexion refusée (Connection refused)" — the French-locale name for a TCP connect the kernel refused.
Discovery never returned an endpoint list, so no secure channel, no certificate evaluation and no session exist at this point. For the same status code seen from other SDK-based OPC UA clients, the walkthrough of Bad_ConnectionRejected 0x80AC0000 covers its meaning and its usual triggers.
Why a refusal on loopback points at the service #
The URL names localhost, so the attempt never left the machine. On a loopback address a refusal has one ordinary meaning: at that instant, no socket was accepting connections on that address and port.
Two details sharpen the decision. A firewall that drops packets leaves the client waiting for a timeout, while a refusal is the kernel's answer when no listening socket matches the destination, so firewall rules are not the first thing to touch. And a process can be running while still refusing local clients if it bound to a single external address instead of the loopback interface or all interfaces — the binding scope, not the process state, decides. Some OPC UA servers bind only to loopback by default and others follow their configured endpoint; after any endpoint change, restart the service, because a running server keeps its old binding.
Decoding Bad_ConnectionRejected 0x80AC0000 in the Red Hat 8 historian log #
Inputs, each from the log itself:
- Endpoint:
opc.tcp://localhost:54540/Historian, from the configurator's failure message. - Status:
Bad_ConnectionRejectedwithcode=0x80AC0000, from the caused-by block. - Printed decimal: 2158755840, the leading number inside the status description.
- OS text: "Connexion refusée (Connection refused)", the host's message for a refused connect.
- Build: 1.1.99-11, from the jar name in the stack frames.
The rule: an OPC UA status code is one 32-bit value, and hex and decimal are two spellings of the same number. When a client prints a hex code and a decimal in the same description, the decimal must equal the hex, and the trailing OS text names the layer that failed.
The arithmetic:
0x80AC0000 = 0x80000000 + 0x00AC0000
0x80000000 = 2,147,483,648
0x00AC0000 = 172 × 65,536 = 11,272,192
2,147,483,648 + 11,272,192 = 2,158,755,840
The result: 2,158,755,840 is 2158755840, exactly the decimal the description prints, and the leading 8 marks the code as Bad severity. The description is therefore quoting the OS refusal, not reporting a second, independent error.
The decision: the check is binary. No listener on the port means the server never bound the endpoint — fix the service start. A listener present moves the question to binding scope and, once discovery answers, to endpoint-hostname mismatches. Firewall settings stay untouched, because a firewall drop would have produced a timeout, not this refusal.
Run the listener check on the historian host #
- Read the port from the failing URL — the digits between the host and the path in
opc.tcp://localhost:54540/Historian, 54540 here. - On the same host, while a start attempt is failing, run
ss -ltnp | grep 54540(ornetstat -ltnp | grep 54540) with privileges so the output can name the owning process. - No output means nothing is listening. Read the historian server's own startup log — not the configurator's — for a bind failure or early exit, and check which Java runtime the service launches with.
- A listener on the loopback address (
127.0.0.1) or on all interfaces (0.0.0.0) satisfies a localhost discovery URL. If discovery still refuses, compare the URL the configurator uses with the address the server actually bound; a different port or hostname in the client configuration reproduces this exact refusal. - A listener bound only to an external address, such as the host's plant-network IP, refuses loopback clients by design. Set the server endpoint to accept the loopback interface as well, then restart the service.
- Leave the endpoint unchanged unless installation records show a different configured address; the URL in the log is the configured expectation.
Stages this error has not reached #
Endpoint discovery failed before any OPC UA exchange took place. Secure-channel setup, certificate evaluation, user authentication and session creation all run after a TCP connect succeeds and an endpoint list comes back, so changing certificate stores, security policies or user accounts cannot remove a kernel-level refusal.
Once a listener answers, different failure classes appear: a server may return its endpoints under a hostname different from the discovery URL, and a client may reject the endpoint set when the session request repeats the check against the discovery result. Those produce later-stage statuses with their own fixes — handle them only after discovery succeeds.
A passing TCP connect is also not the finish line for a data path; the same lesson appears in why gRPC ingestion fails even though the TCP port test still passes.
Why the server never bound the port #
The historian server must start, load its configuration and open its opc.tcp listener before any configurator discovery can succeed; until then, every scheduled retry meets a closed port. On a Java service the usual early-exit causes are a runtime version the application does not support, a configuration value the process cannot use, and a port already held by another process — the listener check names the holder when run with privileges.
The opc.tcp listener is opened during service initialization, so a fault there leaves exactly this picture: process gone or idle, port closed, configurator refusing to connect. The walkthrough of opc.tcp endpoint initialization failures covers that startup stage in detail.
Fix the cause, then restart the service so the new binding actually applies; a configuration edit without a restart leaves the old state running.
Escalating a beta build through its own channel #
The installed artifact is prosys-opc-ua-historian-app-1.1.99-11.jar, beta build 1.1.99-11, supplied by email for this installation. The vendor's position on this report: beta cases are handled through that same email channel rather than public channels, Red Hat had not been tested for the build, and the suspected issues would most likely appear on Linux generally. Treat that as the vendor's hypothesis, not a root cause the log proves — the log proves only that no listener existed when discovery ran.
Send the channel that supplied the build a pack with: the build identifier from the jar name, the operating system and version, the full endpoint URL, the complete exception chain, the listener-check output, and the server's own startup log with timestamps.
While the open question is the listener, hold off on reconfiguring the endpoint or adding rules anywhere in the plant network; the evidence so far lives entirely on the historian host.
Confirming recovery #
Recovery is a chain, not a button state:
- The Start action completes and the process remains running across at least one discovery retry interval.
- The listener keeps answering on the configured port through the same check as before.
- Endpoint discovery returns an endpoint list, and the configurator connects with no new
Bad_ConnectionRejectedentries.
Then exercise the data path with one real client operation — a trend client reading a tag whose value and timestamp are already known. If that trend client fails to connect while the historian is up, the problem sits in a later layer with its own causes, and troubleshooting historian trend client connection failures starts there.
If the replacement build still fails before any listener appears, the new startup log and its build identifier go back through the same channel.
Questions asked
Does Bad_ConnectionRejected on localhost mean a firewall blocked the historian?
No. A firewall that drops packets leaves you waiting for a timeout; refused means the kernel found no listener on that port. Loopback traffic does not cross the rules firewalls usually define for external interfaces. Work the listener check and the server binding first, and revisit firewall rules only if the same URL also fails from a remote machine.
Why does the configurator repeat the same failed connection?
The stack trace shows the client running inside a scheduled service, so endpoint discovery repeats on its schedule. Every repeat fails with the same refusal until a listener appears on the port, which is why the log fills with identical entries. The repetition is not a second fault; it is the retry doing its job while the server is down.
Can a certificate problem produce Connection refused?
No. Certificate evaluation happens after the TCP connection is accepted and during secure-channel creation, which is a later stage than endpoint discovery. A certificate fault returns a server-side Bad status once the channel is up; it cannot refuse the TCP connect before any OPC UA message is exchanged. That is why certificate stores are not part of this fix.
What should the support request for a beta build contain?
The exact build identifier from the jar name, the operating system and version, the full endpoint URL, the complete exception chain, the output of the listener check, and the historian server's own startup log with timestamps. A beta build distributed by email is supported through that same email channel, so send the pack there rather than to a public channel.
How do I confirm the historian service is truly recovered?
Go past the Start button state: the server process stays running, the listener keeps answering on the configured port, endpoint discovery returns an endpoint list, and the configurator connects without Bad_ConnectionRejected. Then run one real client operation, such as a trend client reading a tag whose value and timestamp you already know, so the check covers the data path and not only the socket.