Summary
Constant websocket errors on version 7.0.1.
Steps to reproduce
Since updating to version 7.0.0 about two weeks ago, our server is constantly getting this websocket error. I’ve checked the logs prior to the update, and there was no instance of this error before. During the weekend we have updated to version 7.0.1 as an attempt to fix it, but with no luck. We were previosuly on version 6.3, and updated straight away to 7.0, following the recommended guide, with nothing special, and without changing any config manually. We have since only added the hostname for the new caller plugin.
I’ve tried looking for solutions, but couldn’t find anything of relevance. The latest report I found was related to a config, that has since been deprecated (the reliable websockets).
Here is a sample of the error:
{"timestamp":"2022-06-27 18:59:36.184 Z","level":"error","msg":"websocket.NextReader: closing websocket","caller":"app/web_conn.go:834","user_id":"rrwhycr46fgb5m143xcpqdoxma","error":"read tcp 127.0.0.1:8080->127.0.0.1:56834: i/o timeout"}
Expected behavior
Since getting those websocket errors, our users have began complaining that mattermost doesn’t work as expected, with images of teams and users not loading and even channels and threads not loading at all.
Here is a sample screenshot that a user sent us, with none of the channels loading.
I’m also attaching the last 2k lines of mattermost log (can provide longer, if necessary), and as can be seen, the error is pretty constant, with the exception of weekends, where there is almost no one using the server.
mattermost.log
Mattermost is hosted on AWS, on a fairly beefy machine for our use-case (t2.large), and only 50 users. So it never goes beyond 2GB of ram usage or 10% CPU.