Upgrade service fails

Trying to upgrade from 5.32.1 to 38.0 after the upgrade the service fails to start.

I have tried incremental upgrades and anything pas 34.5 fails.

Error I can see is

Aug 17 10:56:03 inz-lnx-028 mattermost[17638]: [mysql] 2021/08/17 10:56:03 packets.go:36: read tcp 127.0.0.1:39332->127.0.0.1:3306: i/o timeout
Aug 17 10:56:03 inz-lnx-028 mattermost[17638]: {“level”:“error”,“ts”:1629197763.5139132,“caller”:“sqlstore/store.go:768”,“msg”:“Failed to create column”,“error”:"invalid co
Aug 17 10:56:04 inz-lnx-028 systemd[1]: mattermost.service: Main process exited, code=exited, status=111/n/a
Aug 17 10:56:04 inz-lnx-028 systemd[1]: mattermost.service: Failed with result ‘exit-code’.
Aug 17 10:56:04 inz-lnx-028 systemd[1]: Failed to start Mattermost.

Any help would be appreciated. I am running in Ubuntu 18…04.5 lts