Discourse stuck on "Currently Upgrading"

After rebuilding via command line, the “Currently Upgrading…” is still there.

And the “Reset” button does nothing