Cloning a database from one Discourse to another causes rebuild to fail on migration

Are both instances the same version of Discourse?