Database migrations not working when upgrading package installation version from 12.3.5 to 12.4.0

Summary

I have a package installation of gitlab running on an ubuntu 16.04 server. The upgrade from 12.3.5 to 12.4.0 is not working.

Steps to reproduce

Not really sure, just did a normal update

What is the current bug behavior?

The db migrations don't run through. One effect is that the direct project view doesn't work and throws a 500 or 502 error.

What is the expected correct behavior?

Migrations run through and project view works.

Relevant logs and/or screenshots

The output of the chef run during gitlab-ctl reconfigure: https://pastebin.com/y2aa3cSv

/cc @T4cC0re