Websocket connections not working with new Sockethub deployment #333

Closed
opened 2021-07-15 13:10:48 +00:00 by raucao · 3 comments
Owner

When using Hyperchannel, it always falls back to HTTP polling.

When using Hyperchannel, it always falls back to HTTP polling.
raucao added the
bug
label 2021-07-15 13:10:48 +00:00
Owner

Just in case this might help, here's what I've previously used for sockethub forwarding with HAProxy:

frontend ...
   ...
   acl is_sockethub_path path_beg -i /sockethub
   ...
   use_backend sockethub if is_sockethub_path
   
   
backend sockethub
    timeout server 30s
    option forwardfor
    reqrep ^([^\ ]*)\ /sockethub(.*)     \1\ /sockethub\2
    server sh1 127.0.0.1:10550

But based on the description of it falling back to HTTP polling, I'm not sure if this will help.

Just in case this might help, here's what I've previously used for sockethub forwarding with HAProxy: ``` frontend ... ... acl is_sockethub_path path_beg -i /sockethub ... use_backend sockethub if is_sockethub_path backend sockethub timeout server 30s option forwardfor reqrep ^([^\ ]*)\ /sockethub(.*) \1\ /sockethub\2 server sh1 127.0.0.1:10550 ``` But based on the description of it falling back to HTTP polling, I'm not sure if this will help.
Author
Owner

This is strange. Now connections are just hanging/timing out entirely. The configs look all correct, services are all running, and I can ping the VM via the private network, too.

Edit: not strange at all, the firewall rule was missing. So I assume it still has to be added to a Chef cookbook somewhere.

This is strange. Now connections are just hanging/timing out entirely. The configs look all correct, services are all running, and I can ping the VM via the private network, too. Edit: not strange at all, the firewall rule was missing. So I assume it still has to be added to a Chef cookbook somewhere.
Author
Owner

Whatever changed since I opened the original issue, Websockets are working now.

Whatever changed since I opened the original issue, Websockets are working now.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: kosmos/chef#333
No description provided.