When upgrading the database from 3 to 4, I am seeing the error on the CollationToUtfmb4Migration migration.
PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away
I have tried changing timeouts for the sql server and in my php config, but nothing seems to resolve it.