Hi.
I’m moving a MM instance from a dedicated host to a cPanel/Plesk server. I managed to get everything in place, at first glance everything seems fine, but after some minutes of runtime I see the errors below in logs:
Jan 15 13:21:59 host.com mattermost[130576]: [mysql] 2021/01/15 13:21:59 packets.go:36: unexpected EOF
Jan 15 13:21:59 host.com mattermost[130576]: {"level":"error","ts":1610713364.2011328,"caller":"jobs/jobs_watcher.go:70","msg":"Error occurred getting all pending statuses.","error":"SqlJobStore.GetAllByStatus: Unable to get the jobs, Status=pending, invalid connection"}
I tried disabling TLS as suggested elsewhere (cannot find the link anymore) but it’s still throwing that message.
In Apache I added this to proxy:
ProxyPreserveHost On
# Set web sockets
RewriteEngine On
RewriteCond %{REQUEST_URI} /api/v[0-9]+/(users/)?websocket [NC,OR]
RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC,OR]
RewriteCond %{HTTP:CONNECTION} ^Upgrade$ [NC]
RewriteRule .* ws://127.0.0.1:8065%{REQUEST_URI} [P,QSA,L]
<Location />
Require all granted
ProxyPass http://127.0.0.1:8065/
ProxyPassReverse http://127.0.0.1:8065/
ProxyPassReverseCookieDomain 127.0.0.1 my.domain.com
</Location>
Hello @maxxer! I use Apache as my reverse proxy as well. I see some differences between your reverse proxy configuration compared to mine, can you confirm if you are using an SSL certificate on your domain name or not, so I can share the correct configuration file of mine, and also see if I can run your configuration file?
Thanks for the response. Unfortunately I’m getting the same error right after opening the login page:
Jan 16 08:50:04 host.com systemd[1]: Started Mattermost.
Jan 16 08:52:13 host.com mattermost[79088]: [mysql] 2021/01/16 08:52:13 packets.go:36: unexpected EOF
Jan 16 08:52:13 host.com mattermost[79088]: {"level":"error","ts":1610783533.0025039,"caller":"jobs/jobs_watcher.go:70","msg":"Error occurred getting all pending statuses.","error":"SqlJobStore.GetAllByStatus: Unable to get the jobs, Status=pending, invalid connection"}
Jan 16 08:52:15 host.com mattermost[79088]: [mysql] 2021/01/16 08:52:15 packets.go:36: unexpected EOF
Jan 16 08:52:15 host.com mattermost[79088]: {"level":"error","ts":1610783535.3681574,"caller":"app/user.go:193","msg":"There was a error fetching if first user account","error":"SqlUserStore.Count: We could not count the users, invalid connection"}
But why an SQL error should be related to proxy config?
I forgot to say I’m on 5.21.0. Could it matter in some way?
Hmm well that could be part of Firefox blocking a backend connection to the server, which would obviously result in some issues. I do know that we are up to a major build number of 3 now though, so maybe upgrading would be useful as well?