Issue updating site/feeds list

There seems to be some issue with updating the sites list (sidebar).

Noticed it initially because I kept clicking sites and finding more items to read than the sidebar said there was.

Looking in web console it looks like this:

['Connected to real-time pubsub with 141 feeds.']
common.3d0c4011420e.js:574 
['Setting refresh interval to every 852 seconds.']
common.3d0c4011420e.js:574 
['Setting refresh interval to every 770 seconds.']
common.3d0c4011420e.js:574 
['Setting refresh interval to every 1028 seconds.']
common.3d0c4011420e.js:574 
['Lost connection to real-time pubsub. Falling back to polling.']
common.3d0c4011420e.js:574 
['Setting refresh interval to every 91 seconds.']
common.3d0c4011420e.js:574 
['Connected to real-time pubsub with 141 feeds.']
common.3d0c4011420e.js:574 
['Setting refresh interval to every 1192 seconds.']
common.3d0c4011420e.js:574 
['Lost connection to real-time pubsub. Falling back to polling.']
common.3d0c4011420e.js:574 
['Setting refresh interval to every 105 seconds.']
common.3d0c4011420e.js:574 
['Connected to real-time pubsub with 141 feeds.']
common.3d0c4011420e.js:574 
['Setting refresh interval to every 1153 seconds.']
common.3d0c4011420e.js:574 
['Lost connection to real-time pubsub. Falling back to polling.']
common.3d0c4011420e.js:574 
['Setting refresh interval to every 108 seconds.']
common.3d0c4011420e.js:574 
['Connected to real-time pubsub with 141 feeds.']
common.3d0c4011420e.js:574 
['Setting refresh interval to every 845 seconds.']
common.3d0c4011420e.js:574 
['Lost connection to real-time pubsub. Falling back to polling.']
common.3d0c4011420e.js:574 
['Setting refresh interval to every 87 seconds.']
common.3d0c4011420e.js:574 
['Connected to real-time pubsub with 141 feeds.']
common.3d0c4011420e.js:574 
['Setting refresh interval to every 1051 seconds.']
common.3d0c4011420e.js:574 
['Lost connection to real-time pubsub. Falling back to polling.']
common.3d0c4011420e.js:574 
['Setting refresh interval to every 71 seconds.']
common.3d0c4011420e.js:574 
['Connected to real-time pubsub with 141 feeds.']
common.3d0c4011420e.js:574 
['Setting refresh interval to every 971 seconds.']
common.3d0c4011420e.js:574 
['Lost connection to real-time pubsub. Falling back to polling.']
common.3d0c4011420e.js:574 
['Setting refresh interval to every 105 seconds.']
common.3d0c4011420e.js:574 
['Connected to real-time pubsub with 141 feeds.']
common.3d0c4011420e.js:574 
['Setting refresh interval to every 777 seconds.']```

I appear to be getting the same issue here. Let me know if there’s any debugging information I can provide. I think it has been happening for a couple weeks.

There’s something wrong with the websocket/socket.io implementation and it’s causing everybody to reconnect every few seconds. That’s causing you to miss certain real-time notifications. I upgraded socket.io both on the backend and frontend but that didn’t resolve it and I don’t know why it’s restarting. I’m thinking about the causes but it’s likely there’s a user account that’s causing the stack to topple over. I need to add logging and see if I can suss out what’s causing the issue.

1 Like

Figured it out and fixed it last night. Turns out upgrading HAProxy meant that it defaulted to new, lower timeouts for websockets, causing our socket.io connection to drop repeatedly after 60 seconds or so. I added in manual timeouts and all is working well again. Bonus is that I retooled the socket.io server so it now gives better diagnostic info.

1 Like