gitlab 13.5 upgrade crashed the server

following the gitlab 13.5 release our server started failing with a 502 error.