Repository navigation
Open
Description
Summary:
The walletshield client occasionally fails with ERROR context deadline exceeded.
The issue occurs often when running inside docker container on Linux and especially upon startup.
The issue also occurs when running directly on the host, for example within capacity lab tests. In this case, the error is more rare #62 and happens with 0 Dropped Packets recorded by mixes.
17:24:17.067 INFO katzenpost/client2: Katzenpost is still pre-alpha. DO NOT DEPEND ON IT FOR STRONG SECURITY OR ANONYMITY.
17:24:17.067 INFO client2/pki: Failed to fetch PKI doc for epoch 195748 from Provider: client/conn: not connected to the Gateway
17:24:17.067 WARN client2/pki: Failed to fetch PKI for epoch 195748: client/conn: not connected to the Gateway
17:24:17.067 ERRO katzenpost/client2: WaitForCurrentDocument failed on updateDocument with err: client/conn: not connected to the Gateway
17:24:17.068 INFO client2/listener: Listening on: 127.0.0.1:64331
17:24:17.068 INFO client2/pki: Failed to fetch PKI doc for epoch 195748 from Provider: client/conn: not connected to the Gateway
17:24:17.068 WARN client2/pki: Failed to fetch PKI for epoch 195748: client/conn: not connected to the Gateway
17:24:17.068 WARN client2/pki: Failed to fetch PKI for epoch 195748: client/conn: not connected to the Gateway
17:24:17.104 INFO client2/conn: onConnStatusChange
17:24:17.104 INFO client2/pki: Failed to fetch PKI doc for epoch 195748 from Provider: client/conn: not connected to the Gateway
17:24:17.104 WARN client2/pki: Failed to fetch PKI for epoch 195748: client/conn: not connected to the Gateway
17:24:17.104 WARN client2/pki: Failed to fetch PKI for epoch 195748: client/conn: not connected to the Gateway
17:24:20.086 INFO client2/incomingConn: Received Request from peer application.
ERRO walletshield:: Probe failed after 45.00s: context deadline exceeded
INFO walletshield:: Probe packet transmitted/received/loss = 1/0/100.0% | rtt min/avg/max = NaN/NaN/0.00 s
for comparison, same request without the issue:
17:30:16.160 INFO katzenpost/client2: Katzenpost is still pre-alpha. DO NOT DEPEND ON IT FOR STRONG SECURITY OR ANONYMITY.
17:30:16.159 INFO client2/listener: Listening on: 127.0.0.1:64331
17:30:16.160 INFO client2/pki: Failed to fetch PKI doc for epoch 195748 from Provider: client/conn: not connected to the Gateway
17:30:16.161 WARN client2/pki: Failed to fetch PKI for epoch 195748: client/conn: not connected to the Gateway
17:30:16.161 WARN client2/pki: Failed to fetch PKI for epoch 195748: client/conn: not connected to the Gateway
17:30:16.161 INFO client2/pki: Failed to fetch PKI doc for epoch 195748 from Provider: client/conn: not connected to the Gateway
17:30:16.161 WARN client2/pki: Failed to fetch PKI for epoch 195748: client/conn: not connected to the Gateway
17:30:16.161 ERRO katzenpost/client2: WaitForCurrentDocument failed on updateDocument with err: client/conn: not connected to the Gateway
17:30:16.201 INFO client2/conn: onConnStatusChange
17:30:19.162 INFO client2/incomingConn: Received Request from peer application.
17:30:19.536 INFO thinclient: MessageSentEvent
17:30:21.339 INFO thinclient: MessageReplyEvent
INFO walletshield:: Probe packet transmitted/received/loss = 1/1/0.0% | rtt min/avg/max = 2.18/2.18/2.18 s
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
- StatusShow more project fieldsIn Review
Activity
xendarboh commentedon Nov 10, 2024
This happens on startup, with the initial message.
Logs of the issue with DEBUG enabled:
xendarboh commentedon Nov 13, 2024
This is happening inside docker container on Linux, when it runs fine directly on the host.
happens about half of the time
between v0.3.x and v0.4.2 (kp v0.0.38 and v0.0.43)
katzenpost/katzenpost@v0.0.38...v0.0.43
xendarboh commentedon Nov 13, 2024
Using unix socket (vs tcp) does not change the behavior:
success:
failure
xendarboh commentedon Nov 13, 2024
docker
network_mode = hostdoes not solve issuexendarboh commentedon Nov 13, 2024
does not solve issue, but does decrease frequency of timeouts: (in docker container)
[-]fix: context deadline exceeded[/-][+]fix(walletshield): context deadline exceeded[/+]xendarboh commentedon Nov 26, 2024
Note: this error also happens outside docker running directly on host. observable within lab tests.
david415 commentedon Nov 26, 2024
What happens if we increase the timeout?
xendarboh commentedon Nov 27, 2024
A response is received, just takes a long time, consistently around
75s.Previous tests above are with the context timeout at
45s.With the timeout at
90s, from separate probe invocations:For comparison, normal requests:
A full log
xendarboh commentedon Dec 12, 2024
xendarboh commentedon Apr 21, 2025
While this report is inconclusive compared to dataset of labtest deployment with many longer-running clients, perhaps related.
With a locally running mixnet (using appchain-pki & katzenpost v0.0.48), ping using client2 does not initially appear to experience the "context deadline exceeded". While the
walletshield -probehas demonstrated this issue.Issue is near epoch boundary?
Logs from two separate incidents:
walletshield client issue
Gateway Log during issue
See "RetrieveMessage: 14" below. Appears to happen at/near the epoch boundary?