I updated Mattermost (team) to 5.7.0. Then I got a MySQL error.
mattermost[3293]: [mysql] 2019/01/17 21:44:41 packets.go:36: unexpected EOF
mattermost[3293]: {"level":"error","ts":1547729081.169309,"caller":"jobs/jobs_watcher.go:70","msg":"Error occurred getting all pending statuses: SqlJobStore.GetAllByStatus: Unable to get the jobs, Status=pending, invalid connection"}
mattermost[3293]: [mysql] 2019/01/17 21:44:56 packets.go:36: unexpected EOF
mattermost[3293]: {"level":"error","ts":1547729096.1711783,"caller":"jobs/jobs_watcher.go:70","msg":"Error occurred getting all pending statuses: SqlJobStore.GetAllByStatus: Unable to get the jobs, Status=pending, invalid connection"}
mattermost[3293]: [mysql] 2019/01/18 09:25:49 packets.go:36: unexpected EOF
mattermost[3293]: {"level":"error","ts":1547771149.360974,"caller":"jobs/jobs_watcher.go:70","msg":"Error occurred getting all pending statuses: SqlJobStore.GetAllByStatus: Unable to get the jobs, Status=pending, invalid connection"}
mattermost[3293]: [mysql] 2019/01/18 09:26:04 packets.go:36: unexpected EOF
mattermost[3293]: {"level":"error","ts":1547771164.3638587,"caller":"jobs/jobs_watcher.go:70","msg":"Error occurred getting all pending statuses: SqlJobStore.GetAllByStatus: Unable to get the jobs, Status=pending, invalid connection"}
mattermost[3293]: [mysql] 2019/01/18 09:26:19 packets.go:36: unexpected EOF
mattermost[3293]: {"level":"error","ts":1547771179.3648214,"caller":"jobs/jobs_watcher.go:70","msg":"Error occurred getting all pending statuses: SqlJobStore.GetAllByStatus: Unable to get the jobs, Status=pending, invalid connection"}
I seem to be able to use Mattermost even though the above error occurred. It seems that the return after user interruption is slow. A process “connected” is displayed each time.
If I execute “systemctl restart mattermost”, the error is resolved once. I do not know the exact time, but as time goes by, the above error will occur again.
What is the cause of this (Mattermost) MySQL error?
Mattermost 5.7.0, CentOS 7.6, Nginx 1.14.1, PHP 7.3.1, MariaDB 10.2.21