Failed to fetch `master` or `alt_master` row from the database.