Skip to content

websockets failing with 500 response - running rancher behind fabio #133

@jamessammut

Description

@jamessammut

Running fabio:1.2-go1.6.3.

I have run this successfully <1.2 but recently upgraded to get the https support.

When I run a direct connection from chrome to rancher it works so I can confirm rancher is running properly. Running rancher:v1.1.2

Copy of the request headers (fails with 500 error response):

GET ws://rancher.cloud.XXXX.com/v1/projects/1a16602/subscribe?eventNames=resource.change&eventNames=service.kubernetes.change&limit=-1&include=hosts&include=services&include=instances&include=instance&include=instanceLinks&include=ipAddresses&sockId=36 HTTP/1.1
Host: rancher.cloud.XXXX.com
Connection: Upgrade
Pragma: no-cache
Cache-Control: no-cache
Upgrade: websocket
Origin: http://rancher.cloud.XXXX.com
Sec-WebSocket-Version: 13
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.82 Safari/537.36
Accept-Encoding: gzip, deflate, sdch
Accept-Language: en-US,en;q=0.8
Cookie: PL=rancher; token=TcJiLGPNKqYePcAC4ZNYTTSApPyV5bYr1ujqAAbG; CSRF=A67819676337CDF4C6EF3591C68B40B4
Sec-WebSocket-Key: PzitR2II+lS9zhe9BtGo7w==
Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions