Bug 1579965 - watch websocket: close 1006 (abnormal closure): unexpected EOF
Summary: watch websocket: close 1006 (abnormal closure): unexpected EOF
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Master
Version: 3.9.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 3.9.z
Assignee: Michal Fojtik
QA Contact: Wang Haoran
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-05-18 20:17 UTC by jchevret
Modified: 2020-10-05 11:29 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-02 13:12:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description jchevret 2018-05-18 20:17:33 UTC
Description of problem:

When watching objects such as builds, buildconfigs we have observed that the websocket sometimes close with an abnormal error code (1006 abnormal closure)

The websocket will often close within the first few minutes.

This makes it challenging to rely on watch/events to trigger external systems and tasks.

Some debugging details from the openshift.io Che team: https://github.com/redhat-developer/rh-che/issues/672

We have a reproducer here: https://github.com/redhat-developer/rh-che/issues/672#issuecomment-389808446

Comment 1 Michal Fojtik 2018-05-21 09:13:05 UTC
I was not able to track where in k8s code we return this to the client. The only trace was:

vendor/golang.org/x/net/websocket/hybi.go
34:	closeStatusAbnormalClosure   = 1006

Which is actually not returned anywhere... I guess this suggests a networking issue between the client and the server? Is there any proxy/loadbalancer between the API server and the client?

Comment 2 Roman 2018-06-06 16:47:50 UTC
initial issue was closed - https://github.com/redhat-developer/rh-che/issues/672#issuecomment-394631744
so I think this can be closed too.


Note You need to log in before you can comment on or make changes to this bug.