Security token id XY has timed out #1841
Unanswered
Matthias-SE
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have an OPC client (opcua-asyncio v1.1.5) that is intended to run 24/7. However, after some time it crashes with
Security token id XY has timed out
. Now, I'm trying to figure out what can cause this error.Observations
The following table shows some examples when the client crashed:
asyncua.ua.uaerrors._base.UaError: Security token id 58 has timed out
(2025-04-17 08:45:29.118000+00:00 < 2025-04-17 09:14:44.543009+00:00)
asyncua.ua.uaerrors._base.UaError: Security token id 4 has timed out
(2025-04-22 10:59:50.662000+00:00 < 2025-04-22 11:29:01.335757+00:00)
asyncua.ua.uaerrors._base.UaError: Security token id 8 has timed out
(2025-04-23 15:02:06.897000+00:00 < 2025-04-23 15:31:16.481017+00:00)
asyncua.ua.uaerrors._base.UaError: Security token id 31 has timed out
(2025-05-06 14:18:07.362000+00:00 < 2025-05-06 14:47:04.654193+00:00)
Interpretation
From above observations and the OPC spec 5.5.2.1 I learned:
However, there's still something I cannot make sense of. Let's consider for example the client I have started at
Apr 22 08:29:00
:2025-04-22 10:59:50.662000+00:00 < 2025-04-22 11:29:01.335757+00:00
Looking at the source-code I have expected that the timestamp
10:59
appears in the last column. But it appears in the 3rd row and 3rd column. Furthermore, why does the 4th token timed-out at 11:29? From my understanding, at 11:29 the next sec. token should have been requested -- and in particular has nothing to do with expiration.Questions
t_1 < t_2
the time-differencet_2 - t_1
is always 30 minutes +- some seconds. Why is that the case? Where are those 30 minutes coming from?I am grateful for any help.
BR,
Matthias
Beta Was this translation helpful? Give feedback.
All reactions