Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [milo-dev] the endless loop of certificate rejection

Which exact newer version(s) have you tried?

Are you managing connections yourself, including calling connect()/disconnect() or recreating the client after a failure, or do you call connect() once and let Milo's state machine manage the connection?

The expected behavior is exponential backoff: 1, 2, 4, 8, then 16 seconds between failed connection attempts, capped at 16 seconds. That applies to both 0.6.15 and the current code, so a single client continuously failing the SecureChannel handshake shouldn't be retrying every half second.

Can you send DEBUG/TRACE logs covering the client state machine and transport, along with a Wireshark capture of the repeated attempts? In particular, enable TRACE for org.eclipse.milo.opcua.stack.client.ChannelFsm. A longer sample starting with the initial connect would help show whether the backoff is being reset or whether multiple connections are involved.



On Thu, 12 Nov 2026 17:12:17 +0000, Lenovo K3 Owner <lenovo.k3.1.owner@xxxxxxxxx> wrote:
hi Kevin,


Thanks for the reply, i should have been more clear on the problem:

the issue is that milo tries to connect to server non stop:

2026-11-05 07:15:48.434 ERROR 1 --- [ty-event-loop-4] m.o.s.c.t.u.UascClientAcknowledgeHandler : [remote=x] Received error message: ErrorMessage{error=StatusCode{name=Bad_SecurityChecksFailed, value=0x80130000, quality=bad}, reason=Could not verify security on OpenSecureChannel request.}
2026-11-05 07:15:48.905 ERROR 1 --- [ty-event-loop-5] m.o.s.c.t.u.UascClientAcknowledgeHandler : [remote=x] Received error message: ErrorMessage{error=StatusCode{name=Bad_SecurityChecksFailed, value=0x80130000, quality=bad}, reason=Could not verify security on OpenSecureChannel request.}
2026-11-05 07:15:50.020 ERROR 1 --- [ty-event-loop-6] m.o.s.c.t.u.UascClientAcknowledgeHandler : [remote=x Received error message: ErrorMessage{error=StatusCode{name=Bad_SecurityChecksFailed, value=0x80130000, quality=bad}, reason=Could not verify security on OpenSecureChannel request.}
2026-11-05 07:15:50.882 ERROR 1 --- [ty-event-loop-8] m.o.s.c.t.u.UascClientAcknowledgeHandler : [remote=x] Received error message: ErrorMessage{error=StatusCode{name=Bad_SecurityChecksFailed, value=0x80130000, quality=bad}, reason=Could not verify security on OpenSecureChannel request.}

as you can see new request is being sent every half of second or so, and there is no way for us to stop this loop cycle - it's a regular connect call

---
Mikalai
 

On Thu, Nov 12, 2026 at 1:37 PM Kevin Herron <kevinherron@xxxxxxxxx> wrote:
This is a channel-level error from the server with a Bad_SecurityChecksFailed StatusCode, in response to an OpenSecureChannel request. 

There isn't any reason to expect this to resolve itself. It probably needs action on your part - maybe your certificate expired and the channel can't be created or renewed, maybe it needs to be trusted on the server side; not really sure from just that message. 

That it repeats isn't unusual - the connection would close, and the client would then reconnect. But if you don't resolve the underlying cause it will just repeat.

On Thu, Nov 12, 2026 at 2:37 AM Lenovo K3 Owner via milo-dev <milo-dev@xxxxxxxxxxx> wrote:
Hello Milo-dev,

i am observing rather unpleasant situation when milo client got into endless loop, repeating non stop:

[ty-event-loop-4] m.o.s.c.t.u.UascClientAcknowledgeHandler : [remote=some-secret-domain.com/123.123.123.123:123] Received error message: ErrorMessage{error=StatusCode{name=Bad_SecurityChecksFailed, value=0x80130000, quality=bad}, reason=Could not verify security on OpenSecureChannel request.}


initially observed on 0.6.15, but problem seems to persist on the latest version too 

--
Best regards,
 Mikalai           
_______________________________________________
milo-dev mailing list
milo-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/milo-dev

Back to the top