If you haven’t already solved this with logs, a better way (at least if you’re on Windows) has been posted.
unique-constraint-error: SOLVED for Windows