defguard
defguard copied to clipboard
Defguard crashes after proxy stops
Reproduction:
#1
- Upgraded core from 0.10.0 to 0.11.0 without problems. Even core connected to the old 0.4.0 proxy.
- I've started the proxy upgrade process (docker down, pull, ...)
- During that time the proxy was not reachable
- Defguard core crashed, by going into infinite loop with logs:
defguard | 2024-07-04T15:37:47.643754Z INFO defguard::grpc: Received message from proxy
defguard | 2024-07-04T15:37:47.643757Z ERROR defguard::grpc: stream error status: Internal, message: "Unexpected EOF decoding stream.", details: [], metadata: MetadataMap { headers: {} }
defguard | 2024-07-04T15:37:47.643760Z INFO defguard::grpc: Received message from proxy
defguard | 2024-07-04T15:37:47.643763Z ERROR defguard::grpc: stream error status: Internal, message: "Unexpected EOF decoding stream.", details: [], metadata: MetadataMap { headers: {} }
defguard | 2024-07-04T15:37:47.643767Z INFO defguard::grpc: Received message from proxy
defguard | 2024-07-04T15:37:47.643769Z ERROR defguard::grpc: stream error status: Internal, message: "Unexpected EOF decoding stream.", details: [], metadata: MetadataMap { headers: {} }
...
(100000 more lines :D )
2
- Upgraded the proxy & lanched new one
- Restarted core to connect to new proxy
- bliss . works. but:
- Stoped proxy
- Again core infinite looop and isn't reachable and logs the same as above.
The problem occurs when proxying the Proxy via Nginx.
Work around in #662
Done in 0.11.0